C# Class Zuora.Services.AccountManager

ファイルを表示 Open project: zuorasc/c-sharp-quickstart Class Usage Examples

Public Methods

Method Description
AccountManager ( ZuoraService zs ) : System
ChangeInvoiceTemplate ( String accountId, String templateId ) : ResponseHolder

Change the invoice template id for an account

CreateAccount ( Account acc, Contact con ) : ResponseHolder
CreateChildAccountAndIncreaseCreditBalance ( Account acc, String parentAccountId, Contact con, Decimal amount ) : ResponseHolder

Create a child account, set the parent id, create the contact, update the account and increase the credit balance

DeletePaymentMethod ( String paymentMethodId ) : List

Delete Payment Method

DoesAccountNameExistInZuora ( String name ) : System.Boolean
GetAccount ( String accountId ) : ResponseHolder

Get Account information based on accountId

GetChildAccount ( String parentAccountId ) : ResponseHolder

Return the child account of a parent given the parents id

GetContact ( String accountId ) : ResponseHolder

Get Contacts based on accountId

GetCreditBalanceAdjustmentsForAccount ( String accountId ) : ResponseHolder

Get Credit balance based on accountId

GetCreditCardsForAccount ( String parentAccountId ) : ResponseHolder

Get Credit Card based on parent account id, only the parent account will have Credit Cards

GetCreditCardsPaymentMethods ( String accountId ) : ResponseHolder

Get Credit Cards based on accountId

GetInvoicePDFForAccount ( String invoiceId ) : ResponseHolder

Get the pdf version for an invoice

GetInvoicesForAccount ( String accountId ) : ResponseHolder

Get the invoices for an account based on accountId

GetPOForAccount ( String parentAccountId ) : String

Get P.O. on file, only the parent account will have Credit Cards

GetRefundsForAccount ( String accountId ) : ResponseHolder

Get Refunds based on accountId

GetSingleInvoice ( String invoiceId ) : ResponseHolder

Get a single invoice and Base64 encoded pdf body

SetParentAccount ( String parentId, String accountId ) : ResponseHolder

Set the parent account of an account

UpdateContact ( String accountId, String lastName, String firstName, String address, String city, String state, String postalCode, String country ) : ResponseHolder

Upade Contact on account

Method Details

AccountManager() public method

public AccountManager ( ZuoraService zs ) : System
zs ZuoraService
return System

ChangeInvoiceTemplate() public method

Change the invoice template id for an account
public ChangeInvoiceTemplate ( String accountId, String templateId ) : ResponseHolder
accountId String
templateId String
return ResponseHolder

CreateAccount() public method

public CreateAccount ( Account acc, Contact con ) : ResponseHolder
acc Account
con Contact
return ResponseHolder

CreateChildAccountAndIncreaseCreditBalance() public method

Create a child account, set the parent id, create the contact, update the account and increase the credit balance
public CreateChildAccountAndIncreaseCreditBalance ( Account acc, String parentAccountId, Contact con, Decimal amount ) : ResponseHolder
acc Account
parentAccountId String
con Contact
amount Decimal
return ResponseHolder

DeletePaymentMethod() public method

Delete Payment Method
public DeletePaymentMethod ( String paymentMethodId ) : List
paymentMethodId String
return List

DoesAccountNameExistInZuora() public method

public DoesAccountNameExistInZuora ( String name ) : System.Boolean
name String
return System.Boolean

GetAccount() public method

Get Account information based on accountId
public GetAccount ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetChildAccount() public method

Return the child account of a parent given the parents id
public GetChildAccount ( String parentAccountId ) : ResponseHolder
parentAccountId String
return ResponseHolder

GetContact() public method

Get Contacts based on accountId
public GetContact ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetCreditBalanceAdjustmentsForAccount() public method

Get Credit balance based on accountId
public GetCreditBalanceAdjustmentsForAccount ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetCreditCardsForAccount() public method

Get Credit Card based on parent account id, only the parent account will have Credit Cards
public GetCreditCardsForAccount ( String parentAccountId ) : ResponseHolder
parentAccountId String
return ResponseHolder

GetCreditCardsPaymentMethods() public method

Get Credit Cards based on accountId
public GetCreditCardsPaymentMethods ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetInvoicePDFForAccount() public method

Get the pdf version for an invoice
public GetInvoicePDFForAccount ( String invoiceId ) : ResponseHolder
invoiceId String
return ResponseHolder

GetInvoicesForAccount() public method

Get the invoices for an account based on accountId
public GetInvoicesForAccount ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetPOForAccount() public method

Get P.O. on file, only the parent account will have Credit Cards
public GetPOForAccount ( String parentAccountId ) : String
parentAccountId String
return String

GetRefundsForAccount() public method

Get Refunds based on accountId
public GetRefundsForAccount ( String accountId ) : ResponseHolder
accountId String
return ResponseHolder

GetSingleInvoice() public method

Get a single invoice and Base64 encoded pdf body
public GetSingleInvoice ( String invoiceId ) : ResponseHolder
invoiceId String
return ResponseHolder

SetParentAccount() public method

Set the parent account of an account
public SetParentAccount ( String parentId, String accountId ) : ResponseHolder
parentId String
accountId String
return ResponseHolder

UpdateContact() public method

Upade Contact on account
public UpdateContact ( String accountId, String lastName, String firstName, String address, String city, String state, String postalCode, String country ) : ResponseHolder
accountId String
lastName String
firstName String
address String
city String
state String
postalCode String
country String
return ResponseHolder