C# 클래스 Recurly.Account

An account in Recurly. https://dev.recurly.com/docs/get-account
상속: Recurly.RecurlyEntity
파일 보기 프로젝트 열기: recurly/recurly-client-net 1 사용 예제들

공개 메소드들

메소드 설명
Account ( string accountCode ) : System
Account ( string accountCode, BillingInfo billingInfo ) : System

Creates a new account with required billing information

Close ( ) : void

Close the account and cancel any active subscriptions (if there is one). Note: This does not create a refund for any time remaining.

Create ( ) : void

Create a new account in Recurly

DeleteBillingInfo ( ) : void

Delete an account's billing info.

Equals ( Account account ) : bool
Equals ( object obj ) : bool
GetActiveRedemption ( ) : CouponRedemption

Returns the first active coupon redemptions on this account

GetActiveRedemptions ( ) : RecurlyList

Returns all active coupon redemptions on this account

GetAdjustments ( Adjustment type = Adjustment.AdjustmentType.All, Adjustment state = Adjustment.AdjustmentState.Any ) : RecurlyList

Gets all adjustments for this account, by type

GetHashCode ( ) : int
GetInvoices ( ) : RecurlyList

Returns a list of invoices for this account

GetNotes ( ) : RecurlyList
GetShippingAddresses ( ) : RecurlyList

Gets all shipping addresses

GetSubscriptions ( Subscription state = Subscription.SubscriptionState.All ) : RecurlyList

Returns a list of subscriptions for this account

GetTransactions ( TransactionList state = TransactionList.TransactionState.All, TransactionList type = TransactionList.TransactionType.All ) : RecurlyList

Returns a list of transactions for this account, by transaction type

InvoicePendingCharges ( ) : Invoice

Posts pending charges on an account

NewAdjustment ( string currency, int unitAmountInCents, string description = "", int quantity = 1, string accountingCode = "", bool taxExempt = false ) : Adjustment

Returns a new adjustment (credit or charge) for this account

PreviewInvoicePendingCharges ( ) : Invoice

Previews a new invoice for the pending charges on an account

RedeemCoupon ( string couponCode, string currency, string subscriptionUuid = null ) : CouponRedemption

Redeems a coupon on this account

Reopen ( ) : void

Reopen an existing account in Recurly

ToString ( ) : string
Update ( ) : void

Update an existing account in Recurly

비공개 메소드들

메소드 설명
Account ( ) : System
Account ( XmlTextReader xmlReader ) : System
ReadXml ( XmlTextReader reader ) : void
WriteXml ( XmlTextWriter xmlWriter ) : void

메소드 상세

Account() 공개 메소드

public Account ( string accountCode ) : System
accountCode string
리턴 System

Account() 공개 메소드

Creates a new account with required billing information
public Account ( string accountCode, BillingInfo billingInfo ) : System
accountCode string
billingInfo BillingInfo
리턴 System

Close() 공개 메소드

Close the account and cancel any active subscriptions (if there is one). Note: This does not create a refund for any time remaining.
public Close ( ) : void
리턴 void

Create() 공개 메소드

Create a new account in Recurly
public Create ( ) : void
리턴 void

DeleteBillingInfo() 공개 메소드

Delete an account's billing info.
public DeleteBillingInfo ( ) : void
리턴 void

Equals() 공개 메소드

public Equals ( Account account ) : bool
account Account
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetActiveRedemption() 공개 메소드

Returns the first active coupon redemptions on this account
public GetActiveRedemption ( ) : CouponRedemption
리턴 CouponRedemption

GetActiveRedemptions() 공개 메소드

Returns all active coupon redemptions on this account
public GetActiveRedemptions ( ) : RecurlyList
리턴 RecurlyList

GetAdjustments() 공개 메소드

Gets all adjustments for this account, by type
public GetAdjustments ( Adjustment type = Adjustment.AdjustmentType.All, Adjustment state = Adjustment.AdjustmentState.Any ) : RecurlyList
type Adjustment Adjustment type to retrieve. Optional, default: All.
state Adjustment State of the Adjustments to retrieve. Optional, default: Any.
리턴 RecurlyList

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetInvoices() 공개 메소드

Returns a list of invoices for this account
public GetInvoices ( ) : RecurlyList
리턴 RecurlyList

GetNotes() 공개 메소드

public GetNotes ( ) : RecurlyList
리턴 RecurlyList

GetShippingAddresses() 공개 메소드

Gets all shipping addresses
public GetShippingAddresses ( ) : RecurlyList
리턴 RecurlyList

GetSubscriptions() 공개 메소드

Returns a list of subscriptions for this account
public GetSubscriptions ( Subscription state = Subscription.SubscriptionState.All ) : RecurlyList
state Subscription
리턴 RecurlyList

GetTransactions() 공개 메소드

Returns a list of transactions for this account, by transaction type
public GetTransactions ( TransactionList state = TransactionList.TransactionState.All, TransactionList type = TransactionList.TransactionType.All ) : RecurlyList
state TransactionList Transactions of this state will be retrieved. Optional, default: All.
type TransactionList Transactions of this type will be retrieved. Optional, default: All.
리턴 RecurlyList

InvoicePendingCharges() 공개 메소드

Posts pending charges on an account
public InvoicePendingCharges ( ) : Invoice
리턴 Invoice

NewAdjustment() 공개 메소드

Returns a new adjustment (credit or charge) for this account
public NewAdjustment ( string currency, int unitAmountInCents, string description = "", int quantity = 1, string accountingCode = "", bool taxExempt = false ) : Adjustment
currency string Currency, 3-letter ISO code.
unitAmountInCents int Positive amount for a charge, negative amount for a credit. Max 10,000,000.
description string Description of the adjustment for the invoice.
quantity int Quantity, defaults to 1.
accountingCode string Accounting code. Max of 20 characters.
taxExempt bool
리턴 Adjustment

PreviewInvoicePendingCharges() 공개 메소드

Previews a new invoice for the pending charges on an account
public PreviewInvoicePendingCharges ( ) : Invoice
리턴 Invoice

RedeemCoupon() 공개 메소드

Redeems a coupon on this account
public RedeemCoupon ( string couponCode, string currency, string subscriptionUuid = null ) : CouponRedemption
couponCode string
currency string
subscriptionUuid string
리턴 CouponRedemption

Reopen() 공개 메소드

Reopen an existing account in Recurly
public Reopen ( ) : void
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Update() 공개 메소드

Update an existing account in Recurly
public Update ( ) : void
리턴 void