C# Class Recurly.Account

An account in Recurly. https://dev.recurly.com/docs/get-account
Inheritance: Recurly.RecurlyEntity
Afficher le fichier Open project: recurly/recurly-client-net Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Account ( ) : System
Account ( XmlTextReader xmlReader ) : System
ReadXml ( XmlTextReader reader ) : void
WriteXml ( XmlTextWriter xmlWriter ) : void

Method Details

Account() public méthode

public Account ( string accountCode ) : System
accountCode string
Résultat System

Account() public méthode

Creates a new account with required billing information
public Account ( string accountCode, BillingInfo billingInfo ) : System
accountCode string
billingInfo BillingInfo
Résultat System

Close() public méthode

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
Résultat void

Create() public méthode

Create a new account in Recurly
public Create ( ) : void
Résultat void

DeleteBillingInfo() public méthode

Delete an account's billing info.
public DeleteBillingInfo ( ) : void
Résultat void

Equals() public méthode

public Equals ( Account account ) : bool
account Account
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetActiveRedemption() public méthode

Returns the first active coupon redemptions on this account
public GetActiveRedemption ( ) : CouponRedemption
Résultat CouponRedemption

GetActiveRedemptions() public méthode

Returns all active coupon redemptions on this account
public GetActiveRedemptions ( ) : RecurlyList
Résultat RecurlyList

GetAdjustments() public méthode

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.
Résultat RecurlyList

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetInvoices() public méthode

Returns a list of invoices for this account
public GetInvoices ( ) : RecurlyList
Résultat RecurlyList

GetNotes() public méthode

public GetNotes ( ) : RecurlyList
Résultat RecurlyList

GetShippingAddresses() public méthode

Gets all shipping addresses
public GetShippingAddresses ( ) : RecurlyList
Résultat RecurlyList

GetSubscriptions() public méthode

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

GetTransactions() public méthode

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.
Résultat RecurlyList

InvoicePendingCharges() public méthode

Posts pending charges on an account
public InvoicePendingCharges ( ) : Invoice
Résultat Invoice

NewAdjustment() public méthode

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
Résultat Adjustment

PreviewInvoicePendingCharges() public méthode

Previews a new invoice for the pending charges on an account
public PreviewInvoicePendingCharges ( ) : Invoice
Résultat Invoice

RedeemCoupon() public méthode

Redeems a coupon on this account
public RedeemCoupon ( string couponCode, string currency, string subscriptionUuid = null ) : CouponRedemption
couponCode string
currency string
subscriptionUuid string
Résultat CouponRedemption

Reopen() public méthode

Reopen an existing account in Recurly
public Reopen ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

Update an existing account in Recurly
public Update ( ) : void
Résultat void