Documentation ¶
Index ¶
- func NewClient(httpClient *http.Client) *recurly.Client
- type AccountsService
- func (m *AccountsService) Close(code string) (*recurly.Response, error)
- func (m *AccountsService) Create(a recurly.Account) (*recurly.Response, *recurly.Account, error)
- func (m *AccountsService) Get(code string) (*recurly.Response, *recurly.Account, error)
- func (m *AccountsService) List(params recurly.Params) (*recurly.Response, []recurly.Account, error)
- func (m *AccountsService) ListNotes(code string) (*recurly.Response, []recurly.Note, error)
- func (m *AccountsService) LookupAccountBalance(code string) (*recurly.Response, *recurly.AccountBalance, error)
- func (m *AccountsService) Reopen(code string) (*recurly.Response, error)
- func (m *AccountsService) Update(code string, a recurly.Account) (*recurly.Response, *recurly.Account, error)
- type AddOnsService
- func (m *AddOnsService) Create(planCode string, a recurly.AddOn) (*recurly.Response, *recurly.AddOn, error)
- func (m *AddOnsService) Delete(planCode string, code string) (*recurly.Response, error)
- func (m *AddOnsService) Get(planCode string, code string) (*recurly.Response, *recurly.AddOn, error)
- func (m *AddOnsService) List(planCode string, params recurly.Params) (*recurly.Response, []recurly.AddOn, error)
- func (m *AddOnsService) Update(planCode string, code string, a recurly.AddOn) (*recurly.Response, *recurly.AddOn, error)
- type AdjustmentsService
- func (m *AdjustmentsService) Create(accountCode string, a recurly.Adjustment) (*recurly.Response, *recurly.Adjustment, error)
- func (m *AdjustmentsService) Delete(uuid string) (*recurly.Response, error)
- func (m *AdjustmentsService) Get(uuid string) (*recurly.Response, *recurly.Adjustment, error)
- func (m *AdjustmentsService) List(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Adjustment, error)
- type BillingService
- func (m *BillingService) Clear(accountCode string) (*recurly.Response, error)
- func (m *BillingService) Create(accountCode string, b recurly.Billing) (*recurly.Response, *recurly.Billing, error)
- func (m *BillingService) CreateWithToken(accountCode string, token string) (*recurly.Response, *recurly.Billing, error)
- func (m *BillingService) Get(accountCode string) (*recurly.Response, *recurly.Billing, error)
- func (m *BillingService) Update(accountCode string, b recurly.Billing) (*recurly.Response, *recurly.Billing, error)
- func (m *BillingService) UpdateWithToken(accountCode string, token string) (*recurly.Response, *recurly.Billing, error)
- type CouponsService
- func (m *CouponsService) Create(c recurly.Coupon) (*recurly.Response, *recurly.Coupon, error)
- func (m *CouponsService) Delete(code string) (*recurly.Response, error)
- func (m *CouponsService) Get(code string) (*recurly.Response, *recurly.Coupon, error)
- func (m *CouponsService) List(params recurly.Params) (*recurly.Response, []recurly.Coupon, error)
- type CreditPaymentsService
- func (m *CreditPaymentsService) Get(uuid string) (*recurly.Response, *recurly.CreditPayment, error)
- func (m *CreditPaymentsService) List(params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error)
- func (m *CreditPaymentsService) ListAccount(code string, params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error)
- type InvoicesService
- func (m *InvoicesService) Collect(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) Create(accountCode string, invoice recurly.Invoice) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) Get(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) GetPDF(invoiceNumber int, language string) (*recurly.Response, *bytes.Buffer, error)
- func (m *InvoicesService) List(params recurly.Params) (*recurly.Response, []recurly.Invoice, error)
- func (m *InvoicesService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Invoice, error)
- func (m *InvoicesService) MarkFailed(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) MarkPaid(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) Preview(accountCode string) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) RecordPayment(pmt recurly.OfflinePayment) (*recurly.Response, *recurly.Transaction, error)
- func (m *InvoicesService) RefundVoidOpenAmount(invoiceNumber int, amountInCents int, refundMethod string) (*recurly.Response, *recurly.Invoice, error)
- func (m *InvoicesService) VoidCreditInvoice(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error)
- type PlansService
- func (m *PlansService) Create(p recurly.Plan) (*recurly.Response, *recurly.Plan, error)
- func (m *PlansService) Delete(code string) (*recurly.Response, error)
- func (m *PlansService) Get(code string) (*recurly.Response, *recurly.Plan, error)
- func (m *PlansService) List(params recurly.Params) (*recurly.Response, []recurly.Plan, error)
- func (m *PlansService) Update(code string, p recurly.Plan) (*recurly.Response, *recurly.Plan, error)
- type PurchasesService
- type RedemptionsService
- func (m *RedemptionsService) Delete(accountCode string) (*recurly.Response, error)
- func (m *RedemptionsService) GetForAccount(accountCode string) (*recurly.Response, []recurly.Redemption, error)
- func (m *RedemptionsService) GetForInvoice(invoiceNumber string) (*recurly.Response, []recurly.Redemption, error)
- func (m *RedemptionsService) Redeem(code string, accountCode string, currency string) (*recurly.Response, *recurly.Redemption, error)
- func (m *RedemptionsService) RedeemToSubscription(code string, accountCode string, currency string, subscriptionUUID string) (*recurly.Response, *recurly.Redemption, error)
- type ShippingAddressesService
- func (s *ShippingAddressesService) Create(accountCode string, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error)
- func (s *ShippingAddressesService) Delete(accountCode string, shippingAddressID int64) (*recurly.Response, error)
- func (s *ShippingAddressesService) GetSubscriptions(accountCode string, shippingAddress int64) (*recurly.Response, []recurly.Subscription, error)
- func (s *ShippingAddressesService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.ShippingAddress, error)
- func (s *ShippingAddressesService) Update(accountCode string, shippingAddressID int64, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error)
- type SubscriptionsService
- func (m *SubscriptionsService) Cancel(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Create(sub recurly.NewSubscription) (*recurly.Response, *recurly.NewSubscriptionResponse, error)
- func (m *SubscriptionsService) Get(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) List(params recurly.Params) (*recurly.Response, []recurly.Subscription, error)
- func (m *SubscriptionsService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Subscription, error)
- func (m *SubscriptionsService) Pause(uuid string, cycles int) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Postpone(uuid string, dt time.Time, bulk bool) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Preview(sub recurly.NewSubscription) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) PreviewChange(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Reactivate(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Resume(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) TerminateWithFullRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) TerminateWithPartialRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) TerminateWithoutRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) Update(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error)
- func (m *SubscriptionsService) UpdateNotes(uuid string, n recurly.SubscriptionNotes) (*recurly.Response, *recurly.Subscription, error)
- type TransactionsService
- func (m *TransactionsService) Create(t recurly.Transaction) (*recurly.Response, *recurly.Transaction, error)
- func (m *TransactionsService) Get(uuid string) (*recurly.Response, *recurly.Transaction, error)
- func (m *TransactionsService) List(params recurly.Params) (*recurly.Response, []recurly.Transaction, error)
- func (m *TransactionsService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountsService ¶
type AccountsService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Account, error) ListInvoked bool OnGet func(code string) (*recurly.Response, *recurly.Account, error) GetInvoked bool OnLookupAccountBalance func(code string) (*recurly.Response, *recurly.AccountBalance, error) LookupAccountBalanceInvoked bool OnCreate func(a recurly.Account) (*recurly.Response, *recurly.Account, error) CreateInvoked bool OnUpdate func(code string, a recurly.Account) (*recurly.Response, *recurly.Account, error) UpdateInvoked bool OnClose func(code string) (*recurly.Response, error) CloseInvoked bool OnReopen func(code string) (*recurly.Response, error) ReopenInvoked bool OnListNotes func(code string) (*recurly.Response, []recurly.Note, error) ListNotesInvoked bool }
AccountsService represents the interactions available for accounts.
func (*AccountsService) Close ¶
func (m *AccountsService) Close(code string) (*recurly.Response, error)
func (*AccountsService) LookupAccountBalance ¶
func (m *AccountsService) LookupAccountBalance(code string) (*recurly.Response, *recurly.AccountBalance, error)
type AddOnsService ¶
type AddOnsService struct { OnList func(planCode string, params recurly.Params) (*recurly.Response, []recurly.AddOn, error) ListInvoked bool OnGet func(planCode string, code string) (*recurly.Response, *recurly.AddOn, error) GetInvoked bool OnCreate func(planCode string, a recurly.AddOn) (*recurly.Response, *recurly.AddOn, error) CreateInvoked bool OnUpdate func(planCode string, code string, a recurly.AddOn) (*recurly.Response, *recurly.AddOn, error) UpdateInvoked bool OnDelete func(planCode string, code string) (*recurly.Response, error) DeleteInvoked bool }
AddOnsService represents the interactions available for add ons.
type AdjustmentsService ¶
type AdjustmentsService struct { OnList func(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Adjustment, error) ListInvoked bool OnGet func(uuid string) (*recurly.Response, *recurly.Adjustment, error) GetInvoked bool OnCreate func(accountCode string, a recurly.Adjustment) (*recurly.Response, *recurly.Adjustment, error) CreateInvoked bool OnDelete func(uuid string) (*recurly.Response, error) DeleteInvoked bool }
AdjustmentsService represents the interactions available for adjustments.
func (*AdjustmentsService) Create ¶
func (m *AdjustmentsService) Create(accountCode string, a recurly.Adjustment) (*recurly.Response, *recurly.Adjustment, error)
func (*AdjustmentsService) Delete ¶
func (m *AdjustmentsService) Delete(uuid string) (*recurly.Response, error)
func (*AdjustmentsService) Get ¶
func (m *AdjustmentsService) Get(uuid string) (*recurly.Response, *recurly.Adjustment, error)
type BillingService ¶
type BillingService struct { OnGet func(accountCode string) (*recurly.Response, *recurly.Billing, error) GetInvoked bool OnCreate func(accountCode string, b recurly.Billing) (*recurly.Response, *recurly.Billing, error) CreateInvoked bool OnCreateWithToken func(accountCode string, token string) (*recurly.Response, *recurly.Billing, error) CreateWithTokenInvoked bool OnUpdate func(accountCode string, b recurly.Billing) (*recurly.Response, *recurly.Billing, error) UpdateInvoked bool OnUpdateWithToken func(accountCode string, token string) (*recurly.Response, *recurly.Billing, error) UpdateWithTokenInvoked bool OnClear func(accountCode string) (*recurly.Response, error) ClearInvoked bool }
BillingService represents the interactions available for billing.
func (*BillingService) Clear ¶
func (m *BillingService) Clear(accountCode string) (*recurly.Response, error)
func (*BillingService) CreateWithToken ¶
func (*BillingService) UpdateWithToken ¶
type CouponsService ¶
type CouponsService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Coupon, error) ListInvoked bool OnGet func(code string) (*recurly.Response, *recurly.Coupon, error) GetInvoked bool OnCreate func(c recurly.Coupon) (*recurly.Response, *recurly.Coupon, error) CreateInvoked bool OnDelete func(code string) (*recurly.Response, error) DeleteInvoked bool }
CouponsService represents the interactions available for coupons.
func (*CouponsService) Delete ¶
func (m *CouponsService) Delete(code string) (*recurly.Response, error)
type CreditPaymentsService ¶
type CreditPaymentsService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error) ListInvoked bool OnListAccount func(code string, params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error) ListAccountInvoked bool OnGet func(uuid string) (*recurly.Response, *recurly.CreditPayment, error) GetInvoked bool }
CreditPaymentsService represents the interactions available for credit payments.
func (*CreditPaymentsService) Get ¶
func (m *CreditPaymentsService) Get(uuid string) (*recurly.Response, *recurly.CreditPayment, error)
func (*CreditPaymentsService) List ¶
func (m *CreditPaymentsService) List(params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error)
func (*CreditPaymentsService) ListAccount ¶
func (m *CreditPaymentsService) ListAccount(code string, params recurly.Params) (*recurly.Response, []recurly.CreditPayment, error)
type InvoicesService ¶
type InvoicesService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Invoice, error) ListInvoked bool OnListAccount func(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Invoice, error) ListAccountInvoked bool OnGet func(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error) GetInvoked bool OnGetPDF func(invoiceNumber int, language string) (*recurly.Response, *bytes.Buffer, error) GetPDFInvoked bool OnPreview func(accountCode string) (*recurly.Response, *recurly.Invoice, error) PreviewInvoked bool OnCreate func(accountCode string, invoice recurly.Invoice) (*recurly.Response, *recurly.Invoice, error) CreateInvoked bool OnCollect func(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error) CollectInvoked bool OnMarkPaid func(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error) MarkPaidInvoked bool OnMarkFailed func(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error) MarkFailedInvoked bool OnRefundVoidOpenAmount func(invoiceNumber int, amountInCents int, refundMethod string) (*recurly.Response, *recurly.Invoice, error) RefundVoidOpenAmountInvoked bool OnVoidCreditInvoice func(invoiceNumber int) (*recurly.Response, *recurly.Invoice, error) VoidCreditInvoiceInvoked bool OnRecordPayment func(pmt recurly.OfflinePayment) (*recurly.Response, *recurly.Transaction, error) RecordPaymentInvoked bool }
InvoicesService represents the interactions available for invoices.
func (*InvoicesService) ListAccount ¶
func (*InvoicesService) MarkFailed ¶
func (*InvoicesService) RecordPayment ¶
func (m *InvoicesService) RecordPayment(pmt recurly.OfflinePayment) (*recurly.Response, *recurly.Transaction, error)
func (*InvoicesService) RefundVoidOpenAmount ¶
func (*InvoicesService) VoidCreditInvoice ¶
type PlansService ¶
type PlansService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Plan, error) ListInvoked bool OnGet func(code string) (*recurly.Response, *recurly.Plan, error) GetInvoked bool OnCreate func(p recurly.Plan) (*recurly.Response, *recurly.Plan, error) CreateInvoked bool OnUpdate func(code string, p recurly.Plan) (*recurly.Response, *recurly.Plan, error) UpdateInvoked bool OnDelete func(code string) (*recurly.Response, error) DeleteInvoked bool }
PlansService represents the interactions available for plans.
type PurchasesService ¶
type PurchasesService struct { OnCreate func(p recurly.Purchase) (*recurly.Response, *recurly.InvoiceCollection, error) CreateInvoked bool OnPreview func(p recurly.Purchase) (*recurly.Response, *recurly.InvoiceCollection, error) PreviewInvoked bool }
func (*PurchasesService) Create ¶
func (m *PurchasesService) Create(p recurly.Purchase) (*recurly.Response, *recurly.InvoiceCollection, error)
func (*PurchasesService) Preview ¶
func (m *PurchasesService) Preview(p recurly.Purchase) (*recurly.Response, *recurly.InvoiceCollection, error)
type RedemptionsService ¶
type RedemptionsService struct { OnGetForAccount func(accountCode string) (*recurly.Response, []recurly.Redemption, error) GetForAccountInvoked bool OnGetForInvoice func(invoiceNumber string) (*recurly.Response, []recurly.Redemption, error) GetForInvoiceInvoked bool OnRedeem func(code string, accountCode string, currency string) (*recurly.Response, *recurly.Redemption, error) RedeemInvoked bool OnRedeemToSubscription func(code string, accountCode string, currency string, subscriptionUUID string) (*recurly.Response, *recurly.Redemption, error) RedeemToSubscriptionInvoked bool OnDelete func(accountCode string) (*recurly.Response, error) DeleteInvoked bool }
RedemptionsService represents the interactions available for redemptions.
func (*RedemptionsService) Delete ¶
func (m *RedemptionsService) Delete(accountCode string) (*recurly.Response, error)
func (*RedemptionsService) GetForAccount ¶
func (m *RedemptionsService) GetForAccount(accountCode string) (*recurly.Response, []recurly.Redemption, error)
func (*RedemptionsService) GetForInvoice ¶
func (m *RedemptionsService) GetForInvoice(invoiceNumber string) (*recurly.Response, []recurly.Redemption, error)
func (*RedemptionsService) Redeem ¶
func (m *RedemptionsService) Redeem(code string, accountCode string, currency string) (*recurly.Response, *recurly.Redemption, error)
func (*RedemptionsService) RedeemToSubscription ¶
func (m *RedemptionsService) RedeemToSubscription(code string, accountCode string, currency string, subscriptionUUID string) (*recurly.Response, *recurly.Redemption, error)
type ShippingAddressesService ¶
type ShippingAddressesService struct { OnListAccount func(accountCode string, params recurly.Params) (*recurly.Response, []recurly.ShippingAddress, error) ListAccountInvoked bool OnCreate func(accountCode string, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error) CreateInvoked bool OnUpdate func(accountCode string, shippingAddressID int64, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error) UpdateInvoked bool OnDelete func(accountCode string, shippingAddressID int64) (*recurly.Response, error) DeleteInvoked bool OnGetSubscriptions func(accountCode string, shippingAddress int64) (*recurly.Response, []recurly.Subscription, error) GetSubscriptionsInvoked bool }
func (*ShippingAddressesService) Create ¶
func (s *ShippingAddressesService) Create(accountCode string, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error)
func (*ShippingAddressesService) GetSubscriptions ¶
func (s *ShippingAddressesService) GetSubscriptions(accountCode string, shippingAddress int64) (*recurly.Response, []recurly.Subscription, error)
func (*ShippingAddressesService) ListAccount ¶
func (s *ShippingAddressesService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.ShippingAddress, error)
func (*ShippingAddressesService) Update ¶
func (s *ShippingAddressesService) Update(accountCode string, shippingAddressID int64, address recurly.ShippingAddress) (*recurly.Response, *recurly.ShippingAddress, error)
type SubscriptionsService ¶
type SubscriptionsService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Subscription, error) ListInvoked bool OnListAccount func(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Subscription, error) ListAccountInvoked bool OnGet func(uuid string) (*recurly.Response, *recurly.Subscription, error) GetInvoked bool OnCreate func(sub recurly.NewSubscription) (*recurly.Response, *recurly.NewSubscriptionResponse, error) CreateInvoked bool OnPreview func(sub recurly.NewSubscription) (*recurly.Response, *recurly.Subscription, error) PreviewInvoked bool OnUpdate func(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error) UpdateInvoked bool OnUpdateNotes func(uuid string, n recurly.SubscriptionNotes) (*recurly.Response, *recurly.Subscription, error) UpdateNotesInvoked bool OnPreviewChange func(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error) PreviewChangeInvoked bool OnCancel func(uuid string) (*recurly.Response, *recurly.Subscription, error) CancelInvoked bool OnReactivate func(uuid string) (*recurly.Response, *recurly.Subscription, error) ReactivateInvoked bool OnTerminateWithPartialRefund func(uuid string) (*recurly.Response, *recurly.Subscription, error) TerminateWithPartialRefundInvoked bool OnTerminateWithFullRefund func(uuid string) (*recurly.Response, *recurly.Subscription, error) TerminateWithFullRefundInvoked bool OnTerminateWithoutRefund func(uuid string) (*recurly.Response, *recurly.Subscription, error) TerminateWithoutRefundInvoked bool OnPostpone func(uuid string, dt time.Time, bulk bool) (*recurly.Response, *recurly.Subscription, error) PostponeInvoked bool OnPause func(uuid string, cycles int) (*recurly.Response, *recurly.Subscription, error) PauseInvoked bool OnResume func(uuid string) (*recurly.Response, *recurly.Subscription, error) ResumeInvoked bool }
SubscriptionService mocks the subscription service.
func (*SubscriptionsService) Cancel ¶
func (m *SubscriptionsService) Cancel(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Create ¶
func (m *SubscriptionsService) Create(sub recurly.NewSubscription) (*recurly.Response, *recurly.NewSubscriptionResponse, error)
func (*SubscriptionsService) Get ¶
func (m *SubscriptionsService) Get(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) List ¶
func (m *SubscriptionsService) List(params recurly.Params) (*recurly.Response, []recurly.Subscription, error)
func (*SubscriptionsService) ListAccount ¶
func (m *SubscriptionsService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Subscription, error)
func (*SubscriptionsService) Pause ¶
func (m *SubscriptionsService) Pause(uuid string, cycles int) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Postpone ¶
func (m *SubscriptionsService) Postpone(uuid string, dt time.Time, bulk bool) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Preview ¶
func (m *SubscriptionsService) Preview(sub recurly.NewSubscription) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) PreviewChange ¶
func (m *SubscriptionsService) PreviewChange(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Reactivate ¶
func (m *SubscriptionsService) Reactivate(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Resume ¶
func (m *SubscriptionsService) Resume(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) TerminateWithFullRefund ¶
func (m *SubscriptionsService) TerminateWithFullRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) TerminateWithPartialRefund ¶
func (m *SubscriptionsService) TerminateWithPartialRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) TerminateWithoutRefund ¶
func (m *SubscriptionsService) TerminateWithoutRefund(uuid string) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) Update ¶
func (m *SubscriptionsService) Update(uuid string, sub recurly.UpdateSubscription) (*recurly.Response, *recurly.Subscription, error)
func (*SubscriptionsService) UpdateNotes ¶
func (m *SubscriptionsService) UpdateNotes(uuid string, n recurly.SubscriptionNotes) (*recurly.Response, *recurly.Subscription, error)
type TransactionsService ¶
type TransactionsService struct { OnList func(params recurly.Params) (*recurly.Response, []recurly.Transaction, error) ListInvoked bool OnListAccount func(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Transaction, error) ListAccountInvoked bool OnGet func(uuid string) (*recurly.Response, *recurly.Transaction, error) GetInvoked bool OnCreate func(trans recurly.Transaction) (*recurly.Response, *recurly.Transaction, error) CreateInvoked bool }
TransactionsService mocks the transaction service.
func (*TransactionsService) Create ¶
func (m *TransactionsService) Create(t recurly.Transaction) (*recurly.Response, *recurly.Transaction, error)
func (*TransactionsService) Get ¶
func (m *TransactionsService) Get(uuid string) (*recurly.Response, *recurly.Transaction, error)
func (*TransactionsService) List ¶
func (m *TransactionsService) List(params recurly.Params) (*recurly.Response, []recurly.Transaction, error)
func (*TransactionsService) ListAccount ¶
func (m *TransactionsService) ListAccount(accountCode string, params recurly.Params) (*recurly.Response, []recurly.Transaction, error)