Versions in this module Expand all Collapse all v1 v1.0.0 May 29, 2019 Changes in this version + type AccountsService struct + BalanceInvoked bool + CloseInvoked bool + CreateInvoked bool + GetInvoked bool + ListInvoked bool + ListNotesInvoked bool + OnBalance func(ctx context.Context, code string) (*recurly.AccountBalance, error) + OnClose func(ctx context.Context, code string) error + OnCreate func(ctx context.Context, a recurly.Account) (*recurly.Account, error) + OnGet func(ctx context.Context, code string) (*recurly.Account, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnListNotes func(code string, opts *recurly.PagerOptions) recurly.Pager + OnReopen func(ctx context.Context, code string) error + OnUpdate func(ctx context.Context, code string, a recurly.Account) (*recurly.Account, error) + ReopenInvoked bool + UpdateInvoked bool + func (m *AccountsService) Balance(ctx context.Context, code string) (*recurly.AccountBalance, error) + func (m *AccountsService) Close(ctx context.Context, code string) error + func (m *AccountsService) Create(ctx context.Context, a recurly.Account) (*recurly.Account, error) + func (m *AccountsService) Get(ctx context.Context, code string) (*recurly.Account, error) + func (m *AccountsService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *AccountsService) ListNotes(code string, opts *recurly.PagerOptions) recurly.Pager + func (m *AccountsService) Reopen(ctx context.Context, code string) error + func (m *AccountsService) Update(ctx context.Context, code string, a recurly.Account) (*recurly.Account, error) + type AddOnsService struct + CreateInvoked bool + DeleteInvoked bool + GetInvoked bool + ListInvoked bool + OnCreate func(ctx context.Context, planCode string, a recurly.AddOn) (*recurly.AddOn, error) + OnDelete func(ctx context.Context, planCode string, code string) error + OnGet func(ctx context.Context, planCode string, code string) (*recurly.AddOn, error) + OnList func(planCode string, opts *recurly.PagerOptions) recurly.Pager + OnUpdate func(ctx context.Context, planCode string, code string, a recurly.AddOn) (*recurly.AddOn, error) + UpdateInvoked bool + func (m *AddOnsService) Create(ctx context.Context, planCode string, a recurly.AddOn) (*recurly.AddOn, error) + func (m *AddOnsService) Delete(ctx context.Context, planCode string, code string) error + func (m *AddOnsService) Get(ctx context.Context, planCode string, code string) (*recurly.AddOn, error) + func (m *AddOnsService) List(planCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *AddOnsService) Update(ctx context.Context, planCode string, code string, a recurly.AddOn) (*recurly.AddOn, error) + type AdjustmentsService struct + CreateInvoked bool + DeleteInvoked bool + GetInvoked bool + ListAccountInvoked bool + OnCreate func(ctx context.Context, accountCode string, a recurly.Adjustment) (*recurly.Adjustment, error) + OnDelete func(ctx context.Context, uuid string) error + OnGet func(ctx context.Context, uuid string) (*recurly.Adjustment, error) + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *AdjustmentsService) Create(ctx context.Context, accountCode string, a recurly.Adjustment) (*recurly.Adjustment, error) + func (m *AdjustmentsService) Delete(ctx context.Context, uuid string) error + func (m *AdjustmentsService) Get(ctx context.Context, uuid string) (*recurly.Adjustment, error) + func (m *AdjustmentsService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager + type BillingService struct + ClearInvoked bool + CreateInvoked bool + GetInvoked bool + OnClear func(ctx context.Context, accountCode string) error + OnCreate func(ctx context.Context, accountCode string, b recurly.Billing) (*recurly.Billing, error) + OnGet func(ctx context.Context, accountCode string) (*recurly.Billing, error) + OnUpdate func(ctx context.Context, accountCode string, b recurly.Billing) (*recurly.Billing, error) + UpdateInvoked bool + func (m *BillingService) Clear(ctx context.Context, accountCode string) error + func (m *BillingService) Create(ctx context.Context, accountCode string, b recurly.Billing) (*recurly.Billing, error) + func (m *BillingService) Get(ctx context.Context, accountCode string) (*recurly.Billing, error) + func (m *BillingService) Update(ctx context.Context, accountCode string, b recurly.Billing) (*recurly.Billing, error) + type Client struct + Accounts AccountsService + AddOns AddOnsService + Adjustments AdjustmentsService + Billing BillingService + Coupons CouponsService + CreditPayments CreditPaymentsService + Invoices InvoicesService + Plans PlansService + Purchases PurchasesService + Redemptions RedemptionsService + ShippingAddresses ShippingAddressesService + ShippingMethods ShippingMethodsService + Subscriptions SubscriptionsService + Transactions TransactionsService + func NewClient(subdomain, apiKey string) *Client + type CouponsService struct + CreateInvoked bool + DeleteInvoked bool + GenerateInvoked bool + GetInvoked bool + ListInvoked bool + OnCreate func(ctx context.Context, c recurly.Coupon) (*recurly.Coupon, error) + OnDelete func(ctx context.Context, code string) error + OnGenerate func(ctx context.Context, code string, n int) (recurly.Pager, error) + OnGet func(ctx context.Context, code string) (*recurly.Coupon, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnRestore func(ctx context.Context, code string, c recurly.Coupon) (*recurly.Coupon, error) + OnUpdate func(ctx context.Context, code string, c recurly.Coupon) (*recurly.Coupon, error) + RestoreInvoked bool + UpdateInvoked bool + func (m *CouponsService) Create(ctx context.Context, c recurly.Coupon) (*recurly.Coupon, error) + func (m *CouponsService) Delete(ctx context.Context, code string) error + func (m *CouponsService) Generate(ctx context.Context, code string, n int) (recurly.Pager, error) + func (m *CouponsService) Get(ctx context.Context, code string) (*recurly.Coupon, error) + func (m *CouponsService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *CouponsService) Restore(ctx context.Context, code string, c recurly.Coupon) (*recurly.Coupon, error) + func (m *CouponsService) Update(ctx context.Context, code string, c recurly.Coupon) (*recurly.Coupon, error) + type CreditPaymentsService struct + GetInvoked bool + ListAccountInvoked bool + ListInvoked bool + OnGet func(ctx context.Context, uuid string) (*recurly.CreditPayment, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnListAccount func(code string, opts *recurly.PagerOptions) recurly.Pager + func (m *CreditPaymentsService) Get(ctx context.Context, uuid string) (*recurly.CreditPayment, error) + func (m *CreditPaymentsService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *CreditPaymentsService) ListAccount(code string, opts *recurly.PagerOptions) recurly.Pager + type InvoicesService struct + CollectInvoked bool + CreateInvoked bool + GetInvoked bool + GetPDFInvoked bool + ListAccountInvoked bool + ListInvoked bool + MarkFailedInvoked bool + MarkPaidInvoked bool + OnCollect func(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + OnCreate func(ctx context.Context, accountCode string, invoice recurly.Invoice) (*recurly.Invoice, error) + OnGet func(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + OnGetPDF func(ctx context.Context, invoiceNumber int, language string) (*bytes.Buffer, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + OnMarkFailed func(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + OnMarkPaid func(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + OnPreview func(ctx context.Context, accountCode string) (*recurly.Invoice, error) + OnRecordPayment func(ctx context.Context, pmt recurly.OfflinePayment) (*recurly.Transaction, error) + OnRefundVoidLineItems func(ctx context.Context, invoiceNumber int, refund recurly.InvoiceLineItemsRefund) (*recurly.Invoice, error) + OnRefundVoidOpenAmount func(ctx context.Context, invoiceNumber int, refund recurly.InvoiceRefund) (*recurly.Invoice, error) + OnVoidCreditInvoice func(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + PreviewInvoked bool + RecordPaymentInvoked bool + RefundVoidLineItemsInvoked bool + RefundVoidOpenAmountInvoked bool + VoidCreditInvoiceInvoked bool + func (m *InvoicesService) Collect(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + func (m *InvoicesService) Create(ctx context.Context, accountCode string, invoice recurly.Invoice) (*recurly.Invoice, error) + func (m *InvoicesService) Get(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + func (m *InvoicesService) GetPDF(ctx context.Context, invoiceNumber int, language string) (*bytes.Buffer, error) + func (m *InvoicesService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *InvoicesService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *InvoicesService) MarkFailed(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + func (m *InvoicesService) MarkPaid(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + func (m *InvoicesService) Preview(ctx context.Context, accountCode string) (*recurly.Invoice, error) + func (m *InvoicesService) RecordPayment(ctx context.Context, pmt recurly.OfflinePayment) (*recurly.Transaction, error) + func (m *InvoicesService) RefundVoidLineItems(ctx context.Context, invoiceNumber int, refund recurly.InvoiceLineItemsRefund) (*recurly.Invoice, error) + func (m *InvoicesService) RefundVoidOpenAmount(ctx context.Context, invoiceNumber int, refund recurly.InvoiceRefund) (*recurly.Invoice, error) + func (m *InvoicesService) VoidCreditInvoice(ctx context.Context, invoiceNumber int) (*recurly.Invoice, error) + type Pager struct + CountInvoked bool + FetchAllInvoked bool + FetchInvoked bool + NextInvoked bool + OnCount func(ctx context.Context) (int, error) + OnFetch func(ctx context.Context, dst interface{}) error + OnFetchAll func(ctx context.Context, dst interface{}) error + OnNext func() bool + func (m *Pager) Count(ctx context.Context) (int, error) + func (m *Pager) Fetch(ctx context.Context, dst interface{}) error + func (m *Pager) FetchAll(ctx context.Context, dst interface{}) error + func (m *Pager) Next() bool + type PlansService struct + CreateInvoked bool + DeleteInvoked bool + GetInvoked bool + ListInvoked bool + OnCreate func(ctx context.Context, p recurly.Plan) (*recurly.Plan, error) + OnDelete func(ctx context.Context, code string) error + OnGet func(ctx context.Context, code string) (*recurly.Plan, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnUpdate func(ctx context.Context, code string, p recurly.Plan) (*recurly.Plan, error) + UpdateInvoked bool + func (m *PlansService) Create(ctx context.Context, p recurly.Plan) (*recurly.Plan, error) + func (m *PlansService) Delete(ctx context.Context, code string) error + func (m *PlansService) Get(ctx context.Context, code string) (*recurly.Plan, error) + func (m *PlansService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *PlansService) Update(ctx context.Context, code string, p recurly.Plan) (*recurly.Plan, error) + type PurchasesService struct + AuthorizeInvoked bool + CancelInvoked bool + CaptureInvoked bool + CreateInvoked bool + OnAuthorize func(ctx context.Context, p recurly.Purchase) (*recurly.Purchase, error) + OnCancel func(ctx context.Context, transactionUUID string) (*recurly.InvoiceCollection, error) + OnCapture func(ctx context.Context, transactionUUID string) (*recurly.InvoiceCollection, error) + OnCreate func(ctx context.Context, p recurly.Purchase) (*recurly.InvoiceCollection, error) + OnPending func(ctx context.Context, p recurly.Purchase) (*recurly.Purchase, error) + OnPreview func(ctx context.Context, p recurly.Purchase) (*recurly.InvoiceCollection, error) + PendingInvoked bool + PreviewInvoked bool + func (m *PurchasesService) Authorize(ctx context.Context, p recurly.Purchase) (*recurly.Purchase, error) + func (m *PurchasesService) Cancel(ctx context.Context, transactionUUID string) (*recurly.InvoiceCollection, error) + func (m *PurchasesService) Capture(ctx context.Context, transactionUUID string) (*recurly.InvoiceCollection, error) + func (m *PurchasesService) Create(ctx context.Context, p recurly.Purchase) (*recurly.InvoiceCollection, error) + func (m *PurchasesService) Pending(ctx context.Context, p recurly.Purchase) (*recurly.Purchase, error) + func (m *PurchasesService) Preview(ctx context.Context, p recurly.Purchase) (*recurly.InvoiceCollection, error) + type RedemptionsService struct + DeleteInvoked bool + ListAccountInvoked bool + ListInvoiceInvoked bool + ListSubscriptionInvoked bool + OnDelete func(ctx context.Context, accountCode string) error + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + OnListInvoice func(invoiceNumber int, opts *recurly.PagerOptions) recurly.Pager + OnListSubscription func(uuid string, opts *recurly.PagerOptions) recurly.Pager + OnRedeem func(ctx context.Context, code string, r recurly.CouponRedemption) (*recurly.Redemption, error) + RedeemInvoked bool + func (m *RedemptionsService) Delete(ctx context.Context, accountCode string) error + func (m *RedemptionsService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *RedemptionsService) ListInvoice(invoiceNumber int, opts *recurly.PagerOptions) recurly.Pager + func (m *RedemptionsService) ListSubscription(uuid string, opts *recurly.PagerOptions) recurly.Pager + func (m *RedemptionsService) Redeem(ctx context.Context, code string, r recurly.CouponRedemption) (*recurly.Redemption, error) + type ShippingAddressesService struct + CreateInvoked bool + DeleteInvoked bool + ListAccountInvoked bool + OnCreate func(ctx context.Context, accountCode string, address recurly.ShippingAddress) (*recurly.ShippingAddress, error) + OnDelete func(ctx context.Context, accountCode string, shippingAddressID int) error + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + OnUpdate func(ctx context.Context, accountCode string, shippingAddressID int, ...) (*recurly.ShippingAddress, error) + UpdateInvoked bool + func (s *ShippingAddressesService) Create(ctx context.Context, accountCode string, address recurly.ShippingAddress) (*recurly.ShippingAddress, error) + func (s *ShippingAddressesService) Delete(ctx context.Context, accountCode string, shippingAddressID int) error + func (s *ShippingAddressesService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (s *ShippingAddressesService) Update(ctx context.Context, accountCode string, shippingAddressID int, ...) (*recurly.ShippingAddress, error) + type ShippingMethodsService struct + GetInvoked bool + ListInvoked bool + OnGet func(ctx context.Context, code string) (*recurly.ShippingMethod, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + func (s *ShippingMethodsService) Get(ctx context.Context, code string) (*recurly.ShippingMethod, error) + func (s *ShippingMethodsService) List(opts *recurly.PagerOptions) recurly.Pager + type SubscriptionsService struct + CancelInvoked bool + CreateInvoked bool + GetInvoked bool + ListAccountInvoked bool + ListInvoked bool + OnCancel func(ctx context.Context, uuid string) (*recurly.Subscription, error) + OnCreate func(ctx context.Context, sub recurly.NewSubscription) (*recurly.Subscription, error) + OnGet func(ctx context.Context, uuid string) (*recurly.Subscription, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + OnPause func(ctx context.Context, uuid string, cycles int) (*recurly.Subscription, error) + OnPostpone func(ctx context.Context, uuid string, dt time.Time, bulk bool) (*recurly.Subscription, error) + OnPreview func(ctx context.Context, sub recurly.NewSubscription) (*recurly.Subscription, error) + OnPreviewChange func(ctx context.Context, uuid string, sub recurly.UpdateSubscription) (*recurly.Subscription, error) + OnReactivate func(ctx context.Context, uuid string) (*recurly.Subscription, error) + OnResume func(ctx context.Context, uuid string) (*recurly.Subscription, error) + OnTerminate func(ctx context.Context, uuid string, refundType string) (*recurly.Subscription, error) + OnUpdate func(ctx context.Context, uuid string, sub recurly.UpdateSubscription) (*recurly.Subscription, error) + OnUpdateNotes func(ctx context.Context, uuid string, n recurly.SubscriptionNotes) (*recurly.Subscription, error) + PauseInvoked bool + PostponeInvoked bool + PreviewChangeInvoked bool + PreviewInvoked bool + ReactivateInvoked bool + ResumeInvoked bool + TerminateInvoked bool + UpdateInvoked bool + UpdateNotesInvoked bool + func (m *SubscriptionsService) Cancel(ctx context.Context, uuid string) (*recurly.Subscription, error) + func (m *SubscriptionsService) Create(ctx context.Context, sub recurly.NewSubscription) (*recurly.Subscription, error) + func (m *SubscriptionsService) Get(ctx context.Context, uuid string) (*recurly.Subscription, error) + func (m *SubscriptionsService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *SubscriptionsService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *SubscriptionsService) Pause(ctx context.Context, uuid string, cycles int) (*recurly.Subscription, error) + func (m *SubscriptionsService) Postpone(ctx context.Context, uuid string, dt time.Time, bulk bool) (*recurly.Subscription, error) + func (m *SubscriptionsService) Preview(ctx context.Context, sub recurly.NewSubscription) (*recurly.Subscription, error) + func (m *SubscriptionsService) PreviewChange(ctx context.Context, uuid string, sub recurly.UpdateSubscription) (*recurly.Subscription, error) + func (m *SubscriptionsService) Reactivate(ctx context.Context, uuid string) (*recurly.Subscription, error) + func (m *SubscriptionsService) Resume(ctx context.Context, uuid string) (*recurly.Subscription, error) + func (m *SubscriptionsService) Terminate(ctx context.Context, uuid string, refundType string) (*recurly.Subscription, error) + func (m *SubscriptionsService) Update(ctx context.Context, uuid string, sub recurly.UpdateSubscription) (*recurly.Subscription, error) + func (m *SubscriptionsService) UpdateNotes(ctx context.Context, uuid string, n recurly.SubscriptionNotes) (*recurly.Subscription, error) + type TransactionsService struct + GetInvoked bool + ListAccountInvoked bool + ListInvoked bool + OnGet func(ctx context.Context, uuid string) (*recurly.Transaction, error) + OnList func(opts *recurly.PagerOptions) recurly.Pager + OnListAccount func(accountCode string, opts *recurly.PagerOptions) recurly.Pager + func (m *TransactionsService) Get(ctx context.Context, uuid string) (*recurly.Transaction, error) + func (m *TransactionsService) List(opts *recurly.PagerOptions) recurly.Pager + func (m *TransactionsService) ListAccount(accountCode string, opts *recurly.PagerOptions) recurly.Pager Incompatible versions in this module v2.0.0+incompatible Feb 11, 2020