C# Класс Recurly.Account

An account in Recurly. https://dev.recurly.com/docs/get-account
Наследование: Recurly.RecurlyEntity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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