Documentation ¶
Overview ¶
Package stripe provides the binding for Stripe REST APIs.
Index ¶
- Constants
- Variables
- func SetBackend(b Backend)
- func SetDebug(value bool)
- type Account
- type Amount
- type Backend
- type Balance
- type BalanceParams
- type BankAccount
- type BankAccountParams
- type CaptureParams
- type Card
- type CardBrand
- type CardFunding
- type CardIter
- type CardList
- type CardListParams
- type CardParams
- type Charge
- type ChargeIter
- type ChargeListParams
- type ChargeParams
- type Coupon
- type CouponDuration
- type CouponIter
- type CouponListParams
- type CouponParams
- type Currency
- type Customer
- type CustomerIter
- type CustomerListParams
- type CustomerParams
- type Discount
- type Dispute
- type DisputeParams
- type DisputeReason
- type DisputeStatus
- type Error
- type ErrorCode
- type ErrorType
- type Event
- type EventData
- type EventIter
- type EventListParams
- type Fee
- type FeeIter
- type FeeListParams
- type FeeParams
- type FeeRefund
- type FeeRefundIter
- type FeeRefundList
- type FeeRefundListParams
- type FeeRefundParams
- type Filters
- type InternalBackend
- type Invoice
- type InvoiceItem
- type InvoiceItemIter
- type InvoiceItemListParams
- type InvoiceItemParams
- type InvoiceIter
- type InvoiceLine
- type InvoiceLineIter
- type InvoiceLineList
- type InvoiceLineListParams
- type InvoiceLineType
- type InvoiceListParams
- type InvoiceParams
- type Iter
- type ListMeta
- type ListParams
- type Params
- type Period
- type Plan
- type PlanInternval
- type PlanIter
- type PlanListParams
- type PlanParams
- type Query
- type Recipient
- type RecipientIter
- type RecipientListParams
- type RecipientParams
- type RecipientType
- type Refund
- type RefundIter
- type RefundList
- type RefundListParams
- type RefundParams
- type Sub
- type SubIter
- type SubList
- type SubListParams
- type SubParams
- type SubStatus
- type Token
- type TokenParams
- type TokenType
- type Transaction
- type TransactionIter
- type TransactionStatus
- type TransactionType
- type Transfer
- type TransferFailCode
- type TransferIter
- type TransferListParams
- type TransferParams
- type TransferStatus
- type TransferType
- type TxFee
- type TxListParams
- type TxParams
- type Verification
Examples ¶
Constants ¶
const ( TxAvailable TransactionStatus = "available" TxPending TransactionStatus = "pending" TxCharge TransactionType = "charge" TxRefund TransactionType = "refund" TxAdjust TransactionType = "adjustment" TxAppFee TransactionType = "application_fee" TxFeeRefund TransactionType = "application_fee_refund" TxTransfer TransactionType = "transfer" TxTransferCancel TransactionType = "transfer_cancel" TxTransferFail TransactionType = "transfer_failure" )
const ( Unknown CardBrand = "Unknown" Visa CardBrand = "Visa" Amex CardBrand = "American Express" MasterCard CardBrand = "MasterCard" Discover CardBrand = "Discover" JCB CardBrand = "JCB" DinersClub CardBrand = "Diners Club" Pass Verification = "pass" Fail Verification = "fail" Unchecked Verification = "unchecked" CreditFunding CardFunding = "credit" DebitFunding CardFunding = "debit" PrepaidFunding CardFunding = "prepaid" UnknownFunding CardFunding = "unknown" )
const ( Duplicate DisputeReason = "duplicate" Fraudulent DisputeReason = "fraudulent" SubCanceled DisputeReason = "subscription_canceled" Unacceptable DisputeReason = "product_unacceptable" NotReceived DisputeReason = "product_not_received" Unrecognized DisputeReason = "unrecognized" Credit DisputeReason = "credit_not_processed" General DisputeReason = "general" Won DisputeStatus = "won" Lost DisputeStatus = "lost" Response DisputeStatus = "needs_response" Review DisputeStatus = "under_review" WarningResponse DisputeStatus = "warning_needs_response" WarningReview DisputeStatus = "warning_under_review" ChargeRefunded DisputeStatus = "charge_refunded" )
const ( InvalidRequest ErrorType = "invalid_request_error" ApiErr ErrorType = "api_error" CardErr ErrorType = "card_error" IncorrectNum ErrorCode = "incorrect_number" InvalidNum ErrorCode = "invalid_number" InvalidExpM ErrorCode = "invalid_expiry_month" InvalidExpY ErrorCode = "invalid_expiry_year" InvalidCvc ErrorCode = "invalid_cvc" ExpiredCard ErrorCode = "expired_card" IncorrectCvc ErrorCode = "incorrect_cvc" IncorrectZip ErrorCode = "incorrect_zip" CardDeclined ErrorCode = "card_declined" Missing ErrorCode = "missing" ProcessingErr ErrorCode = "processing_error" RateLimit ErrorCode = "rate_limit" )
const ( Paid TransferStatus = "paid" Pending TransferStatus = "pending" Failed TransferStatus = "failed" TransferCanceled TransferStatus = "canceled" CardTransfer TransferType = "card" BankTransfer TransferType = "bank_account" InsufficientFunds TransferFailCode = "insufficient_funds" AccountClosed TransferFailCode = "account_closed" NoAccount TransferFailCode = "no_account" InvalidAccountNumber TransferFailCode = "invalid_account_number" DebitNotAuth TransferFailCode = "debit_not_authorized" BankOwnerChanged TransferFailCode = "bank_ownership_changed" AccountFrozen TransferFailCode = "account_frozen" CouldNotProcess TransferFailCode = "could_not_process" BankAccountRestrict TransferFailCode = "bank_account_restricted" InvalidCurrency TransferFailCode = "invalid_currency" )
Variables ¶
var Key string
Key is the Stripe API key used globally in the binding.
Functions ¶
Types ¶
type Account ¶
type Account struct { Id string `json:"id"` ChargeEnabled bool `json:"charge_enabled"` Country string `json:"country"` // Currencies is the list of supported currencies. Currencies []string `json:"currencies_supported"` DefaultCurrency string `json:"default_currency"` DetailsSubmitted bool `json:"details_submitted"` TransferEnabled bool `json:"transfer_enabled"` Name string `json:"display_name"` Email string `json:"email"` Statement string `json:"statement_description"` Timezone string `json:"timezone"` }
Account is the resource representing youe Stripe account. For more details see https://stripe.com/docs/api/#account.
func (*Account) UnmarshalJSON ¶
type Backend ¶
Backend is an interface for making calls against a Stripe service. This interface exists to enable mocking for during testing if needed.
func GetBackend ¶
func GetBackend() Backend
GetBackend returns the currently used backend in the binding.
type Balance ¶
type Balance struct { // Live indicates the live mode. Live bool `json:"livemode"` Available []Amount `json:"available"` Pending []Amount `json:"pending"` }
Balance is the resource representing your Stripe balance. For more details see https://stripe.com/docs/api/#balance.
type BalanceParams ¶
type BalanceParams struct {
Params
}
BalanceParams is the set of parameters that can be used when retrieving a balance. For more details see https://stripe.com/docs/api#balance.
type BankAccount ¶
type BankAccount struct { Id string `json:"id"` Name string `json:"bank_name"` Country string `json:"country"` Currency Currency `json:"currency"` LastFour string `json:"last4"` Disabled bool `json:"disabled"` Fingerprint string `json:"fingerprint"` Valid bool `json:"validated"` }
BankAccount represents a Stripe bank account.
type BankAccountParams ¶
type BankAccountParams struct {
Country, Routing, Account string
}
BankAccountParams is the set of parameters that can be used when creating or updating a bank account.
func (*BankAccountParams) AppendDetails ¶
func (b *BankAccountParams) AppendDetails(values *url.Values)
AppendDetails adds the bank account's details to the query string values.
type CaptureParams ¶
CaptureParams is the set of parameters that can be used when capturing a charge. For more details see https://stripe.com/docs/api#charge_capture.
type Card ¶
type Card struct { Id string `json:"id"` Month uint8 `json:"exp_month"` Year uint16 `json:"exp_year"` Fingerprint string `json:"fingerprint"` Funding CardFunding `json:"funding"` LastFour string `json:"last4"` Brand CardBrand `json:"brand"` City string `json:"address_city"` Country string `json:"address_country"` Address1 string `json:"address_line1"` Address1Check Verification `json:"address_line1_check"` Address2 string `json:"address_line2"` State string `json:"address_state"` Zip string `json:"address_zip"` ZipCheck Verification `json:"address_zip_check"` CardCountry string `json:"country"` Customer *Customer `json:"customer"` CVCCheck Verification `json:"cvc_check"` Name string `json:"name"` Recipient *Recipient `json:"recipient"` }
Card is the resource representing a Stripe credit/debit card. For more details see https://stripe.com/docs/api#cards.
func (*Card) UnmarshalJSON ¶
type CardBrand ¶
type CardBrand string
CardBrand is the list of allowed values for the card's brand. Allowed values are "Unknown", "Visa", "American Express", "MasterCard", "Discover" "JCB", "Diners Club".
type CardFunding ¶
type CardFunding string
CardFunding is the list of allowed values for the card's funding. Allowed values are "credit", "debit", "prepaid", "unknown".
type CardIter ¶
type CardIter struct {
Iter *Iter
}
CardIter is a iterator for list responses.
type CardListParams ¶
type CardListParams struct { ListParams Customer, Recipient string }
CardListParams is the set of parameters that can be used when listing cards. For more details see https://stripe.com/docs/api#list_cards.
type CardParams ¶
type CardParams struct { Params Token string Customer, Recipient string Name, Number, Month, Year, CVC string Address1, Address2, City, State, Zip, Country string }
CardParams is the set of parameters that can be used when creating or updating a card. For more details see https://stripe.com/docs/api#create_card and https://stripe.com/docs/api#update_card.
func (*CardParams) AppendDetails ¶
func (c *CardParams) AppendDetails(values *url.Values, creating bool)
AppendDetails adds the card's details to the query string values. When creating a new card, the parameters are passed as a dictionary, but on updates they are simply the parameter name.
type Charge ¶
type Charge struct { Id string `json:"id"` Live bool `json:"livemode"` Amount uint64 `json:"amount"` Captured bool `json:"captured"` Card *Card `json:"card"` Created int64 `json:"created"` Currency Currency `json:"currency"` Paid bool `json:"paid"` Refunded bool `json:"refunded"` Refunds *RefundList `json:"refunds"` AmountRefunded uint64 `json:"amount_refunded"` Tx *Transaction `json:"balance_transaction"` Customer *Customer `json:"customer"` Desc string `json:"description"` Dispute *Dispute `json:"dispute"` FailMsg string `json:"failure_message"` FailCode string `json:"failure_code"` Invoice *Invoice `json:"invoice"` Meta map[string]string `json:"metadata"` Email string `json:"receipt_email"` Statement string `json:"statement_description"` }
Charge is the resource representing a Stripe charge. For more details see https://stripe.com/docs/api#charges.
Example (Get) ¶
stripe.Key = "sk_key" params := &stripe.ChargeParams{} params.Expand("customer") params.Expand("balance_transaction") ch, err := charge.Get("ch_example_id", params) if err != nil { log.Fatal(err) } log.Printf("%v\n", ch.Id)
Output:
Example (Post) ¶
stripe.Key = "sk_key" params := &stripe.ChargeParams{ Amount: 1000, Currency: stripe.USD, Card: &stripe.CardParams{ Name: "Go Stripe", Number: "4242424242424242", Month: "10", Year: "20", }, } ch, err := charge.Create(params) if err != nil { log.Fatal(err) } log.Printf("%v\n", ch.Id)
Output:
func (*Charge) UnmarshalJSON ¶
type ChargeIter ¶
type ChargeIter struct {
Iter *Iter
}
ChargeIter is a iterator for list responses.
func (*ChargeIter) Next ¶
func (i *ChargeIter) Next() (*Charge, error)
Next returns the next value in the list.
func (*ChargeIter) Stop ¶
func (i *ChargeIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type ChargeListParams ¶
type ChargeListParams struct { ListParams Created int64 Customer string }
ChargeListParams is the set of parameters that can be used when listing charges. For more details see https://stripe.com/docs/api#list_charges.
type ChargeParams ¶
type ChargeParams struct { Params Amount uint64 Currency Currency Customer, Token string Card *CardParams Desc, Statement, Email string NoCapture bool Fee uint64 }
ChargeParams is the set of parameters that can be used when creating or updating a charge. For more details see https://stripe.com/docs/api#create_charge and https://stripe.com/docs/api#update_charge.
type Coupon ¶
type Coupon struct { Id string `json:"id"` Live bool `json:"livemode"` Created int64 `json:"created"` Duration CouponDuration `json:"duration"` Amount uint64 `json:"amount_off"` Currency Currency `json:"currency"` DurationPeriod uint64 `json:"duration_in_months"` Redemptions uint64 `json:"max_redemptions"` Meta map[string]string `json:"metadata"` Percent uint64 `json:"percent_off"` RedeemBy int64 `json:"redeem_by"` Redeemed uint64 `json:"times_redeemed"` Valid bool `json:"valid"` }
Coupon is the resource representing a Stripe coupon. For more details see https://stripe.com/docs/api#coupons.
func (*Coupon) UnmarshalJSON ¶
type CouponDuration ¶
type CouponDuration string
CouponDuration is the list of allowed values for the coupon's duration. Allowed values are "forever", "once", "repeating".
const ( Forever CouponDuration = "forever" Once CouponDuration = "once" Repeating CouponDuration = "repeating" )
type CouponIter ¶
type CouponIter struct {
Iter *Iter
}
CouponIter is a iterator for list responses.
func (*CouponIter) Next ¶
func (i *CouponIter) Next() (*Coupon, error)
Next returns the next value in the list.
func (*CouponIter) Stop ¶
func (i *CouponIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type CouponListParams ¶
type CouponListParams struct {
ListParams
}
CouponListParams is the set of parameters that can be used when listing coupons. For more detail see https://stripe.com/docs/api#list_coupons.
type CouponParams ¶
type CouponParams struct { Params Duration CouponDuration Id string Currency Currency Amount, Percent, DurationPeriod, Redemptions uint64 RedeemBy int64 }
CouponParams is the set of parameters that can be used when creating a coupon. For more details see https://stripe.com/docs/api#create_coupon.
type Currency ¶
type Currency string
Currency is the list of supported currencies. For more details see https://support.stripe.com/questions/which-currencies-does-stripe-support.
const ( AED Currency = "aed" // United Arab Emirates Dirham AFN Currency = "afn" // Afghan Afghani ALL Currency = "all" // Albanian Lek AMD Currency = "amd" // Armenian Dram ANG Currency = "ang" // Netherlands Antillean Gulden AOA Currency = "aoa" // Angolan Kwanza ARS Currency = "ars" // Argentine Peso AUD Currency = "aud" // Australian Dollar AWG Currency = "awg" // Aruban Florin AZN Currency = "azn" // Azerbaijani Manat BAM Currency = "bam" // Bosnia & Herzegovina Convertible Mark BBD Currency = "bbd" // Barbadian Dollar BDT Currency = "bdt" // Bangladeshi Taka BGN Currency = "bgn" // Bulgarian Lev BIF Currency = "bif" // Burundian Franc BMD Currency = "bmd" // Bermudian Dollar BND Currency = "bnd" // Brunei Dollar BOB Currency = "bob" // Bolivian Boliviano BRL Currency = "brl" // Brazilian Real BSD Currency = "bsd" // Bahamian Dollar BWP Currency = "bwp" // Botswana Pula BZD Currency = "bzd" // Belize Dollar CAD Currency = "cad" // Canadian Dollar CDF Currency = "cdf" // Congolese Franc CHF Currency = "chf" // Swiss Franc CLP Currency = "clp" // Chilean Peso CNY Currency = "cny" // Chinese Renminbi Yuan COP Currency = "cop" // Colombian Peso CRC Currency = "crc" // Costa Rican Colón CVE Currency = "cve" // Cape Verdean Escudo CZK Currency = "czk" // Czech Koruna DJF Currency = "djf" // Djiboutian Franc DKK Currency = "dkk" // Danish Krone DOP Currency = "dop" // Dominican Peso DZD Currency = "dzd" // Algerian Dinar EEK Currency = "eek" // Estonian Kroon EGP Currency = "egp" // Egyptian Pound ETB Currency = "etb" // Ethiopian Birr EUR Currency = "eur" // Euro FJD Currency = "fjd" // Fijian Dollar FKP Currency = "fkp" // Falkland Islands Pound GBP Currency = "gbp" // British Pound GEL Currency = "gel" // Georgian Lari GIP Currency = "gip" // Gibraltar Pound GMD Currency = "gmd" // Gambian Dalasi GNF Currency = "gnf" // Guinean Franc GTQ Currency = "gtq" // Guatemalan Quetzal GYD Currency = "gyd" // Guyanese Dollar HKD Currency = "hkd" // Hong Kong Dollar HNL Currency = "hnl" // Honduran Lempira HRK Currency = "hrk" // Croatian Kuna HTG Currency = "htg" // Haitian Gourde HUF Currency = "huf" // Hungarian Forint IDR Currency = "idr" // Indonesian Rupiah ILS Currency = "ils" // Israeli New Sheqel INR Currency = "inr" // Indian Rupee ISK Currency = "isk" // Icelandic Króna JMD Currency = "jmd" // Jamaican Dollar JPY Currency = "jpy" // Japanese Yen KES Currency = "kes" // Kenyan Shilling KGS Currency = "kgs" // Kyrgyzstani Som KHR Currency = "khr" // Cambodian Riel KMF Currency = "kmf" // Comorian Franc KRW Currency = "krw" // South Korean Won KYD Currency = "kyd" // Cayman Islands Dollar KZT Currency = "kzt" // Kazakhstani Tenge LAK Currency = "lak" // Lao Kip LBP Currency = "lbp" // Lebanese Pound LKR Currency = "lkr" // Sri Lankan Rupee LRD Currency = "lrd" // Liberian Dollar LSL Currency = "lsl" // Lesotho Loti LTL Currency = "ltl" // Lithuanian Litas LVL Currency = "lvl" // Latvian Lats MAD Currency = "mad" // Moroccan Dirham MDL Currency = "mdl" // Moldovan Leu MGA Currency = "mga" // Malagasy Ariary MKD Currency = "mkd" // Macedonian Denar MNT Currency = "mnt" // Mongolian Tögrög MOP Currency = "mop" // Macanese Pataca MRO Currency = "mro" // Mauritanian Ouguiya MUR Currency = "mur" // Mauritian Rupee MVR Currency = "mvr" // Maldivian Rufiyaa MWK Currency = "mwk" // Malawian Kwacha MXN Currency = "mxn" // Mexican Peso MYR Currency = "myr" // Malaysian Ringgit MZN Currency = "mzn" // Mozambican Metical NAD Currency = "nad" // Namibian Dollar NGN Currency = "ngn" // Nigerian Naira NIO Currency = "nio" // Nicaraguan Córdoba NOK Currency = "nok" // Norwegian Krone NPR Currency = "npr" // Nepalese Rupee NZD Currency = "nzd" // New Zealand Dollar PAB Currency = "pab" // Panamanian Balboa PEN Currency = "pen" // Peruvian Nuevo Sol PGK Currency = "pgk" // Papua New Guinean Kina PHP Currency = "php" // Philippine Peso PKR Currency = "pkr" // Pakistani Rupee PLN Currency = "pln" // Polish Złoty PYG Currency = "pyg" // Paraguayan Guaraní QAR Currency = "qar" // Qatari Riyal RON Currency = "ron" // Romanian Leu RSD Currency = "rsd" // Serbian Dinar RUB Currency = "rub" // Russian Ruble RWF Currency = "rwf" // Rwandan Franc SAR Currency = "sar" // Saudi Riyal SBD Currency = "sbd" // Solomon Islands Dollar SCR Currency = "scr" // Seychellois Rupee SEK Currency = "sek" // Swedish Krona SGD Currency = "sgd" // Singapore Dollar SHP Currency = "shp" // Saint Helenian Pound SLL Currency = "sll" // Sierra Leonean Leone SOS Currency = "sos" // Somali Shilling SRD Currency = "srd" // Surinamese Dollar STD Currency = "std" // São Tomé and Príncipe Dobra SVC Currency = "svc" // Salvadoran Colón SZL Currency = "szl" // Swazi Lilangeni THB Currency = "thb" // Thai Baht TJS Currency = "tjs" // Tajikistani Somoni TOP Currency = "top" // Tongan Paʻanga TRY Currency = "try" // Turkish Lira TTD Currency = "ttd" // Trinidad and Tobago Dollar TWD Currency = "twd" // New Taiwan Dollar TZS Currency = "tzs" // Tanzanian Shilling UAH Currency = "uah" // Ukrainian Hryvnia UGX Currency = "ugx" // Ugandan Shilling USD Currency = "usd" // United States Dollar UYU Currency = "uyu" // Uruguayan Peso UZS Currency = "uzs" // Uzbekistani Som VEF Currency = "vef" // Venezuelan Bolívar VND Currency = "vnd" // Vietnamese Đồng VUV Currency = "vuv" // Vanuatu Vatu WST Currency = "wst" // Samoan Tala XAF Currency = "xaf" // Central African Cfa Franc XCD Currency = "xcd" // East Caribbean Dollar XOF Currency = "xof" // West African Cfa Franc XPF Currency = "xpf" // Cfp Franc YER Currency = "yer" // Yemeni Rial ZAR Currency = "zar" // South African Rand ZMW Currency = "zmw" // Zambian Kwacha )
type Customer ¶
type Customer struct { Id string `json:"id"` Live bool `json:"livemode"` Cards *CardList `json:"cards"` Created int64 `json:"created"` Balance int64 `json:"account_balance"` Currency Currency `json:"currency"` DefaultCard *Card `json:"default_card"` Delinquent bool `json:"delinquent"` Desc string `json:"description"` Discount *Discount `json:"discount"` Email string `json:"email"` Meta map[string]string `json:"metadata"` Subs *SubList `json:"subscriptions"` }
Customer is the resource representing a Stripe customer. For more details see https://stripe.com/docs/api#customers.
Example (Delete) ¶
stripe.Key = "sk_key" err := customer.Delete("acct_example_id") if err != nil { log.Fatal(err) }
Output:
func (*Customer) UnmarshalJSON ¶
type CustomerIter ¶
type CustomerIter struct {
Iter *Iter
}
CustomerIter is a iterator for list responses.
func (*CustomerIter) Next ¶
func (i *CustomerIter) Next() (*Customer, error)
Next returns the next value in the list.
func (*CustomerIter) Stop ¶
func (i *CustomerIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type CustomerListParams ¶
type CustomerListParams struct { ListParams Created int64 }
CustomerListParams is the set of parameters that can be used when listing customers. For more details see https://stripe.com/docs/api#list_customers.
type CustomerParams ¶
type CustomerParams struct { Params Balance int64 Token, Coupon string Card *CardParams Desc, Email string Plan string Quantity uint64 TrialEnd int64 DefaultCard string }
CustomerParams is the set of parameters that can be used when creating or updating a customer. For more details see https://stripe.com/docs/api#create_customer and https://stripe.com/docs/api#update_customer.
type Discount ¶
type Discount struct { Coupon *Coupon `json:"coupon"` Customer string `json:"customer"` Start int64 `json:"start"` End int64 `json:"end"` Sub string `json:"subscription"` }
Discount is the resource representing a Stripe discount. For more details see https://stripe.com/docs/api#discounts.
type Dispute ¶
type Dispute struct { Live bool `json:"livemode"` Amount uint64 `json:"amount"` Currency Currency `json:"currency"` Charge string `json:"charge"` Created int64 `json:"created"` Reason DisputeReason `json:"reason"` Status DisputeStatus `json:"status"` Transactions []*Transaction `json:"balance_transactions"` Evidence string `json:"evidence"` DueDate int64 `json:"evidence_due_by"` Meta map[string]string `json:"metadata"` }
Dispute is the resource representing a Stripe dispute. For more details see https://stripe.com/docs/api#disputes.
type DisputeParams ¶
DisputeParams is the set of parameters that can be used when updating a dispute. For more details see https://stripe.com/docs/api#update_dispute.
type DisputeReason ¶
type DisputeReason string
DisputeReason is the list of allowed values for a discount's reason. Allowed values are "duplicate", "fraudulent", "subscription_canceled", "product_unacceptable", "product_not_received", "unrecognized", "credit_not_processed", "general".
type DisputeStatus ¶
type DisputeStatus string
DisputeStatus is the list of allowed values for a discount's status. Allowed values are "won", "lost", "needs_ressponse", "under_review", "warning_needs_response", "warning_under_review", "charge_refunded".
type Error ¶
type Error struct { Type ErrorType `json:"type"` Msg string `json:"message"` Code ErrorCode `json:"code,omitempty"` Param string `json:"param,omitempty"` HttpStatusCode int `json:"-"` }
Error is the response returned when a call is unsuccessful. For more details see https://stripe.com/docs/api#errors.
type ErrorCode ¶
type ErrorCode string
ErrorCode is the list of allowed values for the error's code. Allowed values are "incorrect_number", "invalid_number", "invalid_expiry_month", "invalid_expiry_year", "invalid_cvc", "expired_card", "incorrect_cvc", "incorrect_zip", "card_declined", "missing", "processing_error", "rate_limit".
type ErrorType ¶
type ErrorType string
ErrorType is the list of allowed values for the error's type. Allowed values are "invalid_request_error", "api_error", "card_error".
type Event ¶
type Event struct { Id string `json:"id"` Live bool `json:"livemode"` Created int64 `json:"created"` Data *EventData `json:"data"` Webhooks uint64 `json:"pending_webhooks"` Type string `json:"type"` Req string `json:"request"` }
Event is the resource representing a Stripe event. For more details see https://stripe.com/docs/api#events.
func (*Event) GetObjValue ¶
GetObjValue returns the value from the e.Data.Obj bag based on the keys hierarchy.
func (*Event) GetPrevValue ¶
GetPrevValue returns the value from the e.Data.Prev bag based on the keys hierarchy.
type EventData ¶
type EventData struct { Obj map[string]interface{} `json:"object"` Prev map[string]interface{} `json:"previous_attributes"` }
EventData is the unmarshalled object as a map.
type EventIter ¶
type EventIter struct {
Iter *Iter
}
EventIter is a iterator for list responses.
type EventListParams ¶
type EventListParams struct { ListParams Created int64 // Type is one of the values documented at https://stripe.com/docs/api#event_types. Type string }
EventListParams is the set of parameters that can be used when listing events. For more details see https://stripe.com/docs/api#list_events.
type Fee ¶
type Fee struct { Id string `json:"id"` Live bool `json:"livemode"` Account *Account `json:"account"` Amount uint64 `json:"amount"` App string `json:"application"` Tx *Transaction `json:"balance_transaction"` Charge *Charge `json:"charge"` Created int64 `json:"created"` Currency Currency `json:"currency"` Refunded bool `json:"refunded"` Refunds *FeeRefundList `json:"refunds"` AmountRefunded uint64 `json:"amount_refunded"` }
Fee is the resource representing a Stripe application fee. For more details see https://stripe.com/docs/api#application_fees.
func (*Fee) UnmarshalJSON ¶
type FeeIter ¶
type FeeIter struct {
Iter *Iter
}
FeeIter is a iterator for list responses.
type FeeListParams ¶
type FeeListParams struct { ListParams Created int64 Charge string }
FeeListParams is the set of parameters that can be used when listing application fees. For more details see https://stripe.com/docs/api#list_application_fees.
type FeeParams ¶
FeeParams is the set of parameters that can be used when refunding an application fee. For more details see https://stripe.com/docs/api#refund_application_fee.
type FeeRefund ¶
type FeeRefund struct { Id string `json:"id"` Amount uint64 `json:"amount"` Created int64 `json:"created"` Currency Currency `json:"currency"` Tx *Transaction `json:"balance_transaction"` Fee string `json:"fee"` Meta map[string]string `json:"metadata"` }
FeeRefund is the resource representing a Stripe fee refund. For more details see https://stripe.com/docs/api#fee_refunds.
func (*FeeRefund) UnmarshalJSON ¶
type FeeRefundIter ¶
type FeeRefundIter struct {
Iter *Iter
}
FeeRefundIter is a iterator for list responses.
func (*FeeRefundIter) Meta ¶
func (i *FeeRefundIter) Meta() *ListMeta
Meta returns the list metadata.
func (*FeeRefundIter) Next ¶
func (i *FeeRefundIter) Next() (*FeeRefund, error)
Next returns the next value in the list.
func (*FeeRefundIter) Stop ¶
func (i *FeeRefundIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type FeeRefundList ¶
FeeRefundist is a list object for fee refunds.
type FeeRefundListParams ¶
type FeeRefundListParams struct { ListParams Fee string }
FeeRefundListParams is the set of parameters that can be used when listing fee refunds. For more details see https://stripe.com/docs/api#list_fee_refunds.
type FeeRefundParams ¶
FeeRefundParams is the set of parameters that can be used when refunding a fee. For more details see https://stripe.com/docs/api#fee_refund.
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
Filters is a structure that contains a collection of filters for list-related APIs.
type InternalBackend ¶
type InternalBackend struct {
// contains filtered or unexported fields
}
InternalBackend is the internal implementation for making HTTP calls to Stripe.
func NewInternalBackend ¶
func NewInternalBackend(httpClient *http.Client, url string) *InternalBackend
NewInternalBackend returns a customized backend used for making calls in this binding. This method should be called in one of two scenarios:
- You're running in a Google AppEngine environment where the http.DefaultClient is not available.
- You're doing internal development at Stripe.
type Invoice ¶
type Invoice struct { Id string `json:"id"` Live bool `json:"livemode"` Amount int64 `json:"amount_due"` Attempts uint64 `json:"attempt_count"` Attempted bool `json:"attempted"` Closed bool `json:"closed"` Currency Currency `json:"currency"` Customer *Customer `json:"customer"` Date int64 `json:"date"` Forgive bool `json:"forgiven"` Lines *InvoiceLineList `json:"lines"` Paid bool `json:"paid"` End int64 `json:"period_end"` Start int64 `json:"period_start"` StartBalance int64 `json:"starting_balance"` Subtotal int64 `json:"subtotal"` Total int64 `json:"total"` Fee uint64 `json:"application_fee"` Charge *Charge `json:"charge"` Desc string `json:"description"` Discount *Discount `json:"discount"` EndBalance int64 `json:"ending_balance"` NextAttempt int64 `json:"next_payment_attempt"` Statement string `json:"statement_description"` Sub string `json:"subscription"` Webhook int64 `json:"webhooks_delivered_at"` Meta map[string]string `json:"metadata"` }
Invoice is the resource representing a Stripe invoice. For more details see https://stripe.com/docs/api#invoice_object.
Example (Update) ¶
stripe.Key = "sk_key" params := &stripe.InvoiceParams{ Desc: "updated description", } inv, err := invoice.Update("sub_example_id", params) if err != nil { log.Fatal(err) } log.Printf("%v\n", inv.Desc)
Output:
func (*Invoice) UnmarshalJSON ¶
type InvoiceItem ¶
type InvoiceItem struct { Id string `json:"id"` Live bool `json:"livemode"` Amount int64 `json:"amount"` Currency Currency `json:"currency"` Customer *Customer `json:"customer"` Date int64 `json:"date"` Proration bool `json:"proration"` Desc string `json:"description"` Invoice *Invoice `json:"invoice"` Meta map[string]string `json:"metadata"` Sub string `json:"subscription"` }
InvoiceItem is the resource represneting a Stripe invoice item. For more details see https://stripe.com/docs/api#invoiceitems.
func (*InvoiceItem) UnmarshalJSON ¶
func (i *InvoiceItem) UnmarshalJSON(data []byte) error
type InvoiceItemIter ¶
type InvoiceItemIter struct {
Iter *Iter
}
InvoiceItemIter is a iterator for list responses.
func (*InvoiceItemIter) Meta ¶
func (i *InvoiceItemIter) Meta() *ListMeta
Meta returns the list metadata.
func (*InvoiceItemIter) Next ¶
func (i *InvoiceItemIter) Next() (*InvoiceItem, error)
Next returns the next value in the list.
func (*InvoiceItemIter) Stop ¶
func (i *InvoiceItemIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type InvoiceItemListParams ¶
type InvoiceItemListParams struct { ListParams Created int64 Customer string }
InvoiceItemListparams is the set of parameters that can be used when listing invoice items. For more details see https://stripe.com/docs/api#list_invoiceitems.
type InvoiceItemParams ¶
type InvoiceItemParams struct { Params Customer string Amount int64 Currency Currency Invoice, Desc, Sub string }
InvoiceItemParams is the set of parameters that can be used when creating or updating an invoice item. For more details see https://stripe.com/docs/api#create_invoiceitem and https://stripe.com/docs/api#update_invoiceitem.
type InvoiceIter ¶
type InvoiceIter struct {
Iter *Iter
}
InvoiceIter is a iterator for list responses.
func (*InvoiceIter) Next ¶
func (i *InvoiceIter) Next() (*Invoice, error)
Next returns the next value in the list.
func (*InvoiceIter) Stop ¶
func (i *InvoiceIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type InvoiceLine ¶
type InvoiceLine struct { Id string `json:"id"` Live bool `json:"live_mode"` Amount int64 `json:"amount"` Currency Currency `json:"currency"` Period *Period `json:"period"` Proration bool `json:"proration"` Type InvoiceLineType `json:"type"` Desc string `json:"description"` Meta map[string]string `json:"metadata"` Plan *Plan `json:"plan"` Quantity int64 `json:"quantity"` }
InvoiceLine is the resource representing a Stripe invoice line item. For more details see https://stripe.com/docs/api#invoice_line_item_object.
type InvoiceLineIter ¶
type InvoiceLineIter struct {
Iter *Iter
}
InvoiceLineIter is a iterator for list responses.
func (*InvoiceLineIter) Meta ¶
func (i *InvoiceLineIter) Meta() *ListMeta
Meta returns the list metadata.
func (*InvoiceLineIter) Next ¶
func (i *InvoiceLineIter) Next() (*InvoiceLine, error)
Next returns the next value in the list.
func (*InvoiceLineIter) Stop ¶
func (i *InvoiceLineIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type InvoiceLineList ¶
type InvoiceLineList struct { ListMeta Values []*InvoiceLine `json:"data"` }
InvoiceLineList is a list object for invoice line items.
type InvoiceLineListParams ¶
type InvoiceLineListParams struct { ListParams Id string Customer, Sub string }
InvoiceLineListParams is the set of parameters that can be used when listing invoice line items. For more details see https://stripe.com/docs/api#invoice_lines.
type InvoiceLineType ¶
type InvoiceLineType string
InvoiceLineType is the list of allowed values for the invoice line's type. Allowed values are "invoiceitem", "subscription".
const ( TypeInvoiceItem InvoiceLineType = "invoiceitem" TypeSubscription InvoiceLineType = "subscription" )
type InvoiceListParams ¶
type InvoiceListParams struct { ListParams Date int64 Customer string }
InvoiceListParams is the set of parameters that can be used when listing invoices. For more details see https://stripe.com/docs/api#list_customer_invoices.
type InvoiceParams ¶
type InvoiceParams struct { Params Customer string Desc, Statement, Sub string Fee uint64 Closed, Forgive bool }
InvoiceParams is the set of parameters that can be used when creating or updating an invoice. For more details see https://stripe.com/docs/api#create_invoice, https://stripe.com/docs/api#update_invoice.
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter represents an interator used for list pagination. Iterators are not thread-safe, so they should not be consumed across multiple goroutines.
func GetIter ¶
func GetIter(params *ListParams, qs *url.Values, query Query) *Iter
GetIter returns a new iterator for a given query and its options.
type ListMeta ¶
type ListMeta struct { Count uint16 `json:"total_count"` More bool `json:"has_more"` Url string `json:"url"` }
ListMeta is the structure that contains the common properties of List iterators. The Count property is only populated if the total_count include option is passed in (see tests for example).
type ListParams ¶
type ListParams struct {
Start, End string
Limit int
Filters Filters
// By default, listing through an iterator will automatically grab
// additional pages as the query progresses. To change this behavior
// and just load a single page, set this to true.
Single bool
}
ListParams is the structure that contains the common properties of any *ListParams structure.
func (*ListParams) AppendTo ¶
func (p *ListParams) AppendTo(body *url.Values)
AppendTo adds the common parameters to the query string values.
type Params ¶
Params is the structure that contains the common properties of any *Params structure.
type Plan ¶
type Plan struct { Id string `json:"id"` Live bool `json:"livemode"` Amount uint64 `json:"amount"` Created int64 `json:"created"` Currency Currency `json:"currency"` Interval PlanInternval `json:"interval"` IntervalCount uint64 `json:"interval_count"` Name string `json:"name"` Meta map[string]string `json:"metadata"` TrialPeriod uint64 `json:"trial_period_days"` Statement string `json:"statement_description"` }
Plan is the resource representing a Stripe plan. For more details see https://stripe.com/docs/api#plans.
Example (List) ¶
stripe.Key = "sk_key" params := &stripe.PlanListParams{} params.Filters.AddFilter("limit", "", "3") params.Single = true i := plan.List(params) for !i.Stop() { target, err := i.Next() if err != nil { log.Fatal(err) } log.Printf("%v ", target.Name) }
Output:
type PlanInternval ¶
type PlanInternval string
PlanInterval is the list of allowed values for a plan's interval. Allowed values are "day", "week", "month", "year".
const ( Day PlanInternval = "day" Week PlanInternval = "week" Month PlanInternval = "month" Year PlanInternval = "year" )
type PlanIter ¶
type PlanIter struct {
Iter *Iter
}
Plan iter is a iterator for list responses.
type PlanListParams ¶
type PlanListParams struct {
ListParams
}
PlanListParams is the set of parameters that can be used when listing plans. For more details see https://stripe.com/docs/api#list_plans.
type PlanParams ¶
type PlanParams struct { Params Id, Name string Currency Currency Amount uint64 Interval PlanInternval IntervalCount, TrialPeriod uint64 Statement string }
PlanParams is the set of parameters that can be used when creating or updating a plan. For more details see https://stripe.com/docs/api#create_plan and https://stripe.com/docs/api#update_plan.
type Recipient ¶
type Recipient struct { Id string `json:"id"` Live bool `json:"livemode"` Created int64 `json:"created"` Type RecipientType `json:"type"` Bank *BankAccount `json:"active_account"` Desc string `json:"description"` Email string `json:"email"` Meta map[string]string `json:"metadata"` Name string `json:"name"` Cards *CardList `json:"cards"` DefaultCard *Card `json:"default_card"` }
Recipient is the resource representing a Stripe recipient. For more details see https://stripe.com/docs/api#recipients.
func (*Recipient) UnmarshalJSON ¶
type RecipientIter ¶
type RecipientIter struct {
Iter *Iter
}
RecipientIter is a iterator for list responses.
func (*RecipientIter) Meta ¶
func (i *RecipientIter) Meta() *ListMeta
Meta returns the list metadata.
func (*RecipientIter) Next ¶
func (i *RecipientIter) Next() (*Recipient, error)
Next returns the next value in the list.
func (*RecipientIter) Stop ¶
func (i *RecipientIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type RecipientListParams ¶
type RecipientListParams struct { ListParams Verified bool }
RecipientListParams is the set of parameters that can be used when listing recipients. For more details see https://stripe.com/docs/api#list_recipients.
type RecipientParams ¶
type RecipientParams struct { Params Name string Type RecipientType TaxId, Token, Email, Desc string Bank *BankAccountParams Card *CardParams DefaultCard string }
RecipientParams is the set of parameters that can be used when creating or updating recipients. For more details see https://stripe.com/docs/api#create_recipient and https://stripe.com/docs/api#update_recipient.
type RecipientType ¶
type RecipientType string
RecipientType is the list of allowed values for the recipient's type. Allowed values are "individual", "corporation".
const ( Individual RecipientType = "individual" Corp RecipientType = "corporation" )
type Refund ¶
type Refund struct { Id string `json:"id"` Amount uint64 `json:"amount"` Created int64 `json:"created"` Currency Currency `json:"currency"` Tx *Transaction `json:"balance_transaction"` Charge string `json:"charge"` Meta map[string]string `json:"metadata"` }
Refund is the resource representing a Stripe refund. For more details see https://stripe.com/docs/api#refunds.
func (*Refund) UnmarshalJSON ¶
type RefundIter ¶
type RefundIter struct {
Iter *Iter
}
RefundIter is a iterator for list responses.
func (*RefundIter) Next ¶
func (i *RefundIter) Next() (*Refund, error)
Next returns the next value in the list.
func (*RefundIter) Stop ¶
func (i *RefundIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type RefundList ¶
Refundist is a list object for refunds.
type RefundListParams ¶
type RefundListParams struct { ListParams Charge string }
RefundListParams is the set of parameters that can be used when listing refunds. For more details see https://stripe.com/docs/api#list_refunds.
type RefundParams ¶
RefundParams is the set of parameters that can be used when refunding a charge. For more details see https://stripe.com/docs/api#refund.
type Sub ¶
type Sub struct { Id string `json:"id"` EndCancel bool `json:"cancel_at_period_end"` Customer *Customer `json:"customer"` Plan *Plan `json:"plan"` Quantity uint64 `json:"quantity"` Status SubStatus `json:"status"` FeePercent float64 `json:"application_fee_percent"` Canceled int64 `json:"canceled_at"` PeriodEnd int64 `json:"current_period_end"` PeriodStart int64 `json:"current_period_start"` Discount *Discount `json:"discount"` Ended int64 `json:"ended_at"` Meta map[string]string `json:"metadata"` TrialEnd int64 `json:"trial_end"` TrialStart int64 `json:"trial_start"` }
Sub is the resource representing a Stripe subscription. For more details see https://stripe.com/docs/api#subscriptions.
func (*Sub) UnmarshalJSON ¶
type SubIter ¶
type SubIter struct {
Iter *Iter
}
SubIter is a iterator for list responses.
type SubListParams ¶
type SubListParams struct { ListParams Customer string }
SubListParams is the set of parameters that can be used when listing active subscriptions. For more details see https://stripe.com/docs/api#list_subscriptions.
type SubParams ¶
type SubParams struct { Params Customer, Plan string Coupon, Token string TrialEnd int64 Card *CardParams Quantity uint64 FeePercent float64 NoProrate, EndCancel bool }
SubParams is the set of parameters that can be used when creating or updating a subscription. For more details see https://stripe.com/docs/api#create_subscription and https://stripe.com/docs/api#update_subscription.
type SubStatus ¶
type SubStatus string
SubStatus is the list of allowed values for the subscription's status. Allowed values are "trialing", "active", "past_due", "canceled", "unpaid".
type Token ¶
type Token struct { Id string `json:"id"` Live bool `json:"livemode"` Created int64 `json:"created"` Type TokenType `json:"type"` Used bool `json:"used"` Bank *BankAccount `json:"bank_account"` Card *Card `json:"card"` // Email is an undocumented field but included for all tokens created // with Stripe Checkout. Email string `json:"email"` }
Token is the resource representing a Stripe token. For more details see https://stripe.com/docs/api#tokens.
type TokenParams ¶
type TokenParams struct { Params Card *CardParams Bank *BankAccountParams Customer string // Email is an undocumented parameter used by Stripe Checkout // It may be removed from the API without notice. Email string }
TokenParams is the set of parameters that can be used when creating a token. For more details see https://stripe.com/docs/api#create_card_token and https://stripe.com/docs/api#create_bank_account_token.
type TokenType ¶
type TokenType string
TokenType is the list of allowed values for a token's type. Allowed values are "card", "bank_account".
type Transaction ¶
type Transaction struct { Id string `json:"id"` Amount int64 `json:"amount"` Currency Currency `json:"currency"` Available int64 `json:"available_on"` Created int64 `json:"created"` Fee int64 `json:"fee"` FeeDetails []TxFee `json:"fee_details"` Net int64 `json:"net"` Status TransactionStatus `json:"status"` Type TransactionType `json:"type"` Desc string `json:"description"` Src string `json:"source"` Recipient string `json:"recipient"` }
Transaction is the resource representing the balance transaction. For more details see https://stripe.com/docs/api/#balance.
func (*Transaction) UnmarshalJSON ¶
func (t *Transaction) UnmarshalJSON(data []byte) error
type TransactionIter ¶
type TransactionIter struct {
Iter *Iter
}
TransactionIter is a iterator for list responses.
func (*TransactionIter) Meta ¶
func (i *TransactionIter) Meta() *ListMeta
Meta returns the list metadata.
func (*TransactionIter) Next ¶
func (i *TransactionIter) Next() (*Transaction, error)
Next returns the next value in the list.
func (*TransactionIter) Stop ¶
func (i *TransactionIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type TransactionStatus ¶
type TransactionStatus string
TransactionStatus is the list of allowed values for the transaction's status. Allowed values are "available", "pending".
type TransactionType ¶
type TransactionType string
TransactionType is the list of allowed values for the transaction's type. Allowed values are "charge", "refund", "adjustment", "application_fee", "application_fee_refund", "transfer", "transfer_cancel", "transfer_failure".
type Transfer ¶
type Transfer struct { Id string `json:"id"` Live bool `json:"livemode"` Amount int64 `json:"amount"` Currency Currency `json:"currency"` Created int64 `json:"created"` Date int64 `json:"date"` Desc string `json:"description"` FailCode TransferFailCode `json:"failure_code"` FailMsg string `json:"failure_message"` Status TransferStatus `json:"status"` Type TransferType `json:"type"` Tx *Transaction `json:"balance_transaction"` Meta map[string]string `json:"metadata"` Bank *BankAccount `json:"bank_account"` Card *Card `json:"card"` Recipient *Recipient `json:"recipient"` Statement string `json:"statement_description"` }
Transfer is the resource representing a Stripe transfer. For more details see https://stripe.com/docs/api#transfers.
type TransferFailCode ¶
type TransferFailCode string
TransferFailCode is the list of allowed values for the transfer's failure code. Allowed values are "insufficient_funds", "account_closed", "no_account", "invalid_account_number", "debit_not_authorized", "bank_ownership_changed", "account_frozen", "could_not_process", "bank_account_restricted", "invalid_currency".
type TransferIter ¶
type TransferIter struct {
Iter *Iter
}
TransferIter is a iterator for list responses.
func (*TransferIter) Next ¶
func (i *TransferIter) Next() (*Transfer, error)
Next returns the next value in the list.
func (*TransferIter) Stop ¶
func (i *TransferIter) Stop() bool
Stop returns true if there are no more iterations to be performed.
type TransferListParams ¶
type TransferListParams struct { ListParams Created, Date int64 Recipient string Status TransferStatus }
TransferListParams is the set of parameters that can be used when listing transfers. For more details see https://stripe.com/docs/api#list_transfers.
type TransferParams ¶
type TransferParams struct { Params Amount int64 Currency Currency Recipient string Desc, Statement, Bank, Card string }
TransferParams is the set of parameters that can be used when creating or updating a transfer. For more details see https://stripe.com/docs/api#create_transfer and https://stripe.com/docs/api#update_transfer.
type TransferStatus ¶
type TransferStatus string
TransferStatus is the list of allowed values for the transfer's status. Allowed values are "paid", "pending", "failed", "canceled".
type TransferType ¶
type TransferType string
TransferType is the list of allowed values for the transfer's type. Allowed values are "card", "bank_account".
type TxFee ¶
type TxFee struct { Amount int64 `json:"amount"` Currency Currency `json:"currency"` Type string `json:"type"` Desc string `json:"description"` Application string `json:"application"` }
Fee is a structure that breaks down the fees in a transaction.
type TxListParams ¶
type TxListParams struct { ListParams Created, Available int64 Currency, Src, Transfer string Type TransactionType }
TxListParams is the set of parameters that can be used when listing balance transactions. For more details see https://stripe.com/docs/api/#balance_history.
type TxParams ¶
type TxParams struct {
Params
}
TxParams is the set of parameters that can be used when retrieving a transaction. For more details see https://stripe.com/docs/api#retrieve_balance_transaction.
type Verification ¶
type Verification string
Verification is the list of allowed verification responses. Allowed values are "pass", "fail", "unchecked".
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
package account provides the /account APIs
|
package account provides the /account APIs |
package balance provides the /balance APIs
|
package balance provides the /balance APIs |
package card provides the /cards APIs
|
package card provides the /cards APIs |
package charge provides the /charges APIs
|
package charge provides the /charges APIs |
package client provides a Stripe client for invoking APIs across all resources
|
package client provides a Stripe client for invoking APIs across all resources |
package coupon provides the /coupons APIs
|
package coupon provides the /coupons APIs |
package customer provides the /customes APIs
|
package customer provides the /customes APIs |
package discount provides the discount-related APIs
|
package discount provides the discount-related APIs |
package dispute provides the dispute-related APIs
|
package dispute provides the dispute-related APIs |
package event provides the /events APIs
|
package event provides the /events APIs |
package fee provides the /application_fees APIs
|
package fee provides the /application_fees APIs |
package feerefund provides the /application_fees/refunds APIs
|
package feerefund provides the /application_fees/refunds APIs |
package invoice provides the /invoices APIs
|
package invoice provides the /invoices APIs |
package invoiceitem provides the /invoiceitems APIs
|
package invoiceitem provides the /invoiceitems APIs |
package plan provides the /plans APIs
|
package plan provides the /plans APIs |
package recipient provides the /recipients APIs
|
package recipient provides the /recipients APIs |
package refund provides the /refunds APIs
|
package refund provides the /refunds APIs |
package sub provides the /subscriptions APIs
|
package sub provides the /subscriptions APIs |
package token provides the /tokens APIs
|
package token provides the /tokens APIs |
package transfer provides the /transfers APIs
|
package transfer provides the /transfers APIs |
package utils provides internal utilities
|
package utils provides internal utilities |