Versions in this module Expand all Collapse all v30 v30.8.1 May 24, 2018 Changes in this version + const APIBackend + const APIErr + const APIURL + const CardDeclined + const CardErr + const Company + const Day + const ErrorTypeAPI + const ErrorTypeAPIConnection + const ErrorTypeAuthentication + const ErrorTypeCard + const ErrorTypeInvalidRequest + const ErrorTypePermission + const ErrorTypeRateLimit + const ExpiredCard + const IdentityVerificationPending + const IdentityVerificationUnverified + const IdentityVerificationVerified + const IncorrectCvc + const IncorrectNum + const IncorrectZip + const Individual + const InvalidCvc + const InvalidExpM + const InvalidExpY + const InvalidNum + const InvalidRequest + const Manual + const Missing + const Month + const PlanBillingSchemePerUnit + const PlanBillingSchemeTiered + const PlanTransformUsageModeRoundDown + const PlanTransformUsageModeRoundUp + const PlanUsageTypeLicensed + const PlanUsageTypeMetered + const ProcessingErr + const RateLimit + const TotalBackends + const UnknownPlatform + const UploadsBackend + const UploadsURL + const UsageRecordParamsActionIncrement + const UsageRecordParamsActionSet + const Week + var Key string + var LogLevel = 2 + func NewIdempotencyKey() string + func SetAppInfo(info *AppInfo) + func SetBackend(backend SupportedBackend, b Backend) + func SetHTTPClient(client *http.Client) + type APIConnectionError struct + func (e *APIConnectionError) Error() string + type APIError struct + func (e *APIError) Error() string + type Account struct + BusinessLogo string + BusinessName string + BusinessPrimaryColor string + BusinessUrl string + ChargesEnabled bool + Country string + DebitNegativeBal bool + DefaultCurrency string + Deleted bool + DetailsSubmitted bool + Email string + ExternalAccounts *ExternalAccountList + ID string + Keys ... + LegalEntity *LegalEntity + Meta map[string]string + Name string + PayoutSchedule *PayoutSchedule + PayoutStatement string + PayoutsEnabled bool + ProductDesc string + Statement string + SupportAddress *Address + SupportEmail string + SupportPhone string + SupportUrl string + TOSAcceptance ... + Timezone string + Type AccountType + Verification ... + func (a *Account) UnmarshalJSON(data []byte) error + type AccountExternalAccountParams struct + Account string + AccountHolderName string + AccountHolderType string + Country string + Currency string + Routing string + Token string + func (p *AccountExternalAccountParams) AppendTo(body *form.Values, keyParts []string) + type AccountList struct + Values []*Account + type AccountListParams struct + type AccountParams struct + BusinessName string + BusinessPrimaryColor string + BusinessUrl string + Country string + DebitNegativeBal bool + DefaultCurrency string + Email string + ExternalAccount *AccountExternalAccountParams + FromRecipient string + LegalEntity *LegalEntity + NoDebitNegativeBal bool + PayoutSchedule *PayoutScheduleParams + PayoutStatement string + Statement string + SupportEmail string + SupportPhone string + SupportUrl string + TOSAcceptance *TOSAcceptanceParams + Type AccountType + type AccountRejectParams struct + Reason string + type AccountType string + const AccountTypeCustom + const AccountTypeExpress + const AccountTypeStandard + type Address struct + City string + Country string + Line1 string + Line2 string + State string + Town string + Zip string + type AddressParams struct + City string + Country string + Line1 string + Line2 string + PostalCode string + State string + type Amount struct + Currency Currency + Value int64 + type AppInfo struct + Name string + URL string + Version string + type ApplePayDomain struct + Created int64 + Deleted bool + DomainName string + ID string + Live bool + type ApplePayDomainList struct + Values []*ApplePayDomain + type ApplePayDomainListParams struct + type ApplePayDomainParams struct + DomainName string + type Application struct + ID string + Name string + func (a *Application) UnmarshalJSON(data []byte) error + type AuthenticationError struct + func (e *AuthenticationError) Error() string + type Backend interface + Call func(method, path, key string, body *form.Values, params *Params, v interface{}) error + CallMultipart func(method, path, key, boundary string, body io.Reader, params *Params, ...) error + func GetBackend(backend SupportedBackend) Backend + type BackendConfiguration struct + HTTPClient *http.Client + Type SupportedBackend + URL string + func (s *BackendConfiguration) Call(method, path, key string, form *form.Values, params *Params, v interface{}) error + func (s *BackendConfiguration) CallMultipart(method, path, key, boundary string, body io.Reader, params *Params, ...) error + func (s *BackendConfiguration) Do(req *http.Request, v interface{}) error + func (s *BackendConfiguration) NewRequest(method, path, key, contentType string, body io.Reader, params *Params) (*http.Request, error) + func (s *BackendConfiguration) ResponseToError(res *http.Response, resBody []byte) error + type Backends struct + API Backend + Uploads Backend + func NewBackends(httpClient *http.Client) *Backends + type Balance struct + Available []Amount + Live bool + Pending []Amount + type BalanceParams struct + type BankAccount struct + AccountHolderName string + AccountHolderType string + Country string + Currency Currency + Customer *Customer + Default bool + Deleted bool + Fingerprint string + ID string + LastFour string + Meta map[string]string + Name string + Routing string + Status BankAccountStatus + func (b *BankAccount) UnmarshalJSON(data []byte) error + type BankAccountList struct + Values []*BankAccount + type BankAccountListParams struct + AccountID string + Customer string + type BankAccountParams struct + Account string + AccountHolderName string + AccountHolderType string + AccountID string + Country string + Currency string + Customer string + Default bool + ID string + Routing string + Token string + func (a *BankAccountParams) AppendToAsSourceOrExternalAccount(body *form.Values) + type BankAccountStatus string + type BitcoinReceiver struct + Active bool + Amount uint64 + AmountReceived uint64 + BitcoinAmount uint64 + BitcoinAmountReceived uint64 + BitcoinUri string + Created int64 + Currency Currency + Customer string + Desc string + Email string + Filled bool + ID string + InboundAddress string + Meta map[string]string + Payment string + RefundAddress string + RejectTransactions bool + Transactions *BitcoinTransactionList + func (br *BitcoinReceiver) UnmarshalJSON(data []byte) error + type BitcoinReceiverList struct + Values []*BitcoinReceiver + type BitcoinReceiverListParams struct + NotActive bool + NotFilled bool + Uncaptured bool + type BitcoinReceiverParams struct + Amount uint64 + Currency Currency + Desc string + Email string + type BitcoinReceiverUpdateParams struct + Desc string + Email string + RefundAddr string + type BitcoinTransaction struct + Amount uint64 + BitcoinAmount uint64 + Created int64 + Currency Currency + Customer string + ID string + Receiver string + func (bt *BitcoinTransaction) UnmarshalJSON(data []byte) error + type BitcoinTransactionList struct + Values []*BitcoinTransaction + type BitcoinTransactionListParams struct + Customer string + Receiver string + type CaptureParams struct + Amount uint64 + Email string + ExchangeRate float64 + Fee uint64 + Statement string + type Card struct + Address1 string + Address1Check Verification + Address2 string + Brand CardBrand + CVCCheck Verification + CardCountry string + City string + Country string + Currency Currency + Customer *Customer + Default bool + Deleted bool + Description string + DynLastFour string + Fingerprint string + Funding CardFunding + ID string + IIN string + Issuer string + LastFour string + Meta map[string]string + Month uint8 + Name string + Recipient *Recipient + State string + ThreeDSecure *ThreeDSecure + TokenizationMethod TokenizationMethod + Year uint16 + Zip string + ZipCheck Verification + func (c *Card) UnmarshalJSON(data []byte) error + type CardBrand string + type CardError struct + DeclineCode string + func (e *CardError) Error() string + type CardFunding string + type CardList struct + Values []*Card + type CardListParams struct + Account string + Customer string + Recipient string + type CardParams struct + Account string + Address1 string + Address2 string + CVC string + City string + Country string + Currency string + Customer string + Default bool + ID string + Month string + Name string + Number string + Recipient string + State string + Token string + Year string + Zip string + func (c *CardParams) AppendToAsCardSourceOrExternalAccount(body *form.Values, keyParts []string) + type Charge struct + Amount uint64 + AmountRefunded uint64 + Application *Application + Captured bool + Created int64 + Currency Currency + Customer *Customer + Desc string + Dest *Account + Dispute *Dispute + Email string + FailCode string + FailMsg string + Fee *Fee + FraudDetails *FraudDetails + ID string + Invoice *Invoice + Live bool + Meta map[string]string + Outcome *ChargeOutcome + Paid bool + ReceiptNumber string + Refunded bool + Refunds *RefundList + Review *Review + Shipping *ShippingDetails + Source *PaymentSource + SourceTransfer *Transfer + Statement string + Status string + Transfer *Transfer + TransferGroup string + Tx *Transaction + func (c *Charge) UnmarshalJSON(data []byte) error + type ChargeList struct + Values []*Charge + type ChargeListParams struct + Created int64 + CreatedRange *RangeQueryParams + Customer string + TransferGroup string + type ChargeOutcome struct + NetworkStatus string + Reason string + RiskLevel string + Rule *ChargeOutcomeRule + SellerMessage string + Type string + type ChargeOutcomeRule struct + Action string + ID string + Predicate string + func (c *ChargeOutcomeRule) UnmarshalJSON(data []byte) error + type ChargeParams struct + Amount uint64 + Currency Currency + Customer string + Desc string + Destination *DestinationParams + Email string + ExchangeRate float64 + Fee uint64 + FraudDetails *FraudDetailsParams + NoCapture bool + OnBehalfOf string + Shipping *ShippingDetails + Source *SourceParams + Statement string + TransferGroup string + func (p *ChargeParams) SetSource(sp interface{}) error + type CodeVerificationFlow struct + AttemptsRemaining uint64 + Status CodeVerificationFlowStatus + type CodeVerificationFlowStatus string + const CodeVerificationFlowStatusFailed + const CodeVerificationFlowStatusPending + const CodeVerificationFlowStatusSucceeded + type Country string + type CountrySpec struct + DefaultCurrency Currency + ID string + SupportedBankAccountCurrencies map[Currency][]Country + SupportedPaymentCurrencies []Currency + SupportedPaymentMethods []string + VerificationFields map[LegalEntityType]VerificationFieldsList + type CountrySpecList struct + Values []*CountrySpec + type CountrySpecListParams struct + type Coupon struct + Amount uint64 + Created int64 + Currency Currency + Deleted bool + Duration CouponDuration + DurationPeriod uint64 + ID string + Live bool + Meta map[string]string + Percent uint64 + RedeemBy int64 + Redeemed uint64 + Redemptions uint64 + Valid bool + func (c *Coupon) UnmarshalJSON(data []byte) error + type CouponDuration string + type CouponList struct + Values []*Coupon + type CouponListParams struct + Created int64 + CreatedRange *RangeQueryParams + type CouponParams struct + Amount uint64 + Currency Currency + Duration CouponDuration + DurationPeriod uint64 + ID string + Percent uint64 + RedeemBy int64 + Redemptions uint64 + type Currency string + type Customer struct + Balance int64 + BusinessVatID string + Created int64 + Currency Currency + DefaultSource *PaymentSource + Deleted bool + Delinquent bool + Desc string + Discount *Discount + Email string + ID string + Live bool + Meta map[string]string + Shipping *CustomerShippingDetails + Sources *SourceList + Subs *SubList + func (c *Customer) UnmarshalJSON(data []byte) error + type CustomerList struct + Values []*Customer + type CustomerListParams struct + Created int64 + CreatedRange *RangeQueryParams + type CustomerParams struct + Balance int64 + BalanceZero bool + BusinessVatID string + Coupon string + CouponEmpty bool + DefaultSource string + Desc string + Email string + Plan string + Quantity uint64 + Shipping *CustomerShippingDetails + Source *SourceParams + TaxPercent float64 + TaxPercentZero bool + Token string + TrialEnd int64 + func (cp *CustomerParams) SetSource(sp interface{}) error + type CustomerShippingDetails struct + Address Address + Name string + Phone string + type CustomerSourceParams struct + Customer string + Source *SourceParams + func (cp *CustomerSourceParams) SetSource(sp interface{}) error + type DOB struct + Day int + Month int + Year int + type DeliveryEstimate struct + Date string + Earliest string + Latest string + Type EstimateType + type DestinationParams struct + Account string + Amount uint64 + type Discount struct + Coupon *Coupon + Customer string + Deleted bool + End int64 + Start int64 + Sub string + type DiscountParams struct + type Dispute struct + Amount uint64 + Charge string + Created int64 + Currency Currency + Evidence *DisputeEvidence + EvidenceDetails *EvidenceDetails + ID string + Live bool + Meta map[string]string + Reason DisputeReason + Refundable bool + Status DisputeStatus + Transactions []*Transaction + func (t *Dispute) UnmarshalJSON(data []byte) error + type DisputeEvidence struct + ActivityLog string + BillingAddress string + CancellationPolicy *File + CancellationPolicyDisclosure string + CancellationRebuttal string + CustomerComm *File + CustomerEmail string + CustomerIP string + CustomerName string + CustomerSig *File + DuplicateCharge string + DuplicateChargeDoc *File + DuplicateChargeReason string + ProductDesc string + Receipt *File + RefundPolicy *File + RefundPolicyDisclosure string + RefundRefusalReason string + ServiceDate string + ServiceDoc *File + ShippingAddress string + ShippingCarrier string + ShippingDate string + ShippingDoc *File + ShippingTracking string + UncategorizedFile *File + UncategorizedText string + type DisputeEvidenceParams struct + ActivityLog string + BillingAddress string + CancellationPolicy string + CancellationPolicyDisclsoure string + CancellationRebuttal string + CustomerComm string + CustomerEmail string + CustomerIP string + CustomerName string + CustomerSig string + DuplicateCharge string + DuplicateChargeDoc string + DuplicateChargeReason string + ProductDesc string + Receipt string + RefundPolicy string + RefundPolicyDisclosure string + RefundRefusalReason string + ServiceDate string + ServiceDoc string + ShippingAddress string + ShippingCarrier string + ShippingDate string + ShippingDoc string + ShippingTracking string + UncategorizedFile string + UncategorizedText string + type DisputeList struct + Values []*Dispute + type DisputeListParams struct + Created int64 + CreatedRange *RangeQueryParams + type DisputeParams struct + Evidence *DisputeEvidenceParams + NoSubmit bool + type DisputeReason string + type DisputeStatus string + type EphemeralKey struct + AssociatedObjects []struct{ ... } + Created int64 + Expires int64 + ID string + Live bool + RawJSON []byte + func (e *EphemeralKey) UnmarshalJSON(data []byte) error + type EphemeralKeyParams struct + Customer string + StripeVersion string + type Error struct + ChargeID string + Code ErrorCode + Err error + HTTPStatusCode int + Msg string + Param string + RequestID string + Type ErrorType + func (e *Error) Error() string + type ErrorCode string + type ErrorType string + type EstimateType string + const Exact + const Range + type Event struct + Account string + Created int64 + Data *EventData + ID string + Live bool + Request *EventRequest + Type string + Webhooks uint64 + func (e *Event) GetObjValue(keys ...string) string + func (e *Event) GetPrevValue(keys ...string) string + type EventData struct + Obj map[string]interface{} + Prev map[string]interface{} + Raw json.RawMessage + func (e *EventData) UnmarshalJSON(data []byte) error + type EventList struct + Values []*Event + type EventListParams struct + Created int64 + CreatedRange *RangeQueryParams + Type string + Types []string + type EventRequest struct + ID string + IdempotencyKey string + type EvidenceDetails struct + Count int + DueDate int64 + HasEvidence bool + PastDue bool + type ExchangeRate struct + ID string + Rates map[Currency]float64 + type ExchangeRateList struct + Values []*ExchangeRate + type ExchangeRateListParams struct + type ExternalAccount struct + BankAccount *BankAccount + Card *Card + ID string + Type ExternalAccountType + func (ea *ExternalAccount) UnmarshalJSON(b []byte) error + type ExternalAccountList struct + Values []*ExternalAccount + type ExternalAccountType string + const ExternalAccountTypeBankAccount + const ExternalAccountTypeCard + type ExtraValues struct + func (v ExtraValues) AppendTo(body *form.Values, keyParts []string) + type Fee struct + Account *Account + Amount uint64 + AmountRefunded uint64 + App string + Charge *Charge + Created int64 + Currency Currency + ID string + Live bool + OriginatingTransaction *Charge + Refunded bool + Refunds *FeeRefundList + Tx *Transaction + func (f *Fee) UnmarshalJSON(data []byte) error + type FeeList struct + Values []*Fee + type FeeListParams struct + Charge string + Created int64 + CreatedRange *RangeQueryParams + type FeeParams struct + Amount uint64 + type FeeRefund struct + Amount uint64 + Created int64 + Currency Currency + Fee string + ID string + Meta map[string]string + Tx *Transaction + func (f *FeeRefund) UnmarshalJSON(data []byte) error + type FeeRefundList struct + Values []*FeeRefund + type FeeRefundListParams struct + Fee string + type FeeRefundParams struct + Amount uint64 + Fee string + type File struct + Created int64 + ID string + Mime string + Purpose string + Size int + URL string + func (f *File) UnmarshalJSON(data []byte) error + type FileUpload struct + Created int64 + ID string + Purpose FileUploadPurpose + Size int64 + Type string + URL string + func (f *FileUpload) UnmarshalJSON(data []byte) error + type FileUploadList struct + Values []*FileUpload + type FileUploadListParams struct + Created int64 + CreatedRange *RangeQueryParams + Purpose FileUploadPurpose + type FileUploadParams struct + File *os.File + FileReader io.Reader + Filename string + Purpose FileUploadPurpose + func (f *FileUploadParams) AppendDetails(body io.ReadWriter) (string, error) + type FileUploadPurpose string + type Filters struct + func (f *Filters) AddFilter(key, op, value string) + func (f Filters) AppendTo(body *form.Values, keyParts []string) + type FraudDetails struct + StripeReport FraudReport + UserReport FraudReport + type FraudDetailsParams struct + UserReport FraudReport + type FraudReport string + type Gender string + type IdentityDocument struct + Created int64 + ID string + Size int64 + func (d *IdentityDocument) AppendTo(body *form.Values, keyParts []string) + func (d *IdentityDocument) UnmarshalJSON(data []byte) error + type IdentityVerification struct + Details *string + DetailsCode IdentityVerificationDetailsCode + Document *IdentityDocument + Status IdentityVerificationStatus + type IdentityVerificationDetailsCode string + type IdentityVerificationStatus string + type Interval string + type InvalidRequestError struct + func (e *InvalidRequestError) Error() string + type Inventory struct + Quantity int64 + Type string + Value string + type Invoice struct + Amount int64 + Attempted bool + Attempts uint64 + Billing InvoiceBilling + Charge *Charge + Closed bool + Currency Currency + Customer *Customer + Date int64 + Desc string + Discount *Discount + DueDate int64 + End int64 + EndBalance int64 + Fee uint64 + Forgive bool + ID string + Lines *InvoiceLineList + Live bool + Meta map[string]string + NextAttempt int64 + Number string + Paid bool + ReceiptNumber string + Start int64 + StartBalance int64 + Statement string + Sub string + Subtotal int64 + Tax int64 + TaxPercent float64 + Total int64 + Webhook int64 + func (i *Invoice) UnmarshalJSON(data []byte) error + type InvoiceBilling string + type InvoiceItem struct + Amount int64 + Currency Currency + Customer *Customer + Date int64 + Deleted bool + Desc string + Discountable bool + ID string + Invoice *Invoice + Live bool + Meta map[string]string + Period *Period + Plan *Plan + Proration bool + Quantity int64 + Sub string + func (i *InvoiceItem) UnmarshalJSON(data []byte) error + type InvoiceItemList struct + Values []*InvoiceItem + type InvoiceItemListParams struct + Created int64 + CreatedRange *RangeQueryParams + Customer string + type InvoiceItemParams struct + Amount int64 + AmountZero bool + Currency Currency + Customer string + Desc string + Discountable bool + Invoice string + NoDiscountable bool + Sub string + type InvoiceLine struct + Amount int64 + Currency Currency + Desc string + Discountable bool + ID string + Live bool + Meta map[string]string + Period *Period + Plan *Plan + Proration bool + Quantity int64 + Sub string + SubscriptionItem string + Type InvoiceLineType + type InvoiceLineList struct + Values []*InvoiceLine + type InvoiceLineListParams struct + Customer string + ID string + Sub string + type InvoiceLineType string + type InvoiceList struct + Values []*Invoice + type InvoiceListParams struct + Billing InvoiceBilling + Customer string + Date int64 + DateRange *RangeQueryParams + DueDate int64 + Sub string + type InvoiceParams struct + Billing InvoiceBilling + Closed bool + Customer string + DaysUntilDue uint64 + Desc string + DueDate int64 + Fee uint64 + FeeZero bool + Forgive bool + NoClosed bool + Paid bool + Statement string + Sub string + SubItems []*SubItemsParams + SubNoProrate bool + SubPlan string + SubProrationDate int64 + SubQuantity uint64 + SubQuantityZero bool + SubTrialEnd int64 + TaxPercent float64 + TaxPercentZero bool + type InvoicePayParams struct + Source string + type IssuerFraudRecord struct + Charge *Charge + Created int64 + ID string + IssuerFraudType IssuerFraudType + Live bool + PostDate int64 + type IssuerFraudRecordList struct + Values []*IssuerFraudRecord + type IssuerFraudRecordListParams struct + Charge string + type IssuerFraudType string + const IssuerFraudTypeCardNeverReceived + const IssuerFraudTypeFraudulentCardApplication + const IssuerFraudTypeMadeWithCounterfeitCard + const IssuerFraudTypeMadeWithLostCard + const IssuerFraudTypeMadeWithStolenCard + const IssuerFraudTypeMisc + const IssuerFraudTypeUnauthorizedUseOfCard + type Iter struct + func GetIter(params *ListParams, qs *form.Values, query Query) *Iter + func (it *Iter) Current() interface{} + func (it *Iter) Err() error + func (it *Iter) Meta() *ListMeta + func (it *Iter) Next() bool + type LegalEntity struct + AdditionalOwners []Owner + AdditionalOwnersEmpty bool + Address Address + AddressKana Address + AddressKanji Address + BusinessName string + BusinessNameKana string + BusinessNameKanji string + BusinessTaxID string + BusinessTaxIDProvided bool + BusinessVatID string + BusinessVatIDProvided bool + DOB DOB + First string + FirstKana string + FirstKanji string + Gender Gender + Last string + LastKana string + LastKanji string + MaidenName string + PersonalAddress Address + PersonalAddressKana Address + PersonalAddressKanji Address + PersonalID string + PersonalIDProvided bool + PhoneNumber string + SSN string + SSNProvided bool + Type LegalEntityType + Verification IdentityVerification + type LegalEntityType string + type ListMeta struct + Count uint32 + More bool + URL string + type ListParams struct + Context context.Context + End string + Exp []string + Filters Filters + Limit int + Single bool + Start string + StripeAccount string + func (p *ListParams) Expand(f string) + func (p *ListParams) ToParams() *Params + type LoginLink struct + Created int64 + Url string + type LoginLinkParams struct + Account string + type Order struct + Amount int64 + AmountReturned int64 + Application string + ApplicationFee int64 + Charge Charge + Created int64 + Currency Currency + Customer Customer + Email string + ID string + Items []OrderItem + Live bool + Meta map[string]string + Returns *OrderReturnList + SelectedShippingMethod *string + Shipping Shipping + ShippingMethods []ShippingMethod + Status OrderStatus + StatusTransitions StatusTransitions + Updated int64 + func (o *Order) UnmarshalJSON(data []byte) error + type OrderItem struct + Amount int64 + Currency Currency + Description string + Parent string + Quantity int64 + Type orderitem.ItemType + type OrderItemParams struct + Amount int64 + Currency Currency + Description string + Parent string + Quantity *int64 + Type orderitem.ItemType + type OrderList struct + Values []*Order + type OrderListParams struct + Created int64 + CreatedRange *RangeQueryParams + Customer string + IDs []string + Status OrderStatus + type OrderParams struct + Coupon string + Currency Currency + Customer string + Email string + Items []*OrderItemParams + Shipping *ShippingParams + type OrderPayParams struct + ApplicationFee int64 + Customer string + Email string + Source *SourceParams + func (op *OrderPayParams) SetSource(sp interface{}) error + type OrderReturn struct + Amount int64 + Created int64 + Currency Currency + ID string + Items []OrderItem + Live bool + Order Order + Refund *Refund + func (ret *OrderReturn) UnmarshalJSON(data []byte) error + type OrderReturnList struct + Values []*OrderReturn + type OrderReturnListParams struct + Created int64 + CreatedRange *RangeQueryParams + Order string + type OrderReturnParams struct + Items []*OrderItemParams + type OrderStatus string + const StatusCanceled + const StatusCreated + const StatusFulfilled + const StatusPaid + const StatusReturned + type OrderUpdateParams struct + Coupon string + SelectedShippingMethod string + Shipping *OrderUpdateShippingParams + Status OrderStatus + type OrderUpdateShippingParams struct + Carrier string + TrackingNumber string + type Owner struct + Address Address + DOB DOB + First string + Last string + MaidenName string + PersonalIDNumber string + PersonalIDNumberProvided bool + Verification IdentityVerification + type PIIParams struct + PersonalIDNumber string + type PackageDimensions struct + Height float64 + Length float64 + Weight float64 + Width float64 + type Params struct + Account string + Context context.Context + Exp []string + Extra *ExtraValues + Headers http.Header + IdempotencyKey string + Meta map[string]string + StripeAccount string + func (p *Params) AddExtra(key, value string) + func (p *Params) AddMeta(key, value string) + func (p *Params) Expand(f string) + func (p *Params) SetAccount(val string) + func (p *Params) SetStripeAccount(val string) + type PaymentSource struct + BankAccount *BankAccount + BitcoinReceiver *BitcoinReceiver + Card *Card + Deleted bool + ID string + SourceObject *Source + Type PaymentSourceType + func (s *PaymentSource) MarshalJSON() ([]byte, error) + func (s *PaymentSource) UnmarshalJSON(data []byte) error + type PaymentSourceType string + const PaymentSourceAccount + const PaymentSourceBankAccount + const PaymentSourceBitcoinReceiver + const PaymentSourceCard + const PaymentSourceObject + type Payout struct + Amount int64 + ArrivalDate int64 + Automatic bool + BalanceTransaction *Transaction + Bank *BankAccount + Card *Card + Created int64 + Currency Currency + Destination PayoutDestination + FailCode PayoutFailureCode + FailMessage string + FailureBalanceTransaction *Transaction + ID string + Live bool + Meta map[string]string + Method PayoutMethodType + SourceType PayoutSourceType + StatementDescriptor string + Status PayoutStatus + Type PayoutType + func (t *Payout) UnmarshalJSON(data []byte) error + type PayoutDestination struct + BankAccount *BankAccount + Card *Card + ID string + Type PayoutDestinationType + func (d *PayoutDestination) MarshalJSON() ([]byte, error) + func (d *PayoutDestination) UnmarshalJSON(data []byte) error + type PayoutDestinationType string + const PayoutDestinationBankAccount + const PayoutDestinationCard + type PayoutFailureCode string + type PayoutList struct + Values []*Payout + type PayoutListParams struct + ArrivalDate int64 + ArrivalDateRange *RangeQueryParams + Created int64 + CreatedRange *RangeQueryParams + Destination string + Status PayoutStatus + type PayoutMethodType string + const PayoutMethodInstant + const PayoutMethodStandard + type PayoutParams struct + Amount int64 + Currency Currency + Destination string + Method PayoutMethodType + SourceType PayoutSourceType + StatementDescriptor string + type PayoutSchedule struct + Delay uint64 + Interval Interval + MonthAnchor uint64 + WeekAnchor string + type PayoutScheduleParams struct + Delay uint64 + Interval Interval + MinimumDelay bool + MonthAnchor uint64 + WeekAnchor string + func (p *PayoutScheduleParams) AppendTo(body *form.Values, keyParts []string) + type PayoutSourceType string + type PayoutStatus string + type PayoutType string + type Period struct + End int64 + Start int64 + type PermissionError struct + func (e *PermissionError) Error() string + type Plan struct + Amount uint64 + BillingScheme string + Created int64 + Currency Currency + Deleted bool + ID string + Interval PlanInterval + IntervalCount uint64 + Live bool + Meta map[string]string + Nickname string + Product string + Tiers []*PlanTier + TiersMode string + TransformUsage *PlanTransformUsage + TrialPeriod uint64 + UsageType string + type PlanInterval string + type PlanList struct + Values []*Plan + type PlanListParams struct + Created int64 + CreatedRange *RangeQueryParams + type PlanParams struct + Amount uint64 + AmountZero bool + BillingScheme string + Currency Currency + ID string + Interval PlanInterval + IntervalCount uint64 + Nickname string + Product *PlanProductParams + ProductID *string + Tiers []*PlanTierParams + TiersMode string + TransformUsage *PlanTransformUsageParams + TrialPeriod uint64 + UsageType string + type PlanProductParams struct + ID string + Meta map[string]string + Name string + StatementDescriptor string + type PlanTier struct + Amount uint64 + UpTo uint64 + type PlanTierParams struct + Amount uint64 + UpTo uint64 + UpToInf bool + func (p *PlanTierParams) AppendTo(body *form.Values, keyParts []string) + type PlanTransformUsage struct + DivideBy int64 + Round string + type PlanTransformUsageParams struct + DivideBy int64 + Round string + type Printfer interface + Printf func(format string, v ...interface{}) + var Logger Printfer + type Product struct + Active bool + Attrs []string + Caption string + Created int64 + DeactivateOn []string + Desc string + ID string + Images []string + Live bool + Meta map[string]string + Name string + PackageDimensions *PackageDimensions + Shippable bool + Skus *SKUList + StatementDescriptor string + Type ProductType + URL string + Updated int64 + func (p *Product) UnmarshalJSON(data []byte) error + type ProductList struct + Values []*Product + type ProductListParams struct + Active *bool + IDs []string + Shippable *bool + URL string + type ProductParams struct + Active *bool + Attrs []string + Caption string + DeactivateOn []string + Desc string + ID string + Images []string + Name string + PackageDimensions *PackageDimensions + Shippable *bool + StatementDescriptor string + Type ProductType + URL string + type ProductType string + const ProductTypeGood + const ProductTypeService + type Query func(*form.Values) ([]interface{}, ListMeta, error) + type RangeQueryParams struct + GreaterThan int64 + GreaterThanOrEqual int64 + LesserThan int64 + LesserThanOrEqual int64 + type RateLimitError struct + func (e *RateLimitError) Error() string + type ReasonType string + const ReasonApproved + const ReasonDisputed + const ReasonManual + const ReasonRefunded + const ReasonRefundedAsFraud + const ReasonRule + type ReceiverFlow struct + Address string + AmountCharged int64 + AmountReceived int64 + AmountReturned int64 + RefundAttributesMethod RefundAttributesMethod + RefundAttributesStatus RefundAttributesStatus + type Recipient struct + Bank *BankAccount + Cards *CardList + Created int64 + DefaultCard *Card + Deleted bool + Desc string + Email string + ID string + Live bool + Meta map[string]string + MigratedTo *Account + Name string + Type RecipientType + func (r *Recipient) UnmarshalJSON(data []byte) error + type RecipientList struct + Values []*Recipient + type RecipientListParams struct + Verified bool + type RecipientParams struct + Bank *BankAccountParams + Card *CardParams + DefaultCard string + Desc string + Email string + Name string + TaxID string + Token string + Type RecipientType + func (p *RecipientParams) AppendTo(body *form.Values, keyParts []string) + type RecipientTransfer struct + Amount int64 + AmountReversed int64 + BalanceTransaction *Transaction + Bank *BankAccount + Card *Card + Created int64 + Currency Currency + Date int64 + Desc string + Dest RecipientTransferDestination + FailCode RecipientTransferFailCode + FailMsg string + ID string + Live bool + Meta map[string]string + Method RecipientTransferMethodType + Recipient *Recipient + Reversals *ReversalList + Reversed bool + SourceTx *TransactionSource + SourceType RecipientTransferSourceType + Statement string + Status RecipientTransferStatus + Type RecipientTransferType + func (t *RecipientTransfer) UnmarshalJSON(data []byte) error + type RecipientTransferDestination struct + BankAccount *BankAccount + Card *Card + ID string + Type RecipientTransferDestinationType + func (d *RecipientTransferDestination) MarshalJSON() ([]byte, error) + func (d *RecipientTransferDestination) UnmarshalJSON(data []byte) error + type RecipientTransferDestinationType string + const RecipientTransferDestinationBankAccount + const RecipientTransferDestinationCard + type RecipientTransferFailCode string + type RecipientTransferMethodType string + const RecipientTransferMethodInstant + const RecipientTransferMethodStandard + type RecipientTransferSourceType string + type RecipientTransferStatus string + type RecipientTransferType string + type RecipientType string + type RedirectFlow struct + FailureReason RedirectFlowFailureReason + ReturnURL string + Status RedirectFlowStatus + URL string + type RedirectFlowFailureReason string + const RedirectFlowFailureReasonDeclined + const RedirectFlowFailureReasonProcessingError + const RedirectFlowFailureReasonUserAbort + type RedirectFlowStatus string + const RedirectFlowStatusFailed + const RedirectFlowStatusNotRequired + const RedirectFlowStatusPending + const RedirectFlowStatusSucceeded + type RedirectParams struct + ReturnURL string + type Refund struct + Amount uint64 + Charge *Charge + Created int64 + Currency Currency + ID string + Meta map[string]string + Reason RefundReason + ReceiptNumber string + Status RefundStatus + Tx *Transaction + func (r *Refund) UnmarshalJSON(data []byte) error + type RefundAttributesMethod string + const RefundAttributesEmail + const RefundAttributesManual + type RefundAttributesStatus string + const RefundAttributesAvailable + const RefundAttributesMissing + const RefundAttributesRequested + type RefundList struct + Values []*Refund + type RefundListParams struct + type RefundParams struct + Amount uint64 + Charge string + Fee bool + Reason RefundReason + Transfer bool + type RefundReason string + type RefundStatus string + type Reversal struct + Amount uint64 + Created int64 + Currency Currency + ID string + Meta map[string]string + Transfer string + Tx *Transaction + func (r *Reversal) UnmarshalJSON(data []byte) error + type ReversalList struct + Values []*Reversal + type ReversalListParams struct + Transfer string + type ReversalParams struct + Amount uint64 + Fee bool + Transfer string + type Review struct + Charge *Charge + Created int64 + ID string + Live bool + Open bool + Reason ReasonType + func (r *Review) UnmarshalJSON(data []byte) error + type SKU struct + Active bool + Attrs map[string]string + Created int64 + Currency string + Desc string + ID string + Image string + Inventory Inventory + Live bool + Meta map[string]string + PackageDimensions *PackageDimensions + Price int64 + Product Product + Updated int64 + func (s *SKU) UnmarshalJSON(data []byte) error + type SKUList struct + Values []*SKU + type SKUListParams struct + Active *bool + Attributes map[string]string + IDs []string + InStock *bool + Product string + type SKUParams struct + Active *bool + Attrs map[string]string + Currency string + Desc string + ID string + Image string + Inventory Inventory + PackageDimensions *PackageDimensions + Price int64 + Product string + type Shipping struct + Address Address + Carrier string + Name string + Phone string + TrackingNumber string + type ShippingDetails struct + Address Address + Carrier string + Name string + Phone string + Tracking string + type ShippingMethod struct + Amount int64 + Currency Currency + DeliveryEstimate *DeliveryEstimate + Description string + ID string + type ShippingParams struct + Address *AddressParams + Name string + Phone string + type Source struct + Amount int64 + ClientSecret string + CodeVerification *CodeVerificationFlow + Created int64 + Currency Currency + Flow SourceFlow + ID string + Live bool + Mandate SourceMandate + Meta map[string]string + Owner SourceOwner + Receiver *ReceiverFlow + Redirect *RedirectFlow + StatementDescriptor string + Status SourceStatus + Type string + TypeData map[string]interface{} + Usage SourceUsage + func (s *Source) UnmarshalJSON(data []byte) error + type SourceFlow string + const FlowCodeVerification + const FlowNone + const FlowReceiver + const FlowRedirect + type SourceList struct + Values []*PaymentSource + type SourceListParams struct + Customer string + type SourceMandate struct + Acceptance SourceMandateAcceptance + NotificationMethod string + Reference string + URL string + type SourceMandateAcceptance struct + Date string + IP string + Status string + UserAgent string + type SourceObjectDetachParams struct + Customer string + type SourceObjectParams struct + Amount uint64 + Currency Currency + Customer string + Flow SourceFlow + OriginalSource string + Owner *SourceOwnerParams + Redirect *RedirectParams + StatementDescriptor string + Token string + Type string + TypeData map[string]string + Usage SourceUsage + func (p *SourceObjectParams) AppendTo(body *form.Values, keyParts []string) + type SourceOwner struct + Address *Address + Email string + Name string + Phone string + VerifiedAddress *Address + VerifiedEmail string + VerifiedName string + VerifiedPhone string + type SourceOwnerParams struct + Address *AddressParams + Email string + Name string + Phone string + type SourceParams struct + Card *CardParams + Token string + func SourceParamsFor(obj interface{}) (*SourceParams, error) + func (p *SourceParams) AppendTo(body *form.Values, keyParts []string) + type SourceStatus string + const SourceStatusCanceled + const SourceStatusChargeable + const SourceStatusConsumed + const SourceStatusFailed + const SourceStatusPending + type SourceTransaction struct + Amount int64 + Created int64 + Currency Currency + CustomerData string + ID string + Live bool + Source string + Type string + TypeData map[string]interface{} + func (t *SourceTransaction) UnmarshalJSON(data []byte) error + type SourceTransactionList struct + Values []*SourceTransaction + type SourceTransactionListParams struct + Source string + type SourceUsage string + const UsageReusable + const UsageSingleUse + type SourceVerifyParams struct + Amounts [2]int64 + Customer string + Values []string + type StatusTransitions struct + Canceled int64 + Fulfilled int64 + Paid int64 + Returned int64 + type Sub struct + Billing SubBilling + BillingCycleAnchor int64 + Canceled int64 + Created int64 + Customer *Customer + DaysUntilDue uint64 + Discount *Discount + EndCancel bool + Ended int64 + FeePercent float64 + ID string + Items *SubItemList + Meta map[string]string + PeriodEnd int64 + PeriodStart int64 + Plan *Plan + Quantity uint64 + Start int64 + Status SubStatus + TaxPercent float64 + TrialEnd int64 + TrialStart int64 + func (s *Sub) UnmarshalJSON(data []byte) error + type SubBilling string + type SubItem struct + Created int64 + Deleted bool + ID string + Meta map[string]string + Plan *Plan + Quantity uint64 + type SubItemList struct + Values []*SubItem + type SubItemListParams struct + Sub string + type SubItemParams struct + ID string + NoProrate bool + Plan string + ProrationDate int64 + Quantity uint64 + QuantityZero bool + Sub string + type SubItemsParams struct + ClearUsage bool + Deleted bool + ID string + Plan string + Quantity uint64 + QuantityZero bool + type SubList struct + Values []*Sub + type SubListParams struct + Billing SubBilling + Created int64 + CreatedRange *RangeQueryParams + Customer string + Plan string + Status SubStatus + type SubParams struct + Billing SubBilling + BillingCycleAnchor int64 + BillingCycleAnchorNow bool + BillingCycleAnchorUnchanged bool + Card *CardParams + Coupon string + CouponEmpty bool + Customer string + DaysUntilDue uint64 + EndCancel bool + FeePercent float64 + FeePercentZero bool + Items []*SubItemsParams + NoProrate bool + OnBehalfOf string + Plan string + ProrationDate int64 + Quantity uint64 + QuantityZero bool + TaxPercent float64 + TaxPercentZero bool + Token string + TrialEnd int64 + TrialEndNow bool + TrialFromPlan bool + TrialPeriod int64 + func (p *SubParams) AppendTo(body *form.Values, keyParts []string) + type SubStatus string + type SupportedBackend string + type TOSAcceptanceParams struct + Date int64 + IP string + UserAgent string + type ThreeDSecure struct + Amount uint64 + Authenticated bool + Card *Card + Created int64 + Currency Currency + ID string + Live bool + RedirectURL string + Status ThreeDSecureStatus + Supported string + type ThreeDSecureParams struct + Amount uint64 + Card string + Currency Currency + Customer string + ReturnURL string + type ThreeDSecureStatus string + type Token struct + Bank *BankAccount + Card *Card + ClientIP string + Created int64 + Email string + ID string + Live bool + Type TokenType + Used bool + type TokenParams struct + Bank *BankAccountParams + Card *CardParams + Customer string + Email string + PII *PIIParams + type TokenType string + type TokenizationMethod string + type Topup struct + Amount uint64 + ArrivalDate int64 + Created int64 + Currency Currency + Desc string + ExpectedAvailabilityDate int64 + FailCode string + FailMsg string + ID string + Live bool + Source *PaymentSource + Statement string + Status string + Tx *Transaction + type TopupList struct + Values []*Topup + type TopupListParams struct + Created int64 + CreatedRange *RangeQueryParams + type TopupParams struct + Amount uint64 + Currency Currency + Desc string + Source *SourceParams + Statement string + func (p *TopupParams) SetSource(sp interface{}) error + type Transaction struct + Amount int64 + Available int64 + Created int64 + Currency Currency + Desc string + Fee int64 + FeeDetails []TxFee + ID string + Net int64 + Recipient string + Src TransactionSource + Status TransactionStatus + Type TransactionType + func (t *Transaction) UnmarshalJSON(data []byte) error + type TransactionList struct + Values []*Transaction + type TransactionSource struct + Charge *Charge + Dispute *Dispute + Fee *Fee + ID string + Payout *Payout + RecipientTransfer *RecipientTransfer + Refund *Refund + Reversal *Reversal + Transfer *Transfer + Type TransactionSourceType + func (s *TransactionSource) MarshalJSON() ([]byte, error) + func (s *TransactionSource) UnmarshalJSON(data []byte) error + type TransactionSourceType string + const TransactionSourceCharge + const TransactionSourceDispute + const TransactionSourceFee + const TransactionSourcePayout + const TransactionSourceRecipientTransfer + const TransactionSourceRefund + const TransactionSourceReversal + const TransactionSourceTransfer + type TransactionStatus string + type TransactionType string + type Transfer struct + Amount int64 + AmountReversed int64 + Created int64 + Currency Currency + Dest TransferDestination + DestPayment *Charge + ID string + Live bool + Meta map[string]string + Reversals *ReversalList + Reversed bool + SourceTx *TransactionSource + Statement string + TransferGroup string + Tx *Transaction + func (t *Transfer) UnmarshalJSON(data []byte) error + type TransferDestination struct + Account *Account + ID string + func (d *TransferDestination) MarshalJSON() ([]byte, error) + func (d *TransferDestination) UnmarshalJSON(data []byte) error + type TransferList struct + Values []*Transfer + type TransferListParams struct + Created int64 + CreatedRange *RangeQueryParams + Currency Currency + Dest string + TransferGroup string + type TransferParams struct + Amount int64 + Currency Currency + Dest string + SourceTx string + SourceType TransferSourceType + TransferGroup string + type TransferSourceType string + type TxFee struct + Amount int64 + Application string + Currency Currency + Desc string + Type string + type TxListParams struct + Available int64 + AvailableRange *RangeQueryParams + Created int64 + CreatedRange *RangeQueryParams + Currency string + Payout string + Src string + Type TransactionType + type TxParams struct + type UsageRecord struct + ID string + Live bool + Quantity uint64 + SubscriptionItem string + Timestamp uint64 + type UsageRecordParams struct + Action string + Quantity uint64 + QuantityZero bool + SubscriptionItem string + Timestamp uint64 + type Verification string + type VerificationFieldsList struct + AdditionalFields []string + MinimumFields []string Other modules containing this package github.com/stripe/stripe-go github.com/stripe/stripe-go/v55 github.com/stripe/stripe-go/v71 github.com/stripe/stripe-go/v72 github.com/stripe/stripe-go/v73 github.com/stripe/stripe-go/v74 github.com/stripe/stripe-go/v75 github.com/stripe/stripe-go/v76 github.com/stripe/stripe-go/v78 github.com/stripe/stripe-go/v79 github.com/stripe/stripe-go/v80 github.com/stripe/stripe-go/v81