Versions in this module Expand all Collapse all v3 v3.0.0 Dec 20, 2024 Changes in this version + const ProductionBaseURL + const SandboxBaseURL + var ErrAddressLocationNotAllowed = &paddleerr.Error + var ErrAdjustmentAmountAboveRemainingAllowed = &paddleerr.Error + var ErrAdjustmentAmountCannotBeZero = &paddleerr.Error + var ErrAdjustmentCannotAdjustImportedTransaction = &paddleerr.Error + var ErrAdjustmentInvalidCombinationOfTypes = &paddleerr.Error + var ErrAdjustmentInvalidCreditAction = &paddleerr.Error + var ErrAdjustmentNoTaxAvailableToAdjust = &paddleerr.Error + var ErrAdjustmentPendingRefundRequest = &paddleerr.Error + var ErrAdjustmentTotalAmountAboveRemainingAllowed = &paddleerr.Error + var ErrAdjustmentTransactionCustomerMismatch = &paddleerr.Error + var ErrAdjustmentTransactionInvalidStatusForCredit = &paddleerr.Error + var ErrAdjustmentTransactionInvalidStatusForRefund = &paddleerr.Error + var ErrAdjustmentTransactionItemHasAlreadyBeenFullyAdjusted = &paddleerr.Error + var ErrAdjustmentTransactionItemInvalid = &paddleerr.Error + var ErrAdjustmentTransactionItemOverAdjustment = &paddleerr.Error + var ErrAdjustmentTransactionMissingCustomerID = &paddleerr.Error + var ErrAdjustmentTransactionSubscriptionMismatch = &paddleerr.Error + var ErrAuthenticationMalformed = &paddleerr.Error + var ErrAuthenticationMissing = &paddleerr.Error + var ErrBadGateway = &paddleerr.Error + var ErrBadRequest = &paddleerr.Error + var ErrBusinessContactEmailDomainNotAllowed = &paddleerr.Error + var ErrConcurrentModification = &paddleerr.Error + var ErrConcurrentReportGenerationNotAllowed = &paddleerr.Error + var ErrConflict = &paddleerr.Error + var ErrCurrencyCodeInvalid = &paddleerr.Error + var ErrCurrencyCodesInvalid = &paddleerr.Error + var ErrCurrencyPrimaryBalanceInvalid = &paddleerr.Error + var ErrCustomerAlreadyExists = &paddleerr.Error + var ErrCustomerEmailDomainNotAllowed = &paddleerr.Error + var ErrCustomerEmailInvalid = &paddleerr.Error + var ErrDiscountCodeConflict = &paddleerr.Error + var ErrDiscountExpired = &paddleerr.Error + var ErrDiscountRestrictedProductNotActive = &paddleerr.Error + var ErrDiscountRestrictedProductPriceNotActive = &paddleerr.Error + var ErrDiscountUsageLimitExceeded = &paddleerr.Error + var ErrDiscountUsageLimitLessThanTimesUsed = &paddleerr.Error + var ErrEmailNotificationSettingIncorrect = &paddleerr.Error + var ErrEntityArchived = &paddleerr.Error + var ErrForbidden = &paddleerr.Error + var ErrInternalError = &paddleerr.Error + var ErrInvalidClientToken = &paddleerr.Error + var ErrInvalidField = &paddleerr.Error + var ErrInvalidJson = &paddleerr.Error + var ErrInvalidSignatureFormat = errors.New("invalid signature format") + var ErrInvalidTimeQueryParameter = &paddleerr.Error + var ErrInvalidToken = &paddleerr.Error + var ErrInvalidURL = &paddleerr.Error + var ErrMethodNotAllowed = &paddleerr.Error + var ErrMissingSignature = errors.New("missing signature") + var ErrNotFound = &paddleerr.Error + var ErrNotImplemented = &paddleerr.Error + var ErrNotificationCannotReplay = &paddleerr.Error + var ErrNotificationMaximumActiveSettingsReached = &paddleerr.Error + var ErrNotificationReplayInvalidOriginType = &paddleerr.Error + var ErrPaddleBillingNotEnabled = &paddleerr.Error + var ErrPriceBillingCycleFrequencyBelow1 = &paddleerr.Error + var ErrPriceDuplicateCurrencyOverrideForCountry = &paddleerr.Error + var ErrPriceTrialPeriodFrequencyBelow1 = &paddleerr.Error + var ErrPriceTrialPeriodMissingFields = &paddleerr.Error + var ErrPriceTrialPeriodRequiresBillingCycle = &paddleerr.Error + var ErrProductTaxCategoryNotApproved = &paddleerr.Error + var ErrReceiptDataNotEnabled = &paddleerr.Error + var ErrReportCreationLimitExceeded = &paddleerr.Error + var ErrReportEmpty = &paddleerr.Error + var ErrReportExpired = &paddleerr.Error + var ErrReportFailed = &paddleerr.Error + var ErrReportNotReady = &paddleerr.Error + var ErrRequestBodyTooLarge = &paddleerr.Error + var ErrRequestHeadersTooLarge = &paddleerr.Error + var ErrServiceUnavailable = &paddleerr.Error + var ErrStopIteration = errors.New("stop iteration") + var ErrSubscriptionAddressNotSuitableForCollectionMode = &paddleerr.Error + var ErrSubscriptionAllItemsRemoved = &paddleerr.Error + var ErrSubscriptionArchivedDiscountApplicationAttempt = &paddleerr.Error + var ErrSubscriptionBillingDetailsRequired = &paddleerr.Error + var ErrSubscriptionCannotActivate = &paddleerr.Error + var ErrSubscriptionCannotBePaused = &paddleerr.Error + var ErrSubscriptionChargeDuplicatePriceIDs = &paddleerr.Error + var ErrSubscriptionContinuingExistingBillingPeriodNotAllowed = &paddleerr.Error + var ErrSubscriptionCreditCreationAgainstProcessingTransaction = &paddleerr.Error + var ErrSubscriptionCreditCreationAgainstUncompletedTransactionNotAllowed = &paddleerr.Error + var ErrSubscriptionCurrencyCodeIncompatibleWithPaymentMethodProvider = &paddleerr.Error + var ErrSubscriptionCurrencyCodeNotValidForManual = &paddleerr.Error + var ErrSubscriptionCurrencyUpdateAndActionsCreatingCreditsNotAllowed = &paddleerr.Error + var ErrSubscriptionCurrencyUpdateNotAllowed = &paddleerr.Error + var ErrSubscriptionCustomerEmailDomainNotAllowed = &paddleerr.Error + var ErrSubscriptionCustomerNotSuitableForCollectionMode = &paddleerr.Error + var ErrSubscriptionDiscountNotValidForItems = &paddleerr.Error + var ErrSubscriptionDuplicatePriceIDs = &paddleerr.Error + var ErrSubscriptionImmediateCharge24HourLimitExceeded = &paddleerr.Error + var ErrSubscriptionImmediateChargeHourLimitExceeded = &paddleerr.Error + var ErrSubscriptionIncorrectProrationOnPausedSubscription = &paddleerr.Error + var ErrSubscriptionInvalidDiscountCurrency = &paddleerr.Error + var ErrSubscriptionIsCanceledActionInvalid = &paddleerr.Error + var ErrSubscriptionIsInactiveActionInvalid = &paddleerr.Error + var ErrSubscriptionItemsUpdateMissingProrationBillingMode = &paddleerr.Error + var ErrSubscriptionLockedPendingChanges = &paddleerr.Error + var ErrSubscriptionLockedProcessing = &paddleerr.Error + var ErrSubscriptionLockedRenewal = &paddleerr.Error + var ErrSubscriptionManualCollectionModeActivationNotAllowed = &paddleerr.Error + var ErrSubscriptionManualRetryPaymentNotAllowed = &paddleerr.Error + var ErrSubscriptionMaximumNumberOfLineItemsReached = &paddleerr.Error + var ErrSubscriptionMustBePaused = &paddleerr.Error + var ErrSubscriptionNewItemsNotValid = &paddleerr.Error + var ErrSubscriptionNextBilledAtTooSoon = &paddleerr.Error + var ErrSubscriptionNoRecurringItemsRemain = &paddleerr.Error + var ErrSubscriptionNotActive = &paddleerr.Error + var ErrSubscriptionNotAutomaticCollection = &paddleerr.Error + var ErrSubscriptionOneOffDiscountNotValid = &paddleerr.Error + var ErrSubscriptionOnlyUpdateItemsOnPausedSubscription = &paddleerr.Error + var ErrSubscriptionOutstandingPendingRefund = &paddleerr.Error + var ErrSubscriptionOutstandingTransaction = &paddleerr.Error + var ErrSubscriptionPaymentDeclined = &paddleerr.Error + var ErrSubscriptionPaymentRetryAttemptsExceeded = &paddleerr.Error + var ErrSubscriptionProductTaxCategoryNotApproved = &paddleerr.Error + var ErrSubscriptionQuantityMissingForNewItems = &paddleerr.Error + var ErrSubscriptionQuantityNotValid = &paddleerr.Error + var ErrSubscriptionScheduledChangeInvalidUpdate = &paddleerr.Error + var ErrSubscriptionTrialingDiscountUpdateInvalidOptions = &paddleerr.Error + var ErrSubscriptionTrialingItemsUpdateInvalidOptions = &paddleerr.Error + var ErrSubscriptionUpdateCausingCustomerMismatchNotAllowed = &paddleerr.Error + var ErrSubscriptionUpdateDifferentCurrencyCredits = &paddleerr.Error + var ErrSubscriptionUpdateTransactionBalanceLessThanChargeLimit = &paddleerr.Error + var ErrSubscriptionUpdateWhenCanceled = &paddleerr.Error + var ErrSubscriptionUpdateWhenPastDue = &paddleerr.Error + var ErrSubscriptionUpdateWhenTrialing = &paddleerr.Error + var ErrTemporarilyUnavailable = &paddleerr.Error + var ErrTooManyRequests = &paddleerr.Error + var ErrTransactionAddressNotSuitableForCollectionMode = &paddleerr.Error + var ErrTransactionAddressRegionOrCityAlreadySet = &paddleerr.Error + var ErrTransactionAdjustedUnableToRevise = &paddleerr.Error + var ErrTransactionBalanceLessThanChargeLimit = &paddleerr.Error + var ErrTransactionBillingDetailsMustBeNull = &paddleerr.Error + var ErrTransactionBillingDetailsObjectRequired = &paddleerr.Error + var ErrTransactionBillingPeriodStartsAtGreaterThanNow = &paddleerr.Error + var ErrTransactionBothPriceIDAndObjectFound = &paddleerr.Error + var ErrTransactionCannotBeModifiedAndCanceled = &paddleerr.Error + var ErrTransactionCannotBeRevisedWithInvalidTaxIdentifier = &paddleerr.Error + var ErrTransactionCannotBeRevisedWithTaxHigherThanGrandTotal = &paddleerr.Error + var ErrTransactionCannotProvideBothDiscountCodeAndID = &paddleerr.Error + var ErrTransactionCheckoutNotEnabled = &paddleerr.Error + var ErrTransactionCheckoutURLDomainIsNotApproved = &paddleerr.Error + var ErrTransactionCurrencyCodeNotValidForManual = &paddleerr.Error + var ErrTransactionCustomerIsRequiredForBusinessValidation = &paddleerr.Error + var ErrTransactionCustomerIsRequiredWithAddress = &paddleerr.Error + var ErrTransactionCustomerNotSuitableForCollectionMode = &paddleerr.Error + var ErrTransactionDefaultCheckoutURLNotSet = &paddleerr.Error + var ErrTransactionDiscountNotEligible = &paddleerr.Error + var ErrTransactionDiscountNotFound = &paddleerr.Error + var ErrTransactionDuplicatePriceIDs = &paddleerr.Error + var ErrTransactionImmutable = &paddleerr.Error + var ErrTransactionImmutableWhileProcessingPayment = &paddleerr.Error + var ErrTransactionInvalidDiscountCurrency = &paddleerr.Error + var ErrTransactionInvalidStatusChange = &paddleerr.Error + var ErrTransactionInvalidStatusToRevise = &paddleerr.Error + var ErrTransactionItemQuantityOutOfRange = &paddleerr.Error + var ErrTransactionMaximumNumberOfLineItemsReached = &paddleerr.Error + var ErrTransactionNotReadyCannotProcessPayment = &paddleerr.Error + var ErrTransactionNothingToRevise = &paddleerr.Error + var ErrTransactionPaymentMethodChangeFieldImmutable = &paddleerr.Error + var ErrTransactionPaymentTermsObjectRequired = &paddleerr.Error + var ErrTransactionPayoutAccountRequired = &paddleerr.Error + var ErrTransactionPreviewAdjustmentSubscriptionConflict = &paddleerr.Error + var ErrTransactionPriceDifferentBillingCycle = &paddleerr.Error + var ErrTransactionPriceDifferentTrialPeriod = &paddleerr.Error + var ErrTransactionPriceNotFound = &paddleerr.Error + var ErrTransactionProductNotFound = &paddleerr.Error + var ErrTransactionRecurringBalanceLessThanChargeLimit = &paddleerr.Error + var ErrTransactionReviseMissingBusinessName = &paddleerr.Error + var ErrTransactionRevisedLimitReached = &paddleerr.Error + var ErrTransactionStatusMustBeReady = &paddleerr.Error + var ErrURLNotificationSettingIncorrect = &paddleerr.Error + var ErrUnexpectedRequestBody = &paddleerr.Error + var ErrUnsupportedMediaType = &paddleerr.Error + func ContextWithTransitID(ctx context.Context, transitID string) context.Context + func PtrTo[V any](v V) *V + type ActivateSubscriptionRequest struct + SubscriptionID string + type Address struct + City *string + CountryCode CountryCode + CreatedAt string + CustomData CustomData + CustomerID string + Description *string + FirstLine *string + ID string + ImportMeta *ImportMeta + PostalCode *string + Region *string + SecondLine *string + Status Status + UpdatedAt string + type AddressCreatedEvent struct + Data paddlenotification.AddressNotification + type AddressImportedEvent struct + Data paddlenotification.AddressNotification + type AddressPreview struct + CountryCode CountryCode + PostalCode *string + type AddressUpdatedEvent struct + Data paddlenotification.AddressNotification + type AddressesClient struct + func (c *AddressesClient) CreateAddress(ctx context.Context, req *CreateAddressRequest) (res *Address, err error) + func (c *AddressesClient) GetAddress(ctx context.Context, req *GetAddressRequest) (res *Address, err error) + func (c *AddressesClient) ListAddresses(ctx context.Context, req *ListAddressesRequest) (res *Collection[*Address], err error) + func (c *AddressesClient) UpdateAddress(ctx context.Context, req *UpdateAddressRequest) (res *Address, err error) + type Adjustment struct + Action AdjustmentAction + CreatedAt string + CreditAppliedToBalance *bool + CurrencyCode CurrencyCode + CustomerID string + ID string + Items []AdjustmentItem + PayoutTotals *PayoutTotalsAdjustment + Reason string + Status AdjustmentStatus + SubscriptionID *string + TaxRatesUsed []AdjustmentTaxRateUsed + Totals AdjustmentTotals + TransactionID string + Type AdjustmentType + UpdatedAt string + type AdjustmentAction string + const AdjustmentActionChargeback + const AdjustmentActionChargebackReverse + const AdjustmentActionChargebackWarning + const AdjustmentActionCredit + const AdjustmentActionCreditReverse + const AdjustmentActionRefund + type AdjustmentActionQuery string + const AdjustmentActionQueryChargeback + const AdjustmentActionQueryChargebackReverse + const AdjustmentActionQueryChargebackWarning + const AdjustmentActionQueryCredit + const AdjustmentActionQueryCreditReverse + const AdjustmentActionQueryRefund + type AdjustmentCreatedEvent struct + Data paddlenotification.AdjustmentNotification + type AdjustmentCreditNotePDF struct + URL string + type AdjustmentItem struct + Amount *string + ID string + ItemID string + Proration *Proration + Totals AdjustmentItemTotals + Type AdjustmentItemType + type AdjustmentItemTotals struct + Subtotal string + Tax string + Total string + type AdjustmentItemType string + const AdjustmentItemTypeFull + const AdjustmentItemTypePartial + const AdjustmentItemTypeProration + const AdjustmentItemTypeTax + type AdjustmentPreview struct + Items []SubscriptionAdjustmentItem + Totals AdjustmentTotals + TransactionID string + type AdjustmentStatus string + const AdjustmentStatusApproved + const AdjustmentStatusPendingApproval + const AdjustmentStatusRejected + const AdjustmentStatusReversed + type AdjustmentTaxRateUsed struct + TaxRate string + Totals AdjustmentTaxRateUsedTotals + type AdjustmentTaxRateUsedTotals struct + Subtotal string + Tax string + Total string + type AdjustmentTotals struct + CurrencyCode CurrencyCode + Earnings string + Fee string + Subtotal string + Tax string + Total string + type AdjustmentTotalsBreakdown struct + Chargeback string + Credit string + Refund string + type AdjustmentType string + const AdjustmentTypeFull + const AdjustmentTypePartial + type AdjustmentUpdatedEvent struct + Data paddlenotification.AdjustmentNotification + type AdjustmentsClient struct + func (c *AdjustmentsClient) CreateAdjustment(ctx context.Context, req *CreateAdjustmentRequest) (res *Adjustment, err error) + func (c *AdjustmentsClient) GetAdjustmentCreditNote(ctx context.Context, req *GetAdjustmentCreditNoteRequest) (res *AdjustmentCreditNotePDF, err error) + func (c *AdjustmentsClient) ListAdjustments(ctx context.Context, req *ListAdjustmentsRequest) (res *Collection[*Adjustment], err error) + func (c *AdjustmentsClient) ListCreditBalances(ctx context.Context, req *ListCreditBalancesRequest) (res *Collection[*CreditBalance], err error) + type AdjustmentsReportFilterName string + const AdjustmentsReportFilterNameAction + const AdjustmentsReportFilterNameCurrencyCode + const AdjustmentsReportFilterNameStatus + const AdjustmentsReportFilterNameUpdatedAt + type AdjustmentsReportFilters struct + Name AdjustmentsReportFilterName + Operator *FilterOperator + Value any + type AdjustmentsReportType string + const AdjustmentsReportTypeAdjustmentLineItems + const AdjustmentsReportTypeAdjustments + type AdjustmentsReports struct + Filters []AdjustmentsReportFilters + Type AdjustmentsReportType + type BillingDetails struct + AdditionalInformation *string + EnableCheckout bool + PaymentTerms Duration + PurchaseOrderNumber string + type BillingDetailsUpdate struct + AdditionalInformation *string + EnableCheckout bool + PaymentTerms Duration + PurchaseOrderNumber string + type Business struct + CompanyNumber *string + Contacts []Contacts + CreatedAt string + CustomData CustomData + CustomerID string + ID string + ImportMeta *ImportMeta + Name string + Status Status + TaxIdentifier *string + UpdatedAt string + type BusinessContacts struct + Email string + Name string + type BusinessCreatedEvent struct + Data paddlenotification.BusinessNotification + type BusinessImportedEvent struct + Data paddlenotification.BusinessNotification + type BusinessUpdatedEvent struct + Data paddlenotification.BusinessNotification + type BusinessesClient struct + func (c *BusinessesClient) CreateBusiness(ctx context.Context, req *CreateBusinessRequest) (res *Business, err error) + func (c *BusinessesClient) GetBusiness(ctx context.Context, req *GetBusinessRequest) (res *Business, err error) + func (c *BusinessesClient) ListBusinesses(ctx context.Context, req *ListBusinessesRequest) (res *Collection[*Business], err error) + func (c *BusinessesClient) UpdateBusiness(ctx context.Context, req *UpdateBusinessRequest) (res *Business, err error) + type CancelSubscriptionRequest struct + EffectiveFrom *EffectiveFrom + SubscriptionID string + type Card struct + CardholderName string + ExpiryMonth int + ExpiryYear int + Last4 string + Type CardType + type CardType string + const CardTypeAmericanExpress + const CardTypeDinersClub + const CardTypeDiscover + const CardTypeJcb + const CardTypeMada + const CardTypeMaestro + const CardTypeMastercard + const CardTypeUnionPay + const CardTypeUnknown + const CardTypeVisa + type CatalogType string + const CatalogTypeCustom + const CatalogTypeStandard + type ChargebackFee struct + Amount string + Original *Original + type Collection struct + func (c *Collection[T]) EstimatedTotal() int + func (c *Collection[T]) HasMore() bool + func (c *Collection[T]) Iter(ctx context.Context, fn func(v T) (bool, error)) error + func (c *Collection[T]) IterErr(ctx context.Context, fn func(v T) error) error + func (c *Collection[T]) Next(ctx context.Context) *Res[T] + func (c *Collection[T]) PerPage() int + func (c *Collection[T]) UnmarshalJSON(b []byte) error + func (c *Collection[T]) UnmarshalsResponses() + func (c *Collection[T]) Wants(d client.Doer) + type CollectionMode string + const CollectionModeAutomatic + const CollectionModeManual + type Contacts struct + Email string + Name string + type CountryCode string + const CountryCodeAD + const CountryCodeAE + const CountryCodeAG + const CountryCodeAI + const CountryCodeAL + const CountryCodeAM + const CountryCodeAO + const CountryCodeAR + const CountryCodeAS + const CountryCodeAT + const CountryCodeAU + const CountryCodeAW + const CountryCodeAX + const CountryCodeAZ + const CountryCodeBA + const CountryCodeBB + const CountryCodeBD + const CountryCodeBE + const CountryCodeBF + const CountryCodeBG + const CountryCodeBH + const CountryCodeBI + const CountryCodeBJ + const CountryCodeBL + const CountryCodeBM + const CountryCodeBN + const CountryCodeBO + const CountryCodeBQ + const CountryCodeBR + const CountryCodeBS + const CountryCodeBT + const CountryCodeBV + const CountryCodeBW + const CountryCodeBZ + const CountryCodeCA + const CountryCodeCC + const CountryCodeCG + const CountryCodeCH + const CountryCodeCI + const CountryCodeCK + const CountryCodeCL + const CountryCodeCM + const CountryCodeCN + const CountryCodeCO + const CountryCodeCR + const CountryCodeCV + const CountryCodeCW + const CountryCodeCX + const CountryCodeCY + const CountryCodeCZ + const CountryCodeDE + const CountryCodeDJ + const CountryCodeDK + const CountryCodeDM + const CountryCodeDO + const CountryCodeDZ + const CountryCodeEC + const CountryCodeEE + const CountryCodeEG + const CountryCodeEH + const CountryCodeER + const CountryCodeES + const CountryCodeET + const CountryCodeFI + const CountryCodeFJ + const CountryCodeFK + const CountryCodeFM + const CountryCodeFO + const CountryCodeFR + const CountryCodeGA + const CountryCodeGB + const CountryCodeGD + const CountryCodeGE + const CountryCodeGF + const CountryCodeGG + const CountryCodeGH + const CountryCodeGI + const CountryCodeGL + const CountryCodeGM + const CountryCodeGN + const CountryCodeGP + const CountryCodeGQ + const CountryCodeGR + const CountryCodeGS + const CountryCodeGT + const CountryCodeGU + const CountryCodeGW + const CountryCodeGY + const CountryCodeHK + const CountryCodeHM + const CountryCodeHN + const CountryCodeHR + const CountryCodeHU + const CountryCodeID + const CountryCodeIE + const CountryCodeIL + const CountryCodeIM + const CountryCodeIN + const CountryCodeIO + const CountryCodeIQ + const CountryCodeIS + const CountryCodeIT + const CountryCodeJE + const CountryCodeJM + const CountryCodeJO + const CountryCodeJP + const CountryCodeKE + const CountryCodeKG + const CountryCodeKH + const CountryCodeKI + const CountryCodeKM + const CountryCodeKN + const CountryCodeKR + const CountryCodeKW + const CountryCodeKY + const CountryCodeKZ + const CountryCodeLA + const CountryCodeLB + const CountryCodeLC + const CountryCodeLI + const CountryCodeLK + const CountryCodeLR + const CountryCodeLS + const CountryCodeLT + const CountryCodeLU + const CountryCodeLV + const CountryCodeMA + const CountryCodeMC + const CountryCodeMD + const CountryCodeME + const CountryCodeMF + const CountryCodeMG + const CountryCodeMH + const CountryCodeMK + const CountryCodeMN + const CountryCodeMO + const CountryCodeMP + const CountryCodeMQ + const CountryCodeMR + const CountryCodeMS + const CountryCodeMT + const CountryCodeMU + const CountryCodeMV + const CountryCodeMW + const CountryCodeMX + const CountryCodeMY + const CountryCodeMZ + const CountryCodeNA + const CountryCodeNC + const CountryCodeNE + const CountryCodeNF + const CountryCodeNG + const CountryCodeNL + const CountryCodeNO + const CountryCodeNP + const CountryCodeNR + const CountryCodeNU + const CountryCodeNZ + const CountryCodeOM + const CountryCodePA + const CountryCodePE + const CountryCodePF + const CountryCodePG + const CountryCodePH + const CountryCodePK + const CountryCodePL + const CountryCodePM + const CountryCodePN + const CountryCodePR + const CountryCodePS + const CountryCodePT + const CountryCodePW + const CountryCodePY + const CountryCodeQA + const CountryCodeRE + const CountryCodeRO + const CountryCodeRS + const CountryCodeRW + const CountryCodeSA + const CountryCodeSB + const CountryCodeSC + const CountryCodeSE + const CountryCodeSG + const CountryCodeSH + const CountryCodeSI + const CountryCodeSJ + const CountryCodeSK + const CountryCodeSL + const CountryCodeSM + const CountryCodeSN + const CountryCodeSR + const CountryCodeST + const CountryCodeSV + const CountryCodeSX + const CountryCodeSZ + const CountryCodeTC + const CountryCodeTD + const CountryCodeTF + const CountryCodeTG + const CountryCodeTH + const CountryCodeTJ + const CountryCodeTK + const CountryCodeTL + const CountryCodeTM + const CountryCodeTN + const CountryCodeTO + const CountryCodeTR + const CountryCodeTT + const CountryCodeTV + const CountryCodeTW + const CountryCodeTZ + const CountryCodeUA + const CountryCodeUG + const CountryCodeUM + const CountryCodeUS + const CountryCodeUY + const CountryCodeUZ + const CountryCodeVA + const CountryCodeVC + const CountryCodeVG + const CountryCodeVI + const CountryCodeVN + const CountryCodeVU + const CountryCodeWF + const CountryCodeWS + const CountryCodeXK + const CountryCodeYT + const CountryCodeZA + const CountryCodeZM + type CreateAddressRequest struct + City *string + CountryCode CountryCode + CustomData CustomData + CustomerID string + Description *string + FirstLine *string + PostalCode *string + Region *string + SecondLine *string + type CreateAdjustmentRequest struct + Action AdjustmentAction + Items []AdjustmentItem + Reason string + TransactionID string + Type *AdjustmentType + type CreateBusinessRequest struct + CompanyNumber *string + Contacts []BusinessContacts + CustomData CustomData + CustomerID string + Name string + TaxIdentifier *string + type CreateCustomerPortalSessionRequest struct + CustomerID string + SubscriptionIDs []string + type CreateCustomerRequest struct + CustomData CustomData + Email string + Locale *string + Name *string + type CreateDiscountRequest struct + Amount string + Code *string + CurrencyCode *CurrencyCode + CustomData CustomData + Description string + EnabledForCheckout *bool + ExpiresAt *string + MaximumRecurringIntervals *int + Recur *bool + RestrictTo []string + Type DiscountType + UsageLimit *int + type CreateNotificationSettingRequest struct + APIVersion *int + Description string + Destination string + IncludeSensitiveFields *bool + SubscribedEvents []EventTypeName + TrafficSource *TrafficSource + Type NotificationSettingType + type CreatePriceRequest struct + BillingCycle *Duration + CustomData CustomData + Description string + Name *string + ProductID string + Quantity *PriceQuantity + TaxMode *TaxMode + TrialPeriod *Duration + Type *CatalogType + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + type CreateProductRequest struct + CustomData CustomData + Description *string + ImageURL *string + Name string + TaxCategory TaxCategory + Type *CatalogType + type CreateReportRequest struct + func NewCreateReportRequestAdjustmentsReports(r *AdjustmentsReports) *CreateReportRequest + func NewCreateReportRequestDiscountsReport(r *DiscountsReport) *CreateReportRequest + func NewCreateReportRequestProductsAndPricesReport(r *ProductsAndPricesReport) *CreateReportRequest + func NewCreateReportRequestTransactionsReports(r *TransactionsReports) *CreateReportRequest + func (u CreateReportRequest) MarshalJSON() ([]byte, error) + type CreateSimulationRequest struct + func NewCreateSimulationRequestSimulationScenarioCreate(r *SimulationScenarioCreate) *CreateSimulationRequest + func NewCreateSimulationRequestSimulationSingleEventCreate(r *SimulationSingleEventCreate) *CreateSimulationRequest + func (u CreateSimulationRequest) MarshalJSON() ([]byte, error) + type CreateSimulationRunRequest struct + SimulationID string + type CreateSubscriptionChargeItems struct + func NewCreateSubscriptionChargeItemsSubscriptionChargeItemCreateWithPrice(r *SubscriptionChargeItemCreateWithPrice) *CreateSubscriptionChargeItems + func NewCreateSubscriptionChargeItemsSubscriptionChargeItemCreateWithProduct(r *SubscriptionChargeItemCreateWithProduct) *CreateSubscriptionChargeItems + func NewCreateSubscriptionChargeItemsSubscriptionChargeItemFromCatalog(r *SubscriptionChargeItemFromCatalog) *CreateSubscriptionChargeItems + func (u CreateSubscriptionChargeItems) MarshalJSON() ([]byte, error) + type CreateSubscriptionChargeRequest struct + EffectiveFrom EffectiveFrom + Items []CreateSubscriptionChargeItems + OnPaymentFailure *SubscriptionOnPaymentFailure + SubscriptionID string + type CreateTransactionItems struct + func NewCreateTransactionItemsTransactionItemCreateWithPrice(r *TransactionItemCreateWithPrice) *CreateTransactionItems + func NewCreateTransactionItemsTransactionItemCreateWithProduct(r *TransactionItemCreateWithProduct) *CreateTransactionItems + func NewCreateTransactionItemsTransactionItemFromCatalog(r *TransactionItemFromCatalog) *CreateTransactionItems + func (u CreateTransactionItems) MarshalJSON() ([]byte, error) + type CreateTransactionRequest struct + AddressID *string + BillingDetails *BillingDetails + BillingPeriod *TimePeriod + BusinessID *string + Checkout *TransactionCheckout + CollectionMode *CollectionMode + CurrencyCode *CurrencyCode + CustomData CustomData + CustomerID *string + DiscountID *string + IncludeAddress bool + IncludeAdjustments bool + IncludeAdjustmentsTotals bool + IncludeAvailablePaymentMethods bool + IncludeBusiness bool + IncludeCustomer bool + IncludeDiscount bool + Items []CreateTransactionItems + Status *TransactionStatus + type CreditBalance struct + Balance CustomerBalance + CurrencyCode CurrencyCode + CustomerID string + type CurrencyCode string + const CurrencyCodeARS + const CurrencyCodeAUD + const CurrencyCodeBRL + const CurrencyCodeCAD + const CurrencyCodeCHF + const CurrencyCodeCNY + const CurrencyCodeCOP + const CurrencyCodeCZK + const CurrencyCodeDKK + const CurrencyCodeEUR + const CurrencyCodeGBP + const CurrencyCodeHKD + const CurrencyCodeHUF + const CurrencyCodeILS + const CurrencyCodeINR + const CurrencyCodeJPY + const CurrencyCodeKRW + const CurrencyCodeMXN + const CurrencyCodeNOK + const CurrencyCodeNZD + const CurrencyCodePLN + const CurrencyCodeRUB + const CurrencyCodeSEK + const CurrencyCodeSGD + const CurrencyCodeTHB + const CurrencyCodeTRY + const CurrencyCodeTWD + const CurrencyCodeUAH + const CurrencyCodeUSD + const CurrencyCodeVND + const CurrencyCodeZAR + type CurrencyCodeChargebacks string + const CurrencyCodeChargebacksAUD + const CurrencyCodeChargebacksCAD + const CurrencyCodeChargebacksEUR + const CurrencyCodeChargebacksGBP + const CurrencyCodeChargebacksUSD + type CurrencyCodePayouts string + const CurrencyCodePayoutsAUD + const CurrencyCodePayoutsCAD + const CurrencyCodePayoutsCHF + const CurrencyCodePayoutsCNY + const CurrencyCodePayoutsCZK + const CurrencyCodePayoutsDKK + const CurrencyCodePayoutsEUR + const CurrencyCodePayoutsGBP + const CurrencyCodePayoutsHUF + const CurrencyCodePayoutsPLN + const CurrencyCodePayoutsSEK + const CurrencyCodePayoutsUSD + const CurrencyCodePayoutsZAR + type CustomData map[string]any + type Customer struct + CreatedAt string + CustomData CustomData + Email string + ID string + ImportMeta *ImportMeta + Locale string + MarketingConsent bool + Name *string + Status Status + UpdatedAt string + type CustomerAuthenticationToken struct + CustomerAuthToken string + ExpiresAt string + type CustomerBalance struct + Available string + Reserved string + Used string + type CustomerCreatedEvent struct + Data paddlenotification.CustomerNotification + type CustomerImportedEvent struct + Data paddlenotification.CustomerNotification + type CustomerPortalSession struct + CreatedAt string + CustomerID string + ID string + URLs CustomerPortalSessionURLs + type CustomerPortalSessionGeneralURLs struct + Overview string + type CustomerPortalSessionSubscriptionURLs struct + CancelSubscription string + ID string + UpdateSubscriptionPaymentMethod string + type CustomerPortalSessionURLs struct + General CustomerPortalSessionGeneralURLs + Subscriptions []CustomerPortalSessionSubscriptionURLs + type CustomerPortalSessionsClient struct + func (c *CustomerPortalSessionsClient) CreateCustomerPortalSession(ctx context.Context, req *CreateCustomerPortalSessionRequest) (res *CustomerPortalSession, err error) + type CustomerUpdatedEvent struct + Data paddlenotification.CustomerNotification + type CustomersClient struct + func (c *CustomersClient) CreateCustomer(ctx context.Context, req *CreateCustomerRequest) (res *Customer, err error) + func (c *CustomersClient) GenerateCustomerAuthenticationToken(ctx context.Context, req *GenerateCustomerAuthenticationTokenRequest) (res *CustomerAuthenticationToken, err error) + func (c *CustomersClient) GetCustomer(ctx context.Context, req *GetCustomerRequest) (res *Customer, err error) + func (c *CustomersClient) ListCustomers(ctx context.Context, req *ListCustomersRequest) (res *Collection[*Customer], err error) + func (c *CustomersClient) UpdateCustomer(ctx context.Context, req *UpdateCustomerRequest) (res *Customer, err error) + type Data map[string]any + type DeleteCustomerPaymentMethodRequest struct + CustomerID string + PaymentMethodID string + type DeleteNotificationSettingRequest struct + NotificationSettingID string + type Discount struct + Amount string + Code *string + CreatedAt string + CurrencyCode *CurrencyCode + CustomData CustomData + Description string + EnabledForCheckout bool + ExpiresAt *string + ID string + ImportMeta *ImportMeta + MaximumRecurringIntervals *int + Recur bool + RestrictTo []string + Status DiscountStatus + TimesUsed int + Type DiscountType + UpdatedAt string + UsageLimit *int + type DiscountCreatedEvent struct + Data paddlenotification.DiscountNotification + type DiscountImportedEvent struct + Data paddlenotification.DiscountNotification + type DiscountStatus string + const DiscountStatusActive + const DiscountStatusArchived + type DiscountType string + const DiscountTypeFlat + const DiscountTypeFlatPerSeat + const DiscountTypePercentage + type DiscountUpdatedEvent struct + Data paddlenotification.DiscountNotification + type DiscountsClient struct + func (c *DiscountsClient) CreateDiscount(ctx context.Context, req *CreateDiscountRequest) (res *Discount, err error) + func (c *DiscountsClient) GetDiscount(ctx context.Context, req *GetDiscountRequest) (res *Discount, err error) + func (c *DiscountsClient) ListDiscounts(ctx context.Context, req *ListDiscountsRequest) (res *Collection[*Discount], err error) + func (c *DiscountsClient) UpdateDiscount(ctx context.Context, req *UpdateDiscountRequest) (res *Discount, err error) + type DiscountsReport struct + Filters []DiscountsReportFilters + Type DiscountsReportType + type DiscountsReportFilterName string + const DiscountsReportFilterNameStatus + const DiscountsReportFilterNameType + const DiscountsReportFilterNameUpdatedAt + type DiscountsReportFilters struct + Name DiscountsReportFilterName + Operator *FilterOperator + Value any + type DiscountsReportType string + const DiscountsReportTypeDiscounts + type Disposition string + const DispositionAttachment + const DispositionInline + type Doer interface + Do func(ctx context.Context, method, path string, src, dst any) error + type Duration struct + Frequency int + Interval Interval + type EffectiveFrom string + const EffectiveFromImmediately + const EffectiveFromNextBillingPeriod + type ErrorCode string + const ErrorCodeAlreadyCanceled + const ErrorCodeAlreadyRefunded + const ErrorCodeAuthenticationFailed + const ErrorCodeBlockedCard + const ErrorCodeCanceled + const ErrorCodeDeclined + const ErrorCodeDeclinedNotRetryable + const ErrorCodeExpiredCard + const ErrorCodeFraud + const ErrorCodeInvalidAmount + const ErrorCodeInvalidPaymentDetails + const ErrorCodeIssuerUnavailable + const ErrorCodeNotEnoughBalance + const ErrorCodePspError + const ErrorCodeRedactedPaymentMethod + const ErrorCodeSystemError + const ErrorCodeTransactionNotPermitted + const ErrorCodeUnknown + type Event interface + type EventType struct + AvailableVersions []int + Description string + Group string + Name EventTypeName + type EventTypeName string + const EventTypeNameAddressCreated + const EventTypeNameAddressImported + const EventTypeNameAddressUpdated + const EventTypeNameAdjustmentCreated + const EventTypeNameAdjustmentUpdated + const EventTypeNameBusinessCreated + const EventTypeNameBusinessImported + const EventTypeNameBusinessUpdated + const EventTypeNameCustomerCreated + const EventTypeNameCustomerImported + const EventTypeNameCustomerUpdated + const EventTypeNameDiscountCreated + const EventTypeNameDiscountImported + const EventTypeNameDiscountUpdated + const EventTypeNamePayoutCreated + const EventTypeNamePayoutPaid + const EventTypeNamePriceCreated + const EventTypeNamePriceImported + const EventTypeNamePriceUpdated + const EventTypeNameProductCreated + const EventTypeNameProductImported + const EventTypeNameProductUpdated + const EventTypeNameReportCreated + const EventTypeNameReportUpdated + const EventTypeNameSubscriptionActivated + const EventTypeNameSubscriptionCanceled + const EventTypeNameSubscriptionCreated + const EventTypeNameSubscriptionImported + const EventTypeNameSubscriptionPastDue + const EventTypeNameSubscriptionPaused + const EventTypeNameSubscriptionResumed + const EventTypeNameSubscriptionTrialing + const EventTypeNameSubscriptionUpdated + const EventTypeNameTransactionBilled + const EventTypeNameTransactionCanceled + const EventTypeNameTransactionCompleted + const EventTypeNameTransactionCreated + const EventTypeNameTransactionPaid + const EventTypeNameTransactionPastDue + const EventTypeNameTransactionPaymentFailed + const EventTypeNameTransactionReady + const EventTypeNameTransactionUpdated + type EventsClient struct + func (c *EventsClient) ListEvents(ctx context.Context, req *ListEventsRequest) (res *Collection[Event], err error) + type EventsTypesClient struct + func (c *EventsTypesClient) ListEventTypes(ctx context.Context, req *ListEventTypesRequest) (res *Collection[*EventType], err error) + type FilterOperator string + const FilterOperatorGte + const FilterOperatorLt + type GenerateCustomerAuthenticationTokenRequest struct + CustomerID string + type GenericEvent struct + Data paddlenotification.NotificationPayload + EventID string + EventType EventTypeName + OccurredAt string + type GetAddressRequest struct + AddressID string + CustomerID string + type GetAdjustmentCreditNoteRequest struct + AdjustmentID string + Disposition *string + type GetBusinessRequest struct + BusinessID string + CustomerID string + type GetCustomerPaymentMethodRequest struct + CustomerID string + PaymentMethodID string + type GetCustomerRequest struct + CustomerID string + type GetDiscountRequest struct + DiscountID string + type GetIPAddressesRequest struct + type GetNotificationRequest struct + NotificationID string + type GetNotificationSettingRequest struct + NotificationSettingID string + type GetPriceRequest struct + IncludeProduct bool + PriceID string + type GetProductRequest struct + IncludePrices bool + ProductID string + type GetReportCSVRequest struct + ReportID string + type GetReportRequest struct + ReportID string + type GetSimulationEventRequest struct + SimulationEventID string + SimulationID string + SimulationRunID string + type GetSimulationRequest struct + SimulationID string + type GetSimulationRunRequest struct + IncludeEvents bool + SimulationID string + SimulationRunID string + type GetSubscriptionRequest struct + IncludeNextTransaction bool + IncludeRecurringTransactionDetails bool + SubscriptionID string + type GetSubscriptionUpdatePaymentMethodTransactionRequest struct + SubscriptionID string + type GetTransactionInvoiceRequest struct + Disposition *string + TransactionID string + type GetTransactionRequest struct + IncludeAddress bool + IncludeAdjustments bool + IncludeAdjustmentsTotals bool + IncludeAvailablePaymentMethods bool + IncludeBusiness bool + IncludeCustomer bool + IncludeDiscount bool + TransactionID string + type IPAddress struct + IPv4CIDRs []string + type IPAddressesClient struct + func (c *IPAddressesClient) GetIPAddresses(ctx context.Context, req *GetIPAddressesRequest) (res *IPAddress, err error) + type ImportMeta struct + ExternalID *string + ImportedFrom string + type Interval string + const IntervalDay + const IntervalMonth + const IntervalWeek + const IntervalYear + type ListAddressesRequest struct + After *string + CustomerID string + ID []string + OrderBy *string + PerPage *int + Search *string + Status []string + type ListAdjustmentsRequest struct + Action *string + After *string + CustomerID []string + ID []string + OrderBy *string + PerPage *int + Status []string + SubscriptionID []string + TransactionID []string + type ListBusinessesRequest struct + After *string + CustomerID string + ID []string + OrderBy *string + PerPage *int + Search *string + Status []string + type ListCreditBalancesRequest struct + CurrencyCode []string + CustomerID string + type ListCustomerPaymentMethodsRequest struct + AddressID []string + After *string + CustomerID string + OrderBy *string + PerPage *int + SupportsCheckout *bool + type ListCustomersRequest struct + After *string + Email []string + ID []string + OrderBy *string + PerPage *int + Search *string + Status []string + type ListDiscountsRequest struct + After *string + Code []string + ID []string + OrderBy *string + PerPage *int + Status []string + type ListEventTypesRequest struct + type ListEventsRequest struct + After *string + OrderBy *string + PerPage *int + type ListNotificationLogsRequest struct + After *string + NotificationID string + PerPage *int + type ListNotificationSettingsRequest struct + Active *bool + After *string + OrderBy *string + PerPage *int + TrafficSource *string + type ListNotificationsRequest struct + After *string + Filter *string + From *string + NotificationSettingID []string + OrderBy *string + PerPage *int + Search *string + Status []string + To *string + type ListPricesRequest struct + After *string + ID []string + IncludeProduct bool + OrderBy *string + PerPage *int + ProductID []string + Recurring *bool + Status []string + Type *string + type ListProductsRequest struct + After *string + ID []string + IncludePrices bool + OrderBy *string + PerPage *int + Status []string + TaxCategory []string + Type *string + type ListReportsRequest struct + After *string + OrderBy *string + PerPage *int + Status []string + type ListSimulationRunsRequest struct + After *string + ID []string + IncludeEvents bool + OrderBy *string + PerPage *int + SimulationID string + type ListSimulationTypesRequest struct + type ListSimulationsEventsRequest struct + After *string + ID []string + OrderBy *string + PerPage *int + SimulationID string + SimulationRunID string + type ListSimulationsRequest struct + After *string + ID []string + NotificationSettingID []string + OrderBy *string + PerPage *int + Status []string + type ListSubscriptionsRequest struct + AddressID []string + After *string + CollectionMode *string + CustomerID []string + ID []string + OrderBy *string + PerPage *int + PriceID []string + ScheduledChangeAction []string + Status []string + type ListTransactionsRequest struct + After *string + BilledAt *string + CollectionMode *string + CreatedAt *string + CustomerID []string + ID []string + IncludeAddress bool + IncludeAdjustments bool + IncludeAdjustmentsTotals bool + IncludeAvailablePaymentMethods bool + IncludeBusiness bool + IncludeCustomer bool + IncludeDiscount bool + InvoiceNumber []string + OrderBy *string + Origin []string + PerPage *int + Status []string + SubscriptionID []string + UpdatedAt *string + type Meta struct + RequestID string + type MetaPaginated struct + Pagination Pagination + RequestID string + type MethodDetails struct + Card *Card + Type PaymentMethodType + type Money struct + Amount string + CurrencyCode CurrencyCode + type NextTransaction struct + Adjustments []AdjustmentPreview + BillingPeriod TimePeriod + Details SubscriptionTransactionDetailsPreview + type Notification struct + DeliveredAt *string + ID string + LastAttemptAt *string + NotificationSettingID string + OccurredAt string + Origin NotificationOrigin + Payload paddlenotification.NotificationEvent + ReplayedAt *string + RetryAt *string + Status NotificationStatus + TimesAttempted int + Type EventTypeName + func (n *Notification) UnmarshalJSON(data []byte) error + type NotificationLog struct + AttemptedAt string + ID string + ResponseBody string + ResponseCode int + ResponseContentType *string + type NotificationLogsClient struct + func (c *NotificationLogsClient) ListNotificationLogs(ctx context.Context, req *ListNotificationLogsRequest) (res *Collection[*NotificationLog], err error) + type NotificationOrigin string + const NotificationOriginEvent + const NotificationOriginReplay + type NotificationSetting struct + APIVersion int + Active bool + Description string + Destination string + EndpointSecretKey string + ID string + IncludeSensitiveFields bool + SubscribedEvents []EventType + TrafficSource TrafficSource + Type NotificationSettingType + type NotificationSettingReplaysClient struct + func (c *NotificationSettingReplaysClient) ReplayNotification(ctx context.Context, req *ReplayNotificationRequest) (err error) + type NotificationSettingType string + const NotificationSettingTypeEmail + const NotificationSettingTypeURL + type NotificationSettingsClient struct + func (c *NotificationSettingsClient) CreateNotificationSetting(ctx context.Context, req *CreateNotificationSettingRequest) (res *NotificationSetting, err error) + func (c *NotificationSettingsClient) DeleteNotificationSetting(ctx context.Context, req *DeleteNotificationSettingRequest) (err error) + func (c *NotificationSettingsClient) GetNotificationSetting(ctx context.Context, req *GetNotificationSettingRequest) (res *NotificationSetting, err error) + func (c *NotificationSettingsClient) ListNotificationSettings(ctx context.Context, req *ListNotificationSettingsRequest) (res *Collection[*NotificationSetting], err error) + func (c *NotificationSettingsClient) UpdateNotificationSetting(ctx context.Context, req *UpdateNotificationSettingRequest) (res *NotificationSetting, err error) + type NotificationStatus string + const NotificationStatusDelivered + const NotificationStatusFailed + const NotificationStatusNeedsRetry + const NotificationStatusNotAttempted + type NotificationsClient struct + func (c *NotificationsClient) GetNotification(ctx context.Context, req *GetNotificationRequest) (res *Notification, err error) + func (c *NotificationsClient) ListNotifications(ctx context.Context, req *ListNotificationsRequest) (res *Collection[*Notification], err error) + type Option func(*options) + func WithAPIKey(apiKey string) Option + func WithBaseURL(baseURL string) Option + func WithClient(c client.HTTPDoer) Option + type Original struct + Amount string + CurrencyCode CurrencyCodeChargebacks + type Pagination struct + EstimatedTotal int + HasMore bool + Next string + PerPage int + type PatchField struct + func NewNullPatchField[T any]() *PatchField[T] + func NewPatchField[T any](value T) *PatchField[T] + func NewPtrPatchField[T any](value T) *PatchField[*T] + func (f PatchField[T]) MarshalJSON() ([]byte, error) + func (f PatchField[T]) Value() *T + type PauseSubscriptionRequest struct + EffectiveFrom *EffectiveFrom + OnResume *SubscriptionOnResume + ResumeAt *string + SubscriptionID string + type PayPal struct + Email string + Reference string + type PaymentAttemptStatus string + const PaymentAttemptStatusActionRequired + const PaymentAttemptStatusAuthorized + const PaymentAttemptStatusAuthorizedFlagged + const PaymentAttemptStatusCanceled + const PaymentAttemptStatusCaptured + const PaymentAttemptStatusCreated + const PaymentAttemptStatusDropped + const PaymentAttemptStatusError + const PaymentAttemptStatusPendingNoActionRequired + const PaymentAttemptStatusUnknown + type PaymentMethod struct + AddressID string + Card *Card + CustomerID string + ID string + Origin PaymentMethodOrigin + Paypal *PayPal + SavedAt string + Type SavedPaymentMethodType + UpdatedAt string + type PaymentMethodDeletedEvent struct + Data paddlenotification.PaymentMethodDeletedNotification + type PaymentMethodOrigin string + const PaymentMethodOriginSavedDuringPurchase + const PaymentMethodOriginSubscription + type PaymentMethodSavedEvent struct + Data paddlenotification.PaymentMethodSavedNotification + type PaymentMethodType string + const PaymentMethodTypeAlipay + const PaymentMethodTypeApplePay + const PaymentMethodTypeBancontact + const PaymentMethodTypeCard + const PaymentMethodTypeGooglePay + const PaymentMethodTypeIdeal + const PaymentMethodTypeOffline + const PaymentMethodTypePaypal + const PaymentMethodTypeUnknown + const PaymentMethodTypeWireTransfer + type PaymentMethodsClient struct + func (c *PaymentMethodsClient) DeleteCustomerPaymentMethod(ctx context.Context, req *DeleteCustomerPaymentMethodRequest) (err error) + func (c *PaymentMethodsClient) GetCustomerPaymentMethod(ctx context.Context, req *GetCustomerPaymentMethodRequest) (res *PaymentMethod, err error) + func (c *PaymentMethodsClient) ListCustomerPaymentMethods(ctx context.Context, req *ListCustomerPaymentMethodsRequest) (res *Collection[*PaymentMethod], err error) + type PayoutCreatedEvent struct + Data paddlenotification.PayoutNotification + type PayoutPaidEvent struct + Data paddlenotification.PayoutNotification + type PayoutTotalsAdjustment struct + ChargebackFee ChargebackFee + CurrencyCode CurrencyCodePayouts + Earnings string + Fee string + Subtotal string + Tax string + Total string + type PreviewPricesRequest struct + Address *AddressPreview + AddressID *string + BusinessID *string + CurrencyCode *CurrencyCode + CustomerID *string + CustomerIPAddress *string + DiscountID *string + Items []PricePreviewItem + type PreviewSubscriptionChargeItems struct + func NewPreviewSubscriptionChargeItemsSubscriptionChargeItemCreateWithPrice(r *SubscriptionChargeItemCreateWithPrice) *PreviewSubscriptionChargeItems + func NewPreviewSubscriptionChargeItemsSubscriptionChargeItemCreateWithProduct(r *SubscriptionChargeItemCreateWithProduct) *PreviewSubscriptionChargeItems + func NewPreviewSubscriptionChargeItemsSubscriptionChargeItemFromCatalog(r *SubscriptionChargeItemFromCatalog) *PreviewSubscriptionChargeItems + func (u PreviewSubscriptionChargeItems) MarshalJSON() ([]byte, error) + type PreviewSubscriptionChargeRequest struct + EffectiveFrom EffectiveFrom + Items []PreviewSubscriptionChargeItems + OnPaymentFailure *SubscriptionOnPaymentFailure + SubscriptionID string + type PreviewSubscriptionUpdateItems struct + func NewPreviewSubscriptionUpdateItemsSubscriptionUpdateItemCreateWithPrice(r *SubscriptionUpdateItemCreateWithPrice) *PreviewSubscriptionUpdateItems + func NewPreviewSubscriptionUpdateItemsSubscriptionUpdateItemCreateWithProduct(r *SubscriptionUpdateItemCreateWithProduct) *PreviewSubscriptionUpdateItems + func NewPreviewSubscriptionUpdateItemsSubscriptionUpdateItemFromCatalog(r *SubscriptionUpdateItemFromCatalog) *PreviewSubscriptionUpdateItems + func (u PreviewSubscriptionUpdateItems) MarshalJSON() ([]byte, error) + type PreviewSubscriptionUpdateRequest struct + AddressID *PatchField[string] + BillingDetails *PatchField[*BillingDetailsUpdate] + BusinessID *PatchField[*string] + CollectionMode *PatchField[CollectionMode] + CurrencyCode *PatchField[CurrencyCode] + CustomData *PatchField[CustomData] + CustomerID *PatchField[string] + Discount *PatchField[*SubscriptionDiscountEffectiveFrom] + Items *PatchField[[]PreviewSubscriptionUpdateItems] + NextBilledAt *PatchField[string] + OnPaymentFailure *PatchField[SubscriptionOnPaymentFailure] + ProrationBillingMode *PatchField[ProrationBillingMode] + ScheduledChange *PatchField[*SubscriptionScheduledChange] + SubscriptionID string + type PreviewTransactionCreateRequest struct + func NewPreviewTransactionCreateRequestTransactionPreviewByAddress(r *TransactionPreviewByAddress) *PreviewTransactionCreateRequest + func NewPreviewTransactionCreateRequestTransactionPreviewByCustomer(r *TransactionPreviewByCustomer) *PreviewTransactionCreateRequest + func NewPreviewTransactionCreateRequestTransactionPreviewByIP(r *TransactionPreviewByIP) *PreviewTransactionCreateRequest + func (u PreviewTransactionCreateRequest) MarshalJSON() ([]byte, error) + type Price struct + BillingCycle *Duration + CreatedAt string + CustomData CustomData + Description string + ID string + ImportMeta *ImportMeta + Name *string + Product Product + ProductID string + Quantity PriceQuantity + Status Status + TaxMode TaxMode + TrialPeriod *Duration + Type CatalogType + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + UpdatedAt string + type PriceCreatedEvent struct + Data paddlenotification.PriceNotification + type PriceImportedEvent struct + Data paddlenotification.PriceNotification + type PricePreview struct + Address *AddressPreview + AddressID *string + AvailablePaymentMethods []PaymentMethodType + BusinessID *string + CurrencyCode CurrencyCode + CustomerID *string + CustomerIPAddress *string + Details PricePreviewDetails + DiscountID *string + type PricePreviewDetails struct + LineItems []PricePreviewLineItem + type PricePreviewDiscounts struct + Discount Discount + FormattedTotal string + Total string + type PricePreviewItem struct + PriceID string + Quantity int + type PricePreviewLineItem struct + Discounts []PricePreviewDiscounts + FormattedTotals Totals + FormattedUnitTotals Totals + Price Price + Product Product + Quantity int + TaxRate string + Totals Totals + UnitTotals Totals + type PriceQuantity struct + Maximum int + Minimum int + type PriceUpdatedEvent struct + Data paddlenotification.PriceNotification + type PricesClient struct + func (c *PricesClient) CreatePrice(ctx context.Context, req *CreatePriceRequest) (res *Price, err error) + func (c *PricesClient) GetPrice(ctx context.Context, req *GetPriceRequest) (res *Price, err error) + func (c *PricesClient) ListPrices(ctx context.Context, req *ListPricesRequest) (res *Collection[*Price], err error) + func (c *PricesClient) UpdatePrice(ctx context.Context, req *UpdatePriceRequest) (res *Price, err error) + type PricingPreviewClient struct + func (c *PricingPreviewClient) PreviewPrices(ctx context.Context, req *PreviewPricesRequest) (res *PricePreview, err error) + type Product struct + CreatedAt string + CustomData CustomData + Description *string + ID string + ImageURL *string + ImportMeta *ImportMeta + Name string + Prices []Price + Status Status + TaxCategory TaxCategory + Type CatalogType + UpdatedAt string + type ProductCreatedEvent struct + Data paddlenotification.ProductNotification + type ProductImportedEvent struct + Data paddlenotification.ProductNotification + type ProductPreview struct + CreatedAt string + CustomData CustomData + Description *string + ID *string + ImageURL *string + ImportMeta *ImportMeta + Name string + Status Status + TaxCategory TaxCategory + Type CatalogType + UpdatedAt string + type ProductPricesReportFilterName string + const ProductPricesReportFilterNamePriceStatus + const ProductPricesReportFilterNamePriceType + const ProductPricesReportFilterNamePriceUpdatedAt + const ProductPricesReportFilterNameProductStatus + const ProductPricesReportFilterNameProductType + const ProductPricesReportFilterNameProductUpdatedAt + type ProductPricesReportFilters struct + Name ProductPricesReportFilterName + Operator *FilterOperator + Value any + type ProductUpdatedEvent struct + Data paddlenotification.ProductNotification + type ProductsAndPricesReport struct + Filters []ProductPricesReportFilters + Type ProductsPricesReportType + type ProductsClient struct + func (c *ProductsClient) CreateProduct(ctx context.Context, req *CreateProductRequest) (res *Product, err error) + func (c *ProductsClient) GetProduct(ctx context.Context, req *GetProductRequest) (res *Product, err error) + func (c *ProductsClient) ListProducts(ctx context.Context, req *ListProductsRequest) (res *Collection[*Product], err error) + func (c *ProductsClient) UpdateProduct(ctx context.Context, req *UpdateProductRequest) (res *Product, err error) + type ProductsPricesReportType string + const ProductsPricesReportTypeProductsPrices + type Proration struct + BillingPeriod TimePeriod + Rate string + type ProrationBillingMode string + const ProrationBillingModeDoNotBill + const ProrationBillingModeFullImmediately + const ProrationBillingModeFullNextBillingPeriod + const ProrationBillingModeProratedImmediately + const ProrationBillingModeProratedNextBillingPeriod + type ReplayNotificationRequest struct + NotificationID string + type ReplaySimulationRunEventRequest struct + SimulationEventID string + SimulationID string + SimulationRunID string + type Report struct + CreatedAt string + ExpiresAt *string + Filters []ReportFilters + ID string + Rows *int + Status ReportStatus + Type ReportType + UpdatedAt string + type ReportCSV struct + URL string + type ReportCreatedEvent struct + Data paddlenotification.ReportNotification + type ReportFilters struct + Name ReportFiltersName + Operator *ReportFiltersOperator + Value any + type ReportFiltersName string + const ReportFiltersNameAction + const ReportFiltersNameCollectionMode + const ReportFiltersNameCurrencyCode + const ReportFiltersNameOrigin + const ReportFiltersNamePriceStatus + const ReportFiltersNamePriceType + const ReportFiltersNamePriceUpdatedAt + const ReportFiltersNameProductStatus + const ReportFiltersNameProductType + const ReportFiltersNameProductUpdatedAt + const ReportFiltersNameStatus + const ReportFiltersNameType + const ReportFiltersNameUpdatedAt + type ReportFiltersOperator string + const ReportFiltersOperatorGte + const ReportFiltersOperatorLt + type ReportStatus string + const ReportStatusExpired + const ReportStatusFailed + const ReportStatusPending + const ReportStatusReady + type ReportType string + const ReportTypeAdjustmentLineItems + const ReportTypeAdjustments + const ReportTypeDiscounts + const ReportTypeProductsPrices + const ReportTypeTransactionLineItems + const ReportTypeTransactions + type ReportUpdatedEvent struct + Data paddlenotification.ReportNotification + type ReportsClient struct + func (c *ReportsClient) CreateReport(ctx context.Context, req *CreateReportRequest) (res *Report, err error) + func (c *ReportsClient) GetReport(ctx context.Context, req *GetReportRequest) (res *Report, err error) + func (c *ReportsClient) GetReportCSV(ctx context.Context, req *GetReportCSVRequest) (res *ReportCSV, err error) + func (c *ReportsClient) ListReports(ctx context.Context, req *ListReportsRequest) (res *Collection[*Report], err error) + type Res struct + func (r *Res[T]) Err() error + func (r *Res[T]) Ok() bool + func (r *Res[T]) Value() T + type ResumeImmediately struct + EffectiveFrom *EffectiveFrom + OnResume SubscriptionOnResume + type ResumeOnASpecificDate struct + EffectiveFrom string + OnResume SubscriptionOnResume + type ResumeSubscriptionRequest struct + SubscriptionID string + func NewResumeSubscriptionRequestResumeImmediately(subscriptionID string, r *ResumeImmediately) *ResumeSubscriptionRequest + func NewResumeSubscriptionRequestResumeOnASpecificDate(subscriptionID string, r *ResumeOnASpecificDate) *ResumeSubscriptionRequest + func (u ResumeSubscriptionRequest) MarshalJSON() ([]byte, error) + type SDK struct + func New(apiKey string, opts ...Option) (*SDK, error) + func NewSandbox(apiKey string, opts ...Option) (*SDK, error) + type SavedPaymentMethodType string + const SavedPaymentMethodTypeAlipay + const SavedPaymentMethodTypeApplePay + const SavedPaymentMethodTypeCard + const SavedPaymentMethodTypeGooglePay + const SavedPaymentMethodTypePaypal + type ScheduledChangeAction string + const ScheduledChangeActionCancel + const ScheduledChangeActionPause + const ScheduledChangeActionResume + type Simulation struct + CreatedAt string + ID string + LastRunAt *string + Name string + NotificationSettingID string + Payload paddlenotification.NotificationPayload + Status Status + Type SimulationTypeName + UpdatedAt string + func (s *Simulation) UnmarshalJSON(data []byte) error + type SimulationEvent struct + CreatedAt string + EventType EventTypeName + ID string + Payload paddlenotification.NotificationPayload + Request *SimulationEventRequest + Response *SimulationEventResponse + Status SimulationEventStatus + UpdatedAt string + func (n *SimulationEvent) UnmarshalJSON(data []byte) error + type SimulationEventRequest struct + Body string + type SimulationEventResponse struct + Body string + StatusCode int + type SimulationEventStatus string + const SimulationEventStatusAborted + const SimulationEventStatusFailed + const SimulationEventStatusPending + const SimulationEventStatusSuccess + type SimulationKind string + const SimulationKindScenario + const SimulationKindSingleEvent + type SimulationRun struct + CreatedAt string + Events []SimulationEvent + ID string + Status SimulationRunStatus + Type SimulationTypeName + UpdatedAt string + type SimulationRunEventsClient struct + func (c *SimulationRunEventsClient) GetSimulationEvent(ctx context.Context, req *GetSimulationEventRequest) (res *SimulationEvent, err error) + func (c *SimulationRunEventsClient) ListSimulationsEvents(ctx context.Context, req *ListSimulationsEventsRequest) (res *Collection[*SimulationEvent], err error) + func (c *SimulationRunEventsClient) ReplaySimulationRunEvent(ctx context.Context, req *ReplaySimulationRunEventRequest) (err error) + type SimulationRunStatus string + const SimulationRunStatusCanceled + const SimulationRunStatusCompleted + const SimulationRunStatusPending + type SimulationRunsClient struct + func (c *SimulationRunsClient) CreateSimulationRun(ctx context.Context, req *CreateSimulationRunRequest) (res *SimulationRun, err error) + func (c *SimulationRunsClient) GetSimulationRun(ctx context.Context, req *GetSimulationRunRequest) (res *SimulationRun, err error) + func (c *SimulationRunsClient) ListSimulationRuns(ctx context.Context, req *ListSimulationRunsRequest) (res *Collection[*SimulationRun], err error) + type SimulationScenarioCreate struct + Name string + NotificationSettingID string + Type SimulationScenarioType + type SimulationScenarioType string + const SimulationScenarioTypeSubscriptionCancellation + const SimulationScenarioTypeSubscriptionCreation + const SimulationScenarioTypeSubscriptionPause + const SimulationScenarioTypeSubscriptionRenewal + const SimulationScenarioTypeSubscriptionResume + type SimulationScenarioUpdate struct + Name string + NotificationSettingID string + Status Status + Type SimulationScenarioType + type SimulationSingleEventCreate struct + Name string + NotificationSettingID string + Payload paddlenotification.NotificationPayload + Type EventTypeName + type SimulationSingleEventUpdate struct + Name string + NotificationSettingID string + Payload paddlenotification.NotificationPayload + Status Status + Type EventTypeName + type SimulationType struct + Description string + Events []EventTypeName + Group string + Label string + Name string + Type SimulationKind + type SimulationTypeName string + const SimulationTypeNameAddressCreated + const SimulationTypeNameAddressImported + const SimulationTypeNameAddressUpdated + const SimulationTypeNameAdjustmentCreated + const SimulationTypeNameAdjustmentUpdated + const SimulationTypeNameBusinessCreated + const SimulationTypeNameBusinessImported + const SimulationTypeNameBusinessUpdated + const SimulationTypeNameCustomerCreated + const SimulationTypeNameCustomerImported + const SimulationTypeNameCustomerUpdated + const SimulationTypeNameDiscountCreated + const SimulationTypeNameDiscountImported + const SimulationTypeNameDiscountUpdated + const SimulationTypeNamePayoutCreated + const SimulationTypeNamePayoutPaid + const SimulationTypeNamePriceCreated + const SimulationTypeNamePriceImported + const SimulationTypeNamePriceUpdated + const SimulationTypeNameProductCreated + const SimulationTypeNameProductImported + const SimulationTypeNameProductUpdated + const SimulationTypeNameReportCreated + const SimulationTypeNameReportUpdated + const SimulationTypeNameSubscriptionActivated + const SimulationTypeNameSubscriptionCanceled + const SimulationTypeNameSubscriptionCancellation + const SimulationTypeNameSubscriptionCreated + const SimulationTypeNameSubscriptionCreation + const SimulationTypeNameSubscriptionImported + const SimulationTypeNameSubscriptionPastDue + const SimulationTypeNameSubscriptionPause + const SimulationTypeNameSubscriptionPaused + const SimulationTypeNameSubscriptionRenewal + const SimulationTypeNameSubscriptionResume + const SimulationTypeNameSubscriptionResumed + const SimulationTypeNameSubscriptionTrialing + const SimulationTypeNameSubscriptionUpdated + const SimulationTypeNameTransactionBilled + const SimulationTypeNameTransactionCanceled + const SimulationTypeNameTransactionCompleted + const SimulationTypeNameTransactionCreated + const SimulationTypeNameTransactionPaid + const SimulationTypeNameTransactionPastDue + const SimulationTypeNameTransactionPaymentFailed + const SimulationTypeNameTransactionReady + const SimulationTypeNameTransactionUpdated + type SimulationTypesClient struct + func (c *SimulationTypesClient) ListSimulationTypes(ctx context.Context, req *ListSimulationTypesRequest) (res *Collection[*SimulationType], err error) + type SimulationsClient struct + func (c *SimulationsClient) CreateSimulation(ctx context.Context, req *CreateSimulationRequest) (res *Simulation, err error) + func (c *SimulationsClient) GetSimulation(ctx context.Context, req *GetSimulationRequest) (res *Simulation, err error) + func (c *SimulationsClient) ListSimulations(ctx context.Context, req *ListSimulationsRequest) (res *Collection[*Simulation], err error) + func (c *SimulationsClient) UpdateSimulation(ctx context.Context, req *UpdateSimulationRequest) (res *Simulation, err error) + type Status string + const StatusActive + const StatusArchived + type Subscription struct + AddressID string + BillingCycle Duration + BillingDetails *BillingDetails + BusinessID *string + CanceledAt *string + CollectionMode CollectionMode + CreatedAt string + CurrencyCode CurrencyCode + CurrentBillingPeriod *TimePeriod + CustomData CustomData + CustomerID string + Discount *SubscriptionDiscountTimePeriod + FirstBilledAt *string + ID string + ImportMeta *ImportMeta + Items []SubscriptionItem + ManagementURLs SubscriptionManagementURLs + NextBilledAt *string + NextTransaction *NextTransaction + PausedAt *string + RecurringTransactionDetails SubscriptionTransactionDetailsPreview + ScheduledChange *SubscriptionScheduledChange + StartedAt *string + Status SubscriptionStatus + UpdatedAt string + type SubscriptionActivatedEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionAdjustmentItem struct + Amount *string + ItemID string + Proration *Proration + Totals AdjustmentItemTotals + Type AdjustmentItemType + type SubscriptionCanceledEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionChargeCreateWithPrice struct + CustomData CustomData + Description string + Name *string + ProductID string + Quantity PriceQuantity + TaxMode TaxMode + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + type SubscriptionChargeCreateWithProduct struct + CustomData CustomData + Description string + Name *string + Product TransactionSubscriptionProductCreate + Quantity PriceQuantity + TaxMode TaxMode + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + type SubscriptionChargeItemCreateWithPrice struct + Price SubscriptionChargeCreateWithPrice + Quantity int + type SubscriptionChargeItemCreateWithProduct struct + Price SubscriptionChargeCreateWithProduct + Quantity int + type SubscriptionChargeItemFromCatalog struct + PriceID string + Quantity int + type SubscriptionCreatedEvent struct + Data paddlenotification.SubscriptionCreatedNotification + type SubscriptionDiscountEffectiveFrom struct + EffectiveFrom EffectiveFrom + ID string + type SubscriptionDiscountTimePeriod struct + EndsAt *string + ID string + StartsAt *string + type SubscriptionImportedEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionItem struct + CreatedAt string + NextBilledAt *string + PreviouslyBilledAt *string + Price Price + Product Product + Quantity int + Recurring bool + Status SubscriptionItemStatus + TrialDates *TimePeriod + UpdatedAt string + type SubscriptionItemStatus string + const SubscriptionItemStatusActive + const SubscriptionItemStatusInactive + const SubscriptionItemStatusTrialing + type SubscriptionManagementURLs struct + Cancel string + UpdatePaymentMethod *string + type SubscriptionOnPaymentFailure string + const SubscriptionOnPaymentFailureApplyChange + const SubscriptionOnPaymentFailurePreventChange + type SubscriptionOnResume string + const SubscriptionOnResumeContinueExistingBillingPeriod + const SubscriptionOnResumeStartNewBillingPeriod + type SubscriptionPastDueEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionPausedEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionPreview struct + AddressID string + BillingCycle Duration + BillingDetails *BillingDetails + BusinessID *string + CanceledAt *string + CollectionMode CollectionMode + CreatedAt string + CurrencyCode CurrencyCode + CurrentBillingPeriod *TimePeriod + CustomData CustomData + CustomerID string + Discount *SubscriptionDiscountTimePeriod + FirstBilledAt *string + ImmediateTransaction *NextTransaction + ImportMeta *ImportMeta + Items []SubscriptionItem + ManagementURLs SubscriptionManagementURLs + NextBilledAt *string + NextTransaction *NextTransaction + PausedAt *string + RecurringTransactionDetails SubscriptionTransactionDetailsPreview + ScheduledChange *SubscriptionScheduledChange + StartedAt *string + Status SubscriptionStatus + UpdateSummary *SubscriptionPreviewUpdateSummary + UpdatedAt string + type SubscriptionPreviewUpdateSummary struct + Charge Money + Credit Money + Result UpdateSummaryResult + type SubscriptionResumedEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionScheduledChange struct + Action ScheduledChangeAction + EffectiveAt string + ResumeAt *string + type SubscriptionStatus string + const SubscriptionStatusActive + const SubscriptionStatusCanceled + const SubscriptionStatusPastDue + const SubscriptionStatusPaused + const SubscriptionStatusTrialing + type SubscriptionTransactionDetailsPreview struct + LineItems []SubscriptionTransactionLineItemPreview + TaxRatesUsed []TaxRatesUsed + Totals TransactionTotals + type SubscriptionTransactionLineItemPreview struct + PriceID *string + Product ProductPreview + Proration Proration + Quantity int + TaxRate string + Totals Totals + UnitTotals Totals + type SubscriptionTrialingEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionUpdateItemCreateWithPrice struct + Price TransactionPriceCreateWithProductID + Quantity int + type SubscriptionUpdateItemCreateWithProduct struct + Price TransactionPriceCreateWithProduct + Quantity int + type SubscriptionUpdateItemFromCatalog struct + PriceID string + Quantity int + type SubscriptionUpdatedEvent struct + Data paddlenotification.SubscriptionNotification + type SubscriptionsClient struct + func (c *SubscriptionsClient) ActivateSubscription(ctx context.Context, req *ActivateSubscriptionRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) CancelSubscription(ctx context.Context, req *CancelSubscriptionRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) CreateSubscriptionCharge(ctx context.Context, req *CreateSubscriptionChargeRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) GetSubscription(ctx context.Context, req *GetSubscriptionRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) GetSubscriptionUpdatePaymentMethodTransaction(ctx context.Context, req *GetSubscriptionUpdatePaymentMethodTransactionRequest) (res *Transaction, err error) + func (c *SubscriptionsClient) ListSubscriptions(ctx context.Context, req *ListSubscriptionsRequest) (res *Collection[*Subscription], err error) + func (c *SubscriptionsClient) PauseSubscription(ctx context.Context, req *PauseSubscriptionRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) PreviewSubscriptionCharge(ctx context.Context, req *PreviewSubscriptionChargeRequest) (res *SubscriptionPreview, err error) + func (c *SubscriptionsClient) PreviewSubscriptionUpdate(ctx context.Context, req *PreviewSubscriptionUpdateRequest) (res *SubscriptionPreview, err error) + func (c *SubscriptionsClient) ResumeSubscription(ctx context.Context, req *ResumeSubscriptionRequest) (res *Subscription, err error) + func (c *SubscriptionsClient) UpdateSubscription(ctx context.Context, req *UpdateSubscriptionRequest) (res *Subscription, err error) + type TaxCategory string + const TaxCategoryDigitalGoods + const TaxCategoryEbooks + const TaxCategoryImplementationServices + const TaxCategoryProfessionalServices + const TaxCategorySaas + const TaxCategorySoftwareProgrammingServices + const TaxCategoryStandard + const TaxCategoryTrainingServices + const TaxCategoryWebsiteHosting + type TaxMode string + const TaxModeAccountSetting + const TaxModeExternal + const TaxModeInternal + type TaxRatesUsed struct + TaxRate string + Totals Totals + type TimePeriod struct + EndsAt string + StartsAt string + type Totals struct + Discount string + Subtotal string + Tax string + Total string + type TrafficSource string + const TrafficSourceAll + const TrafficSourcePlatform + const TrafficSourceSimulation + type Transaction struct + Address Address + AddressID *string + Adjustments []Adjustment + AdjustmentsTotals TransactionAdjustmentTotals + AvailablePaymentMethods []PaymentMethodType + BilledAt *string + BillingDetails *BillingDetails + BillingPeriod *TimePeriod + Business Business + BusinessID *string + Checkout *TransactionCheckout + CollectionMode CollectionMode + CreatedAt string + CurrencyCode CurrencyCode + CustomData CustomData + Customer Customer + CustomerID *string + Details TransactionDetails + Discount Discount + DiscountID *string + ID string + InvoiceID *string + InvoiceNumber *string + Items []TransactionItem + Origin TransactionOrigin + Payments []TransactionPaymentAttempt + Status TransactionStatus + SubscriptionID *string + UpdatedAt string + type TransactionAdjustmentTotals struct + Breakdown AdjustmentTotalsBreakdown + CurrencyCode CurrencyCode + Earnings string + Fee string + Subtotal string + Tax string + Total string + type TransactionBilledEvent struct + Data paddlenotification.TransactionNotification + type TransactionCanceledEvent struct + Data paddlenotification.TransactionNotification + type TransactionCheckout struct + URL *string + type TransactionCompletedEvent struct + Data paddlenotification.TransactionNotification + type TransactionCreatedEvent struct + Data paddlenotification.TransactionNotification + type TransactionDetails struct + AdjustedPayoutTotals *TransactionPayoutTotalsAdjusted + AdjustedTotals TransactionTotalsAdjusted + LineItems []TransactionLineItem + PayoutTotals *TransactionPayoutTotals + TaxRatesUsed []TaxRatesUsed + Totals TransactionTotals + type TransactionDetailsPreview struct + LineItems []TransactionLineItemPreview + TaxRatesUsed []TaxRatesUsed + Totals TransactionTotals + type TransactionInvoicePDF struct + URL string + type TransactionItem struct + Price Price + PriceID string + Proration *Proration + Quantity int + type TransactionItemCreateWithPrice struct + Price TransactionPriceCreateWithProductID + Proration *Proration + Quantity int + type TransactionItemCreateWithProduct struct + Price TransactionPriceCreateWithProduct + Proration *Proration + Quantity int + type TransactionItemFromCatalog struct + PriceID string + Proration *Proration + Quantity int + type TransactionItemPreview struct + IncludeInTotals bool + Price TransactionPricePreview + Proration *Proration + Quantity int + type TransactionLineItem struct + ID string + PriceID string + Product Product + Proration *Proration + Quantity int + TaxRate string + Totals Totals + UnitTotals Totals + type TransactionLineItemPreview struct + PriceID *string + Product ProductPreview + Quantity int + TaxRate string + Totals Totals + UnitTotals Totals + type TransactionOrigin string + const TransactionOriginAPI + const TransactionOriginSubscriptionCharge + const TransactionOriginSubscriptionPaymentMethodChange + const TransactionOriginSubscriptionRecurring + const TransactionOriginSubscriptionUpdate + const TransactionOriginWeb + type TransactionPaidEvent struct + Data paddlenotification.TransactionNotification + type TransactionPastDueEvent struct + Data paddlenotification.TransactionNotification + type TransactionPaymentAttempt struct + Amount string + CapturedAt *string + CreatedAt string + ErrorCode *ErrorCode + MethodDetails MethodDetails + PaymentAttemptID string + PaymentMethodID *string + Status PaymentAttemptStatus + StoredPaymentMethodID string + type TransactionPaymentFailedEvent struct + Data paddlenotification.TransactionNotification + type TransactionPayoutTotals struct + Balance string + Credit string + CreditToBalance string + CurrencyCode CurrencyCodePayouts + Discount string + Earnings string + Fee string + GrandTotal string + Subtotal string + Tax string + Total string + type TransactionPayoutTotalsAdjusted struct + ChargebackFee ChargebackFee + CurrencyCode CurrencyCodePayouts + Earnings string + Fee string + Subtotal string + Tax string + Total string + type TransactionPreview struct + Address *AddressPreview + AddressID *string + AvailablePaymentMethods []PaymentMethodType + BusinessID *string + CurrencyCode CurrencyCode + CustomerID *string + CustomerIPAddress *string + Details TransactionDetailsPreview + DiscountID *string + IgnoreTrials bool + Items []TransactionItemPreview + type TransactionPreviewByAddress struct + Address AddressPreview + CurrencyCode CurrencyCode + CustomerID *string + DiscountID *string + IgnoreTrials bool + Items []TransactionPreviewByAddressItems + type TransactionPreviewByAddressItems struct + func NewTransactionPreviewByAddressItemsTransactionPreviewItemCreateWithPrice(r *TransactionPreviewItemCreateWithPrice) *TransactionPreviewByAddressItems + func NewTransactionPreviewByAddressItemsTransactionPreviewItemCreateWithProduct(r *TransactionPreviewItemCreateWithProduct) *TransactionPreviewByAddressItems + func NewTransactionPreviewByAddressItemsTransactionPreviewItemFromCatalog(r *TransactionPreviewItemFromCatalog) *TransactionPreviewByAddressItems + func (u TransactionPreviewByAddressItems) MarshalJSON() ([]byte, error) + type TransactionPreviewByCustomer struct + AddressID string + BusinessID *string + CurrencyCode CurrencyCode + CustomerID *string + DiscountID *string + IgnoreTrials bool + Items []TransactionPreviewByCustomerItems + type TransactionPreviewByCustomerItems struct + func NewTransactionPreviewByCustomerItemsTransactionPreviewItemCreateWithPrice(r *TransactionPreviewItemCreateWithPrice) *TransactionPreviewByCustomerItems + func NewTransactionPreviewByCustomerItemsTransactionPreviewItemCreateWithProduct(r *TransactionPreviewItemCreateWithProduct) *TransactionPreviewByCustomerItems + func NewTransactionPreviewByCustomerItemsTransactionPreviewItemFromCatalog(r *TransactionPreviewItemFromCatalog) *TransactionPreviewByCustomerItems + func (u TransactionPreviewByCustomerItems) MarshalJSON() ([]byte, error) + type TransactionPreviewByIP struct + CurrencyCode CurrencyCode + CustomerID *string + CustomerIPAddress string + DiscountID *string + IgnoreTrials bool + Items []TransactionPreviewByIPItems + type TransactionPreviewByIPItems struct + func NewTransactionPreviewByIPItemsTransactionPreviewItemCreateWithPrice(r *TransactionPreviewItemCreateWithPrice) *TransactionPreviewByIPItems + func NewTransactionPreviewByIPItemsTransactionPreviewItemCreateWithProduct(r *TransactionPreviewItemCreateWithProduct) *TransactionPreviewByIPItems + func NewTransactionPreviewByIPItemsTransactionPreviewItemFromCatalog(r *TransactionPreviewItemFromCatalog) *TransactionPreviewByIPItems + func (u TransactionPreviewByIPItems) MarshalJSON() ([]byte, error) + type TransactionPreviewItemCreateWithPrice struct + IncludeInTotals bool + Price TransactionPriceCreateWithProductID + Proration *Proration + Quantity int + type TransactionPreviewItemCreateWithProduct struct + IncludeInTotals bool + Price TransactionPriceCreateWithProduct + Proration *Proration + Quantity int + type TransactionPreviewItemFromCatalog struct + IncludeInTotals bool + PriceID string + Proration *Proration + Quantity int + type TransactionPriceCreateWithProduct struct + BillingCycle *Duration + CustomData CustomData + Description string + Name *string + Product TransactionSubscriptionProductCreate + Quantity PriceQuantity + TaxMode TaxMode + TrialPeriod *Duration + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + type TransactionPriceCreateWithProductID struct + BillingCycle *Duration + CustomData CustomData + Description string + Name *string + ProductID string + Quantity PriceQuantity + TaxMode TaxMode + TrialPeriod *Duration + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + type TransactionPricePreview struct + BillingCycle *Duration + CreatedAt string + CustomData CustomData + Description string + ID *string + ImportMeta *ImportMeta + Name *string + ProductID *string + Quantity PriceQuantity + Status Status + TaxMode TaxMode + TrialPeriod *Duration + Type CatalogType + UnitPrice Money + UnitPriceOverrides []UnitPriceOverride + UpdatedAt string + type TransactionReadyEvent struct + Data paddlenotification.TransactionNotification + type TransactionStatus string + const TransactionStatusBilled + const TransactionStatusCanceled + const TransactionStatusCompleted + const TransactionStatusDraft + const TransactionStatusPaid + const TransactionStatusPastDue + const TransactionStatusReady + type TransactionSubscriptionProductCreate struct + CustomData CustomData + Description *string + ImageURL *string + Name string + TaxCategory TaxCategory + type TransactionTotals struct + Balance string + Credit string + CreditToBalance string + CurrencyCode CurrencyCode + Discount string + Earnings *string + Fee *string + GrandTotal string + Subtotal string + Tax string + Total string + type TransactionTotalsAdjusted struct + CurrencyCode CurrencyCode + Earnings *string + Fee *string + GrandTotal string + Subtotal string + Tax string + Total string + type TransactionUpdatedEvent struct + Data paddlenotification.TransactionNotification + type TransactionsClient struct + func (c *TransactionsClient) CreateTransaction(ctx context.Context, req *CreateTransactionRequest) (res *Transaction, err error) + func (c *TransactionsClient) GetTransaction(ctx context.Context, req *GetTransactionRequest) (res *Transaction, err error) + func (c *TransactionsClient) GetTransactionInvoice(ctx context.Context, req *GetTransactionInvoiceRequest) (res *TransactionInvoicePDF, err error) + func (c *TransactionsClient) ListTransactions(ctx context.Context, req *ListTransactionsRequest) (res *Collection[*Transaction], err error) + func (c *TransactionsClient) PreviewTransactionCreate(ctx context.Context, req *PreviewTransactionCreateRequest) (res *TransactionPreview, err error) + func (c *TransactionsClient) UpdateTransaction(ctx context.Context, req *UpdateTransactionRequest) (res *Transaction, err error) + type TransactionsReportFilterName string + const TransactionsReportFilterNameCollectionMode + const TransactionsReportFilterNameCurrencyCode + const TransactionsReportFilterNameOrigin + const TransactionsReportFilterNameStatus + const TransactionsReportFilterNameUpdatedAt + type TransactionsReportFilters struct + Name TransactionsReportFilterName + Operator *FilterOperator + Value any + type TransactionsReportType string + const TransactionsReportTypeTransactionLineItems + const TransactionsReportTypeTransactions + type TransactionsReports struct + Filters []TransactionsReportFilters + Type TransactionsReportType + type UnitPriceOverride struct + CountryCodes []CountryCode + UnitPrice Money + type UpdateAddressRequest struct + AddressID string + City *PatchField[*string] + CountryCode *PatchField[CountryCode] + CustomData *PatchField[CustomData] + CustomerID string + Description *PatchField[*string] + FirstLine *PatchField[*string] + PostalCode *PatchField[*string] + Region *PatchField[*string] + SecondLine *PatchField[*string] + Status *PatchField[Status] + type UpdateBusinessRequest struct + BusinessID string + CompanyNumber *PatchField[*string] + Contacts *PatchField[[]BusinessContacts] + CustomData *PatchField[CustomData] + CustomerID string + Name *PatchField[string] + Status *PatchField[Status] + TaxIdentifier *PatchField[*string] + type UpdateCustomerRequest struct + CustomData *PatchField[CustomData] + CustomerID string + Email *PatchField[string] + Locale *PatchField[string] + Name *PatchField[*string] + Status *PatchField[Status] + type UpdateDiscountRequest struct + Amount *PatchField[string] + Code *PatchField[*string] + CurrencyCode *PatchField[*CurrencyCode] + CustomData *PatchField[CustomData] + Description *PatchField[string] + DiscountID string + EnabledForCheckout *PatchField[bool] + ExpiresAt *PatchField[*string] + MaximumRecurringIntervals *PatchField[*int] + Recur *PatchField[bool] + RestrictTo *PatchField[[]string] + Status *PatchField[DiscountStatus] + Type *PatchField[DiscountType] + UsageLimit *PatchField[*int] + type UpdateNotificationSettingRequest struct + APIVersion *PatchField[int] + Active *PatchField[bool] + Description *PatchField[string] + Destination *PatchField[string] + IncludeSensitiveFields *PatchField[bool] + NotificationSettingID string + SubscribedEvents *PatchField[[]EventTypeName] + TrafficSource *PatchField[TrafficSource] + type UpdatePriceRequest struct + BillingCycle *PatchField[*Duration] + CustomData *PatchField[CustomData] + Description *PatchField[string] + Name *PatchField[*string] + PriceID string + Quantity *PatchField[PriceQuantity] + Status *PatchField[Status] + TaxMode *PatchField[TaxMode] + TrialPeriod *PatchField[*Duration] + Type *PatchField[CatalogType] + UnitPrice *PatchField[Money] + UnitPriceOverrides *PatchField[[]UnitPriceOverride] + type UpdateProductRequest struct + CustomData *PatchField[CustomData] + Description *PatchField[*string] + ImageURL *PatchField[*string] + Name *PatchField[string] + ProductID string + Status *PatchField[Status] + TaxCategory *PatchField[TaxCategory] + Type *PatchField[CatalogType] + type UpdateSimulationRequest struct + SimulationID string + func NewUpdateSimulationRequestSimulationScenarioUpdate(simulationID string, r *SimulationScenarioUpdate) *UpdateSimulationRequest + func NewUpdateSimulationRequestSimulationSingleEventUpdate(simulationID string, r *SimulationSingleEventUpdate) *UpdateSimulationRequest + func (u UpdateSimulationRequest) MarshalJSON() ([]byte, error) + type UpdateSubscriptionItems struct + func NewUpdateSubscriptionItemsSubscriptionUpdateItemCreateWithPrice(r *SubscriptionUpdateItemCreateWithPrice) *UpdateSubscriptionItems + func NewUpdateSubscriptionItemsSubscriptionUpdateItemCreateWithProduct(r *SubscriptionUpdateItemCreateWithProduct) *UpdateSubscriptionItems + func NewUpdateSubscriptionItemsSubscriptionUpdateItemFromCatalog(r *SubscriptionUpdateItemFromCatalog) *UpdateSubscriptionItems + func (u UpdateSubscriptionItems) MarshalJSON() ([]byte, error) + type UpdateSubscriptionRequest struct + AddressID *PatchField[string] + BillingDetails *PatchField[*BillingDetailsUpdate] + BusinessID *PatchField[*string] + CollectionMode *PatchField[CollectionMode] + CurrencyCode *PatchField[CurrencyCode] + CustomData *PatchField[CustomData] + CustomerID *PatchField[string] + Discount *PatchField[*SubscriptionDiscountEffectiveFrom] + Items *PatchField[[]UpdateSubscriptionItems] + NextBilledAt *PatchField[string] + OnPaymentFailure *PatchField[SubscriptionOnPaymentFailure] + ProrationBillingMode *PatchField[ProrationBillingMode] + ScheduledChange *PatchField[*SubscriptionScheduledChange] + SubscriptionID string + type UpdateSummaryResult struct + Action UpdateSummaryResultAction + Amount string + CurrencyCode CurrencyCode + type UpdateSummaryResultAction string + const UpdateSummaryResultActionCharge + const UpdateSummaryResultActionCredit + type UpdateTransactionItems struct + func NewUpdateTransactionItemsTransactionItemCreateWithPrice(r *TransactionItemCreateWithPrice) *UpdateTransactionItems + func NewUpdateTransactionItemsTransactionItemCreateWithProduct(r *TransactionItemCreateWithProduct) *UpdateTransactionItems + func NewUpdateTransactionItemsTransactionItemFromCatalog(r *TransactionItemFromCatalog) *UpdateTransactionItems + func (u UpdateTransactionItems) MarshalJSON() ([]byte, error) + type UpdateTransactionRequest struct + AddressID *PatchField[*string] + BillingDetails *PatchField[*BillingDetailsUpdate] + BillingPeriod *PatchField[*TimePeriod] + BusinessID *PatchField[*string] + Checkout *PatchField[*TransactionCheckout] + CollectionMode *PatchField[CollectionMode] + CurrencyCode *PatchField[CurrencyCode] + CustomData *PatchField[CustomData] + CustomerID *PatchField[*string] + DiscountID *PatchField[*string] + IncludeAddress bool + IncludeAdjustments bool + IncludeAdjustmentsTotals bool + IncludeAvailablePaymentMethods bool + IncludeBusiness bool + IncludeCustomer bool + IncludeDiscount bool + Items *PatchField[[]UpdateTransactionItems] + Status *PatchField[TransactionStatus] + TransactionID string + type WebhookVerifier struct + func NewWebhookVerifier(secretKey string) *WebhookVerifier + func (wv *WebhookVerifier) Middleware(next http.Handler) http.Handler + func (wv *WebhookVerifier) Verify(req *http.Request) (bool, error) Other modules containing this package github.com/PaddleHQ/paddle-go-sdk github.com/PaddleHQ/paddle-go-sdk/v2