C# Class ZuoraSignUp.ZuoraInterface

显示文件 Open project: zuora/azure-quickstart

Public Properties

Property Type Description
ENDPOINT string
PASSWORD string
USERNAME string

Protected Properties

Property Type Description
binding ZuoraWebRole.zuora.ZuoraService

Public Methods

Method Description
ZuoraInterface ( ) : System
ZuoraInterface ( String username, String password, String endpoint ) : System
createMessage ( SubscribeResult result ) : String
isValidId ( string id ) : System.Boolean
queryChargeByAccountingCode ( String accountingCode ) : ProductRatePlanCharge
queryChargeById ( String id ) : ProductRatePlanCharge
queryChargesByProductRatePlan ( String prpId ) : ProductRatePlanCharge[]
queryProducts ( ) : Product[]
queryRatePlansByProduct ( String productId ) : ProductRatePlan[]

Protected Methods

Method Description
create ( zObject acc ) : string
delete ( String type, string id ) : bool
login ( String username, String password ) : bool
makeAccount ( string Name, string CurrencyIso ) : Account
makeContact ( string FirstName, string LastName, string WorkEmail, string WorkPhone, string Address1, string Address2, string City, string State, string Country, string PostalCode ) : Contact
makePaymentMethod ( string HolderName, string Address, string City, string State, string Country, string PostalCode, string CreditCardType, string CreditCardNumber, int CreditCardExpirationMonth, int CreditCardExpirationYear ) : PaymentMethod
makeRatePlanData ( ProductRatePlanCharge charges ) : RatePlanData[]
makeSubscription ( String subscriptionName, String subscriptionNotes ) : Subscription
print ( string p ) : void
queryAccount ( string accId ) : Account
update ( zObject acc ) : string

Private Methods

Method Description
subscribe ( String SubscriptionName, ProductRatePlanCharge charges, string Name, string FirstName, string LastName, string WorkEmail, string WorkPhone, string Address1, string Address2, string City, string State, string Country, string PostalCode, string CreditCardType, string CreditCardNumber, string CreditCardHolderName, int CreditCardExpirationMonth, int CreditCardExpirationYear ) : SubscribeResult

Method Details

ZuoraInterface() public method

public ZuoraInterface ( ) : System
return System

ZuoraInterface() public method

public ZuoraInterface ( String username, String password, String endpoint ) : System
username String
password String
endpoint String
return System

create() protected method

protected create ( zObject acc ) : string
acc zObject
return string

createMessage() public static method

public static createMessage ( SubscribeResult result ) : String
result SubscribeResult
return String

delete() protected method

protected delete ( String type, string id ) : bool
type String
id string
return bool

isValidId() public static method

public static isValidId ( string id ) : System.Boolean
id string
return System.Boolean

login() protected method

protected login ( String username, String password ) : bool
username String
password String
return bool

makeAccount() protected method

protected makeAccount ( string Name, string CurrencyIso ) : Account
Name string
CurrencyIso string
return Account

makeContact() protected method

protected makeContact ( string FirstName, string LastName, string WorkEmail, string WorkPhone, string Address1, string Address2, string City, string State, string Country, string PostalCode ) : Contact
FirstName string
LastName string
WorkEmail string
WorkPhone string
Address1 string
Address2 string
City string
State string
Country string
PostalCode string
return Contact

makePaymentMethod() protected method

protected makePaymentMethod ( string HolderName, string Address, string City, string State, string Country, string PostalCode, string CreditCardType, string CreditCardNumber, int CreditCardExpirationMonth, int CreditCardExpirationYear ) : PaymentMethod
HolderName string
Address string
City string
State string
Country string
PostalCode string
CreditCardType string
CreditCardNumber string
CreditCardExpirationMonth int
CreditCardExpirationYear int
return PaymentMethod

makeRatePlanData() protected method

protected makeRatePlanData ( ProductRatePlanCharge charges ) : RatePlanData[]
charges ProductRatePlanCharge
return RatePlanData[]

makeSubscription() protected method

protected makeSubscription ( String subscriptionName, String subscriptionNotes ) : Subscription
subscriptionName String
subscriptionNotes String
return Subscription

print() protected method

protected print ( string p ) : void
p string
return void

queryAccount() protected method

protected queryAccount ( string accId ) : Account
accId string
return Account

queryChargeByAccountingCode() public method

public queryChargeByAccountingCode ( String accountingCode ) : ProductRatePlanCharge
accountingCode String
return ProductRatePlanCharge

queryChargeById() public method

public queryChargeById ( String id ) : ProductRatePlanCharge
id String
return ProductRatePlanCharge

queryChargesByProductRatePlan() public method

public queryChargesByProductRatePlan ( String prpId ) : ProductRatePlanCharge[]
prpId String
return ProductRatePlanCharge[]

queryProducts() public method

public queryProducts ( ) : Product[]
return Product[]

queryRatePlansByProduct() public method

public queryRatePlansByProduct ( String productId ) : ProductRatePlan[]
productId String
return ProductRatePlan[]

update() protected method

protected update ( zObject acc ) : string
acc zObject
return string

Property Details

ENDPOINT public_oe static_oe property

public static string ENDPOINT
return string

PASSWORD public_oe static_oe property

public static string PASSWORD
return string

USERNAME public_oe static_oe property

public static string USERNAME
return string

binding protected_oe property

protected ZuoraService,ZuoraWebRole.zuora binding
return ZuoraWebRole.zuora.ZuoraService