Versions in this module Expand all Collapse all v0 v0.0.1 Jun 18, 2023 Changes in this version + const APIBaseLive + const APIBaseSandBox + const AddrOverrideFromCall + const AddrOverrideFromFile + const AllowedPaymentImmediatePay + const AllowedPaymentInstantFundingSource + const AllowedPaymentUnrestricted + const AncorTypeAccount + const AncorTypeApplication + const BatchStatusCanceled + const BatchStatusDenied + const BatchStatusPending + const BatchStatusProcessing + const BatchStatusSuccess + const ConsentShareData + const EmailRecipientType + const EventCheckoutOrderApproved + const EventMerchantOnboardingCompleted + const EventMerchantPartnerConsentRevoked + const EventPaymentCaptureCompleted + const EventPaymentCaptureDenied + const EventPaymentCaptureRefunded + const FeatureDelayFunds + const FeatureDirectPayment + const FeatureDisputeReadBuyer + const FeatureFuturePayment + const FeaturePartnerFee + const FeaturePayment + const FeatureReadSellerDispute + const FeatureRefund + const FeatureUpdateCustomerDispute + const FeatureUpdateSellerDispute + const IntegrationMethodPayPal + const IntegrationTypeThirdParty + const ItemCategoryDigitalGood + const ItemCategoryPhysicalGood + const LandingPageTypeBilling + const LandingPageTypeLogin + const LinkRelActionURL + const LinkRelSelf + const NoShippingBuyerAccount + const NoShippingDisplay + const NoShippingHide + const OperationAPIIntegration + const OrderIntentAuthorize + const OrderIntentCapture + const OrderStatusApproved + const OrderStatusCompleted + const OrderStatusCreated + const OrderStatusSaved + const OrderStatusVoided + const PaypalIdRecipientType + const PaypalRecipientWallet + const PhoneRecipientType + const ProductCategorySoftware + const ProductCategorySoftwareComputerAndDataProcessingServices + const ProductCategorySoftwareDigitalGames + const ProductCategorySoftwareGameSoftware + const ProductCategorySoftwareGames + const ProductCategorySoftwareGeneral + const ProductCategorySoftwareGraphicAndCommercialDesign + const ProductCategorySoftwareOemSoftware + const ProductCategorySoftwareOnlineGaming + const ProductCategorySoftwareOnlineGamingCurrency + const ProductCategorySoftwareOnlineServices + const ProductCategorySoftwareOther + const ProductCategorySoftwareServices + const ProductExpressCheckout + const ProductTypeDigital + const ProductTypePhysical + const ProductTypeService + const RequestNewTokenBeforeExpiresIn + const VenmoRecipientWallet + type Address struct + City string + CountryCode string + Line1 string + Line2 string + Phone string + PostalCode string + State string + type AggregatedDiscount struct + InvoiceDiscount InvoicingDiscount + ItemDiscount *Money + type AgreementDetails struct + CyclesCompleted int + CyclesRemaining int + FailedPaymentCount int + FinalPaymentDate time.Time + LastPaymentAmount AmountPayout + LastPaymentDate time.Time + NextBillingDate time.Time + OutstandingBalance AmountPayout + type Amount struct + Currency string + Details Details + Total string + type AmountPayout struct + Currency string + Value string + type AmountSummaryDetail struct + Breakdown InvoiceAmountWithBreakdown + Currency string + Value string + type AmountWithBreakdown struct + FeeAmount Money + GrossAmount Money + NetAmount Money + ShippingAmount Money + TaxAmount Money + type AnyEvent struct + Resource json.RawMessage + type ApplicationContext struct + BrandName string + CancelURL string + LandingPage string + Locale string + PaymentMethod PaymentMethod + ReturnURL string + ShippingPreference ShippingPreference + UserAction UserAction + type Authorization struct + Amount *PurchaseUnitAmount + CreateTime *time.Time + CustomID string + ExpirationTime *time.Time + ID string + InvoiceID string + Links []Link + SellerProtection *SellerProtection + Status string + StatusDetails *CaptureStatusDetails + UpdateTime *time.Time + type AuthorizeOrderRequest struct + ApplicationContext ApplicationContext + PaymentSource *PaymentSource + type AuthorizeOrderResponse struct + CreateTime *time.Time + ID string + Intent string + Payer *PayerWithNameAndPhone + PurchaseUnits []PurchaseUnitRequest + Status string + UpdateTime *time.Time + type BatchHeader struct + Amount *AmountPayout + BatchStatus string + Fees *AmountPayout + PayoutBatchID string + SenderBatchHeader *SenderBatchHeader + TimeCompleted *time.Time + TimeCreated *time.Time + type BillingAgreement struct + Description string + Name string + OverrideMerchantPreferences *MerchantPreferences + Payer Payer + Plan BillingPlan + ShippingAddress *ShippingAddress + StartDate JSONTime + type BillingAgreementFromToken struct + Description string + ID string + Links []Link + Payer *Payer + Plan BillingPlan + type BillingAgreementToken struct + Links []Link + TokenID string + type BillingCycle struct + Frequency Frequency + PricingScheme PricingScheme + Sequence int + TenureType TenureType + TotalCycles int + type BillingCycleOverride struct + PricingScheme PricingScheme + Sequence *int + TotalCycles *int + type BillingInfo struct + CycleExecutions []CycleExecutions + FailedPaymentsCount int + LastPayment LastPayment + NextBillingTime time.Time + OutstandingBalance AmountPayout + type BillingPlan struct + Description string + ID string + MerchantPreferences *MerchantPreferences + Name string + PaymentDefinitions []PaymentDefinition + Type string + type BillingPlanListParams struct + Status string + type BillingPlanListResp = BillingPlanListResponse + type BillingPlanListResponse struct + Plans []BillingPlan + type BillingPlanStatus string + const BillingPlanStatusActive + type Capture struct + Amount *Amount + CreateTime *time.Time + ID string + IsFinalCapture bool + Links []Link + ParentPayment string + State string + TransactionFee string + UpdateTime *time.Time + type CaptureAmount struct + Amount *PurchaseUnitAmount + CustomID string + ID string + SellerProtection *SellerProtection + SellerReceivableBreakdown *SellerReceivableBreakdown + Status string + type CaptureDetailsResponse struct + Amount *Money + CreateTime *time.Time + CustomID string + DisbursementMode string + FinalCapture bool + ID string + InvoiceID string + Links []Link + SellerProtection *SellerProtection + SellerReceivableBreakdown *SellerReceivableBreakdown + Status string + StatusDetails *CaptureStatusDetails + UpdateTime *time.Time + type CaptureOrderMockResponse struct + MockApplicationCodes string + type CaptureOrderRequest struct + PaymentSource *PaymentSource + type CaptureOrderResponse struct + Address *Address + ID string + Payer *PayerWithNameAndPhone + PurchaseUnits []CapturedPurchaseUnit + Status string + type CaptureRequest struct + Amount Money + CaptureType CaptureType + Note string + type CaptureSellerBreakdown struct + GrossAmount PurchaseUnitAmount + NetAmount PurchaseUnitAmount + PayPalFee PurchaseUnitAmount + TotalRefundedAmount *PurchaseUnitAmount + type CaptureStatusDetails struct + Reason string + type CaptureType string + const CaptureTypeOutstandingBalance + type CapturedPayments struct + Captures []CaptureAmount + type CapturedPurchaseItem struct + Description string + Name string + Quantity string + SKU string + type CapturedPurchaseUnit struct + Items []CapturedPurchaseItem + Payments *CapturedPayments + ReferenceID string + Shipping CapturedPurchaseUnitShipping + type CapturedPurchaseUnitShipping struct + Address ShippingDetailAddressPortable + type CardBillingAddress struct + AddressLine1 string + AddressLine2 string + AdminArea1 string + AdminArea2 string + CountryCode string + PostalCode string + type ChargeModel struct + Amount AmountPayout + Type string + type Client struct + APIBase string + Client *http.Client + ClientID string + GlobalHeaders []KV + Log io.Writer + Secret string + Token *TokenResponse + func NewClient(clientID string, secret string, APIBase string) (*Client, error) + func (c *Client) ActivatePlan(ctx context.Context, planID string) error + func (c *Client) ActivateSubscription(ctx context.Context, subscriptionId, activateReason string) error + func (c *Client) ActivateSubscriptionPlan(ctx context.Context, planId string) error + func (c *Client) AuthorizeOrder(ctx context.Context, orderID string, ...) (*AuthorizeOrderResponse, error) + func (c *Client) CancelBillingAgreement(ctx context.Context, billingAgreementID string) error + func (c *Client) CancelPayoutItem(ctx context.Context, payoutItemID string) (*PayoutItemResponse, error) + func (c *Client) CancelSubscription(ctx context.Context, subscriptionId, cancelReason string) error + func (c *Client) CaptureAuthorization(ctx context.Context, authID string, ...) (*PaymentCaptureResponse, error) + func (c *Client) CaptureAuthorizationWithPaypalRequestId(ctx context.Context, authID string, ...) (*PaymentCaptureResponse, error) + func (c *Client) CaptureOrder(ctx context.Context, orderID string, captureOrderRequest CaptureOrderRequest) (*CaptureOrderResponse, error) + func (c *Client) CaptureOrderWithPaypalRequestId(ctx context.Context, orderID string, captureOrderRequest CaptureOrderRequest, ...) (*CaptureOrderResponse, error) + func (c *Client) CaptureSubscription(ctx context.Context, subscriptionId string, request CaptureRequest) (*SubscriptionCaptureResponse, error) + func (c *Client) CapturedDetail(ctx context.Context, captureID string) (*CaptureDetailsResponse, error) + func (c *Client) CreateBillingAgreement(ctx context.Context, a BillingAgreement) (*CreateAgreementResponse, error) + func (c *Client) CreateBillingAgreementFromToken(ctx context.Context, tokenID string) (*BillingAgreementFromToken, error) + func (c *Client) CreateBillingAgreementToken(ctx context.Context, description *string, shippingAddress *ShippingAddress, ...) (*BillingAgreementToken, error) + func (c *Client) CreateBillingPlan(ctx context.Context, plan BillingPlan) (*CreateBillingResponse, error) + func (c *Client) CreateOrder(ctx context.Context, intent string, purchaseUnits []PurchaseUnitRequest, ...) (*Order, error) + func (c *Client) CreateOrderWithPaypalRequestID(ctx context.Context, intent string, purchaseUnits []PurchaseUnitRequest, ...) (*Order, error) + func (c *Client) CreatePayout(ctx context.Context, p Payout) (*PayoutResponse, error) + func (c *Client) CreatePaypalBillingAgreementFromToken(ctx context.Context, tokenID string) (*BillingAgreementFromToken, error) + func (c *Client) CreatePaypalBillingAgreementToken(ctx context.Context, description *string, shippingAddress *ShippingAddress, ...) (*BillingAgreementToken, error) + func (c *Client) CreateProduct(ctx context.Context, product Product) (*CreateProductResponse, error) + func (c *Client) CreateSinglePayout(ctx context.Context, p Payout) (*PayoutResponse, error) + func (c *Client) CreateSubscription(ctx context.Context, newSubscription SubscriptionBase) (*SubscriptionDetailResp, error) + func (c *Client) CreateSubscriptionPlan(ctx context.Context, newPlan SubscriptionPlan) (*CreateSubscriptionPlanResponse, error) + func (c *Client) CreateWebProfile(ctx context.Context, wp WebProfile) (*WebProfile, error) + func (c *Client) CreateWebhook(ctx context.Context, createWebhookRequest *CreateWebhookRequest) (*Webhook, error) + func (c *Client) DeactivateSubscriptionPlans(ctx context.Context, planId string) error + func (c *Client) DeleteCreditCard(ctx context.Context, id string) error + func (c *Client) DeleteWebProfile(ctx context.Context, profileID string) error + func (c *Client) DeleteWebhook(ctx context.Context, webhookID string) error + func (c *Client) ExecuteApprovedAgreement(ctx context.Context, token string) (*ExecuteAgreementResponse, error) + func (c *Client) GenerateInvoiceNumber(ctx context.Context) (*InvoiceNumber, error) + func (c *Client) GetAccessToken(ctx context.Context) (*TokenResponse, error) + func (c *Client) GetAuthorization(ctx context.Context, authID string) (*Authorization, error) + func (c *Client) GetCapturedPaymentDetails(ctx context.Context, id string) (*Capture, error) + func (c *Client) GetCreditCard(ctx context.Context, id string) (*CreditCard, error) + func (c *Client) GetCreditCards(ctx context.Context, ccf *CreditCardsFilter) (*CreditCards, error) + func (c *Client) GetInvoiceDetails(ctx context.Context, invoiceID string) (*Invoice, error) + func (c *Client) GetOrder(ctx context.Context, orderID string) (*Order, error) + func (c *Client) GetPayout(ctx context.Context, payoutBatchID string) (*PayoutResponse, error) + func (c *Client) GetPayoutItem(ctx context.Context, payoutItemID string) (*PayoutItemResponse, error) + func (c *Client) GetProduct(ctx context.Context, productId string) (*Product, error) + func (c *Client) GetRefund(ctx context.Context, refundID string) (*Refund, error) + func (c *Client) GetSale(ctx context.Context, saleID string) (*Sale, error) + func (c *Client) GetSubscriptionDetails(ctx context.Context, subscriptionID string) (*SubscriptionDetailResp, error) + func (c *Client) GetSubscriptionPlan(ctx context.Context, planId string) (*SubscriptionPlan, error) + func (c *Client) GetSubscriptionTransactions(ctx context.Context, requestParams SubscriptionTransactionsParams) (*SubscriptionTransactionsResponse, error) + func (c *Client) GetUserInfo(ctx context.Context, schema string) (*UserInfo, error) + func (c *Client) GetWebProfile(ctx context.Context, profileID string) (*WebProfile, error) + func (c *Client) GetWebProfiles(ctx context.Context) ([]WebProfile, error) + func (c *Client) GetWebhook(ctx context.Context, webhookID string) (*Webhook, error) + func (c *Client) GetWebhookEventTypes(ctx context.Context) (*WebhookEventTypesResponse, error) + func (c *Client) GrantNewAccessTokenFromAuthCode(ctx context.Context, code, redirectURI string) (*TokenResponse, error) + func (c *Client) GrantNewAccessTokenFromRefreshToken(ctx context.Context, refreshToken string) (*TokenResponse, error) + func (c *Client) ListBillingPlans(ctx context.Context, bplp BillingPlanListParams) (*BillingPlanListResponse, error) + func (c *Client) ListProducts(ctx context.Context, params *ProductListParameters) (*ListProductsResponse, error) + func (c *Client) ListSubscriptionPlans(ctx context.Context, params *SubscriptionPlanListParameters) (*ListSubscriptionPlansResponse, error) + func (c *Client) ListTransactions(ctx context.Context, req *TransactionSearchRequest) (*TransactionSearchResponse, error) + func (c *Client) ListWebhooks(ctx context.Context, anchorType string) (*ListWebhookResponse, error) + func (c *Client) NewRequest(ctx context.Context, method, url string, payload interface{}) (*http.Request, error) + func (c *Client) PatchCreditCard(ctx context.Context, id string, ccf []CreditCardField) (*CreditCard, error) + func (c *Client) ReauthorizeAuthorization(ctx context.Context, authID string, a *Amount) (*Authorization, error) + func (c *Client) RefundCapture(ctx context.Context, captureID string, ...) (*RefundResponse, error) + func (c *Client) RefundCaptureWithPaypalRequestId(ctx context.Context, captureID string, ...) (*RefundResponse, error) + func (c *Client) RefundSale(ctx context.Context, saleID string, a *Amount) (*Refund, error) + func (c *Client) ReviseSubscription(ctx context.Context, subscriptionId string, ...) (*SubscriptionDetailResp, error) + func (c *Client) Send(req *http.Request, v interface{}) error + func (c *Client) SendWithAuth(req *http.Request, v interface{}) error + func (c *Client) SendWithBasicAuth(req *http.Request, v interface{}) error + func (c *Client) SetAccessToken(token string) + func (c *Client) SetHTTPClient(client *http.Client) + func (c *Client) SetLog(log io.Writer) + func (c *Client) SetReturnRepresentation() + func (c *Client) SetWebProfile(ctx context.Context, wp WebProfile) error + func (c *Client) StoreCreditCard(ctx context.Context, cc CreditCard) (*CreditCard, error) + func (c *Client) SuspendSubscription(ctx context.Context, subscriptionId, reason string) error + func (c *Client) UpdateBillingPlan(ctx context.Context, planId string, ...) error + func (c *Client) UpdateOrder(ctx context.Context, orderID string, op string, path string, ...) error + func (c *Client) UpdateProduct(ctx context.Context, product Product) error + func (c *Client) UpdateSubscription(ctx context.Context, updatedSubscription Subscription) error + func (c *Client) UpdateSubscriptionPlan(ctx context.Context, updatedPlan SubscriptionPlan) error + func (c *Client) UpdateSubscriptionPlanPricing(ctx context.Context, planId string, pricingSchemes []PricingSchemeUpdate) error + func (c *Client) UpdateWebhook(ctx context.Context, webhookID string, fields []WebhookField) (*Webhook, error) + func (c *Client) VerifyWebhookSignature(ctx context.Context, httpReq *http.Request, webhookID string) (*VerifyWebhookResponse, error) + func (c *Client) VoidAuthorization(ctx context.Context, authID string) (*Authorization, error) + type Consent struct + Granted bool + Type string + type CreateAgreementResp = CreateAgreementResponse + type CreateAgreementResponse struct + Description string + Links []Link + Name string + Plan BillingPlan + StartTime time.Time + type CreateBillingResp = CreateBillingResponse + type CreateBillingResponse struct + CreateTime time.Time + ID string + Links []Link + MerchantPreferences MerchantPreferences + PaymentDefinitions []PaymentDefinition + State string + UpdateTime time.Time + type CreateOrderPayer struct + Address *ShippingDetailAddressPortable + BirthDate string + EmailAddress string + Name *CreateOrderPayerName + PayerID string + Phone *PhoneWithType + TaxInfo *TaxInfo + type CreateOrderPayerName struct + GivenName string + Surname string + type CreateProductResponse struct + type CreateSubscriptionPlanResponse struct + type CreateWebhookRequest struct + EventTypes []WebhookEventType + URL string + type CreditCard struct + BillingAddress *Address + CVV2 string + ExpireMonth string + ExpireYear string + ExternalCustomerID string + FirstName string + ID string + LastName string + Number string + PayerID string + State string + Type string + ValidUntil string + type CreditCardField struct + Operation string + Path string + Value string + type CreditCardToken struct + CreditCardID string + ExpireMonth string + ExpireYear string + Last4 string + PayerID string + type CreditCards struct + Items []CreditCard + type CreditCardsFilter struct + Page int + PageSize int + type Currency struct + Currency string + Value string + type CustomAmount struct + Amount Money + Label string + type CycleExecutions struct + CyclesCompleted int + CyclesRemaining int + Sequence int + TenureType string + TotalCycles int + type Details struct + GiftWrap string + HandlingFee string + Insurance string + Shipping string + ShippingDiscount string + Subtotal string + Tax string + type ErrorResponse struct + DebugID string + Details []ErrorResponseDetail + InformationLink string + Message string + Name string + Response *http.Response + func (r *ErrorResponse) Error() string + type ErrorResponseDetail struct + Description string + Field string + Issue string + Links []Link + Message string + Name string + type Event struct + CreateTime time.Time + EventType string + EventVersion string + ID string + Links []Link + ResourceType string + ResourceVersion string + Summary string + type ExchangeRate struct + SourceCurrency string + TargetCurrency string + Value string + type ExecuteAgreementResponse struct + AgreementDetails AgreementDetails + Description string + ID string + Links []Link + Payer Payer + Plan BillingPlan + ShippingAddress ShippingAddress + StartDate time.Time + State string + type ExecuteResponse struct + ID string + Links []Link + Payer PaymentPayer + State string + Transactions []Transaction + type Filter struct + func (s *Filter) AddTextField(field string) *TextField + func (s *Filter) AddTimeField(field string) *TimeField + func (s *Filter) String() string + type FlowConfig struct + BankTXNPendingURL string + LandingPageType string + UserAction string + type Frequency struct + IntervalCount int + IntervalUnit IntervalUnit + type FundingInstrument struct + CreditCard *CreditCard + CreditCardToken *CreditCardToken + type InputFields struct + AddressOverride uint + AllowNote bool + NoShipping uint + type IntegrationDetails struct + RestAPIIntegration *RestAPIIntegration + type IntervalUnit string + const IntervalUnitDay + const IntervalUnitMonth + const IntervalUnitWeek + const IntervalUnitYear + type Invoice struct + AdditionalRecipients []InvoiceEmailAddress + AmountSummary AmountSummaryDetail + Configuration InvoiceConfiguration + Detail InvoiceDetail + DueAmount Money + Gratuity Money + ID string + Invoicer InvoicerInfo + Items []InvoiceItem + Links []Link + ParentID string + Payments InvoicePayments + PrimaryRecipients []InvoiceRecipientInfo + Refunds InvoiceRefund + Status string + type InvoiceAddressDetails struct + BuildingName string + DeliveryService string + StreetName string + StreetNumber string + StreetType string + SubBuilding string + type InvoiceAddressPortable struct + AddressDetails InvoiceAddressDetails + AddressLine1 string + AddressLine2 string + AddressLine3 string + AdminArea1 string + AdminArea2 string + AdminArea3 string + AdminArea4 string + CountryCode string + PostalCode string + type InvoiceAmountWithBreakdown struct + Custom CustomAmount + Discount AggregatedDiscount + ItemTotal Money + Shipping InvoiceShippingCost + TaxTotal Money + type InvoiceAuditMetadata struct + CancelTime string + CancellledTimeBy string + CreateTime string + CreatedBy string + CreatedByFlow string + FirstSentTime string + InvoicerViewUrl string + LastSentBy string + LastSentTime string + LastUpdateTime string + LastUpdatedBy string + RecipientViewUrl string + type InvoiceBillingInfo struct + AdditionalInfo string + EmailAddress string + Language string + Phones []InvoicerPhoneDetail + type InvoiceConfiguration struct + AllowTip bool + PartialPayment InvoicePartialPayment + TaxCalculatedAfterDiscount bool + TaxInclusive bool + TemplateId string + type InvoiceContactInfo struct + BusinessName string + RecipientAddress InvoiceAddressPortable + RecipientName Name + type InvoiceDetail struct + Attachments []InvoiceFileReference + CurrencyCode string + InvoiceDate string + InvoiceNumber string + Memo string + Metadata InvoiceAuditMetadata + Note string + PaymentTerm InvoicePaymentTerm + Reference string + TermsAndConditions string + type InvoiceEmailAddress struct + EmailAddress string + type InvoiceFileReference struct + ContentType string + CreateTime string + ID string + Size string + URL string + type InvoiceItem struct + Description string + ID string + InvoiceDiscount InvoicingDiscount + ItemDate string + Name string + Quantity string + Tax InvoiceTax + UnitAmount Money + UnitOfMeasure string + type InvoiceNumber struct + InvoiceNumberValue string + type InvoicePartialPayment struct + AllowPartialPayment bool + MinimumAmountDue Money + type InvoicePaymentDetails struct + Amount Money + Method string + Note string + PaymentDate string + PaymentID string + ShippingInfo InvoiceContactInfo + Type string + type InvoicePaymentTerm struct + DueDate string + TermType string + type InvoicePayments struct + PaidAmount Money + Transactions []InvoicePaymentDetails + type InvoiceRecipientInfo struct + BillingInfo InvoiceBillingInfo + ShippingInfo InvoiceContactInfo + type InvoiceRefund struct + RefundAmount Money + RefundDetails []InvoiceRefundDetails + type InvoiceRefundDetails struct + Method string + RefundAmount Money + RefundDate string + RefundID string + RefundType string + type InvoiceShippingCost struct + Amount Money + Tax InvoiceTax + type InvoiceTax struct + Amount Money + ID string + Name string + Percent string + type InvoicerInfo struct + AdditionalNotes string + EmailAddress string + LogoUrl string + Phones []InvoicerPhoneDetail + TaxId string + Website string + type InvoicerPhoneDetail struct + CountryCode string + ExtensionNumber string + NationalNumber string + PhoneType string + type InvoicingDiscount struct + DiscountAmount Money + Percent string + type Item struct + Category string + Description string + Name string + Quantity string + SKU string + Tax *Money + UnitAmount *Money + type ItemList struct + Items []Item + ShippingAddress *ShippingAddress + type JSONTime time.Time + func (t *JSONTime) UnmarshalJSON(b []byte) error + func (t JSONTime) MarshalJSON() ([]byte, error) + type KV struct + Key string + Value string + type LastPayment struct + Amount Money + Time time.Time + type Link struct + Description string + Enctype string + Href string + Method string + Rel string + type ListParams struct + Page string + PageSize string + TotalRequired string + type ListProductsResponse struct + Products []Product + type ListSubscriptionPlansResponse struct + Plans []SubscriptionPlan + type ListWebhookResponse struct + Webhooks []Webhook + type MerchantPreferences struct + AutoBillAmount string + CancelURL string + InitialFailAmountAction string + MaxFailAttempts string + ReturnURL string + SetupFee *AmountPayout + type Money struct + Currency string + Value string + type Name struct + FullName string + GivenName string + MiddleName string + Prefix string + Suffix string + Surname string + type Operation struct + APIIntegrationPreference *IntegrationDetails + Operation string + type Order struct + CreateTime *time.Time + ID string + Intent string + Links []Link + Payer *PayerWithNameAndPhone + PurchaseUnits []PurchaseUnit + Status string + UpdateTime *time.Time + type PartnerConfigOverride struct + ActionRenewalURL string + PartnerLogoURL string + ReturnURL string + ReturnURLDescription string + ShowAddCreditCard *bool + type Patch struct + Operation string + Path string + Value interface{} + type Payee struct + Email string + type PayeeForOrders struct + EmailAddress string + MerchantID string + type PayeePreferred string + const PayeePreferredImmediatePaymentRequired + const PayeePreferredUnrestricted + type Payer struct + FundingInstruments []FundingInstrument + PayerInfo *PayerInfo + PaymentMethod string + Status string + type PayerInfo struct + CountryCode string + Email string + FirstName string + LastName string + PayerID string + Phone string + ShippingAddress *ShippingAddress + TaxID string + TaxIDType string + type PayerWithNameAndPhone struct + Address *ShippingDetailAddressPortable + BirthDate string + EmailAddress string + Name *CreateOrderPayerName + PayerID string + Phone *PhoneWithType + TaxInfo *TaxInfo + type PaymentCaptureRequest struct + Amount *Money + FinalCapture bool + InvoiceID string + NoteToPayer string + SoftDescriptor string + type PaymentCaptureResponse struct + Amount *Money + DisbursementMode string + FinalCapture bool + ID string + InvoiceID string + Links []Link + Status string + StatusDetails *CaptureStatusDetails + type PaymentDefinition struct + Amount AmountPayout + ChargeModels []ChargeModel + Cycles string + Frequency string + FrequencyInterval string + ID string + Name string + Type string + type PaymentInstruction struct + DisbursementMode string + PlatformFees []PlatformFee + type PaymentMethod struct + PayeePreferred PayeePreferred + StandardEntryClassCode StandardEntryClassCode + type PaymentOptions struct + AllowedPaymentMethod string + type PaymentPatch struct + Operation string + Path string + Value interface{} + type PaymentPayer struct + PayerInfo *PayerInfo + PaymentMethod string + Status string + type PaymentPreferences struct + AutoBillOutstanding bool + PaymentFailureThreshold int + SetupFee *Money + SetupFeeFailureAction SetupFeeFailureAction + type PaymentPreferencesOverride struct + AutoBillOutstanding bool + PaymentFailureThreshold int + SetupFee Money + SetupFeeFailureAction SetupFeeFailureAction + type PaymentResponse struct + ID string + Intent string + Links []Link + Payer Payer + State string + Transactions []Transaction + type PaymentSource struct + Card *PaymentSourceCard + Token *PaymentSourceToken + type PaymentSourceCard struct + BillingAddress *CardBillingAddress + CardType string + Expiry string + ID string + LastDigits string + Name string + Number string + SecurityCode string + type PaymentSourceToken struct + ID string + Type string + type Payout struct + Items []PayoutItem + SenderBatchHeader *SenderBatchHeader + type PayoutItem struct + Amount *AmountPayout + Note string + Receiver string + RecipientType string + RecipientWallet string + SenderItemID string + type PayoutItemResponse struct + Error ErrorResponse + Links []Link + PayoutBatchID string + PayoutItem *PayoutItem + PayoutItemFee *AmountPayout + PayoutItemID string + TimeProcessed *time.Time + TransactionID string + TransactionStatus string + type PayoutResponse struct + BatchHeader *BatchHeader + Items []PayoutItemResponse + Links []Link + type PhoneWithType struct + PhoneNumber *PhoneWithTypeNumber + PhoneType string + type PhoneWithTypeNumber struct + NationalNumber string + type Plan struct + CreateTime string + Description string + ID string + Name string + PaymentDefinitions []PaymentDefinition + UpdateTime string + type PlanOverride struct + BillingCycles []BillingCycleOverride + PaymentPreferences *PaymentPreferencesOverride + Taxes *TaxesOverride + type PlatformFee struct + Amount *Money + Payee *PayeeForOrders + type Presentation struct + BrandName string + LocaleCode string + LogoImage string + type PricingScheme struct + CreateTime time.Time + FixedPrice Money + UpdateTime time.Time + Version int + type PricingSchemeUpdate struct + BillingCycleSequence int + PricingScheme PricingScheme + type PricingSchemeUpdateRequest struct + Schemes []PricingSchemeUpdate + type Product struct + Category ProductCategory + Description string + HomeUrl string + ID string + ImageUrl string + Name string + Type ProductType + func (self *Product) GetUpdatePatch() []Patch + type ProductCategory string + type ProductListParameters struct + type ProductType string + type PurchaseUnit struct + Amount *PurchaseUnitAmount + CustomID string + Description string + ID string + InvoiceID string + Items []Item + Payee *PayeeForOrders + PaymentInstruction *PaymentInstruction + Payments *CapturedPayments + ReferenceID string + Shipping *ShippingDetail + SoftDescriptor string + type PurchaseUnitAmount struct + Breakdown *PurchaseUnitAmountBreakdown + Currency string + Value string + type PurchaseUnitAmountBreakdown struct + Discount *Money + Handling *Money + Insurance *Money + ItemTotal *Money + Shipping *Money + ShippingDiscount *Money + TaxTotal *Money + type PurchaseUnitRequest struct + Amount *PurchaseUnitAmount + CustomID string + Description string + InvoiceID string + Items []Item + Payee *PayeeForOrders + PaymentInstruction *PaymentInstruction + ReferenceID string + Shipping *ShippingDetail + SoftDescriptor string + type RedirectURLs struct + CancelURL string + ReturnURL string + type ReferralRequest struct + LegalConsents []Consent + Operations []Operation + PartnerConfigOverride *PartnerConfigOverride + Products []string + TrackingID string + type ReferralResponse struct + Links []Link + type Refund struct + Amount *Amount + CaptureID string + CreateTime *time.Time + ID string + ParentPayment string + SaleID string + State string + UpdateTime *time.Time + type RefundCaptureRequest struct + Amount *Money + InvoiceID string + NoteToPayer string + type RefundResponse struct + Amount *PurchaseUnitAmount + ID string + Links []Link + Status string + type Related struct + Authorization *Authorization + Capture *Capture + Order *Order + Refund *Refund + Sale *Sale + type Resource struct + Amount *PurchaseUnitAmount + BillingAgreementID *string + CreateTime string + CustomID string + ExpirationTime string + FinalCapture bool + ID string + Intent string + Links []Link + MerchantID string + NoteToPayer string + PartnerClientID string + Payer *PayerWithNameAndPhone + PurchaseUnits []*PurchaseUnitRequest + SellerPayableBreakdown *CaptureSellerBreakdown + SellerProtection *SellerProtection + SellerReceivableBreakdown *SellerReceivableBreakdown + Status string + StatusDetails *CaptureStatusDetails + UpdateTime string + type RestAPIIntegration struct + IntegrationMethod string + IntegrationType string + ThirdPartyDetails ThirdPartyDetails + type Sale struct + Amount *Amount + ClearingTime string + CreateTime *time.Time + Description string + ID string + Links []Link + ParentPayment string + PaymentMode string + PendingReason string + ProtectionEligibility string + ProtectionEligibilityType string + ReasonCode string + State string + TransactionFee *Currency + UpdateTime *time.Time + type SearchCartInfo struct + ItemDetails []SearchItemDetails + PayPalInvoiceID string + TaxInclusive *bool + type SearchCheckoutOption struct + CheckoutOptionName string + CheckoutOptionValue string + type SearchItemDetails struct + AdjustmentAmount *Money + BasicShippingAmount *Money + CheckoutOptions []SearchCheckoutOption + DiscountAmount *Money + ExtraShippingAmount *Money + GiftWrapAmount *Money + HandlingAmount *Money + InsuranceAmount *Money + InvoiceNumber string + ItemAmount Money + ItemCode string + ItemDescription string + ItemName string + ItemOptions string + ItemQuantity string + ItemUnitPrice Money + TaxAmounts []SearchTaxAmount + TaxPercentage string + TotalItemAmount Money + type SearchPayerInfo struct + AccountID string + Address *Address + AddressStatus string + CountryCode string + EmailAddress string + PayerName SearchPayerName + PayerStatus string + PhoneNumber *PhoneWithTypeNumber + type SearchPayerName struct + GivenName string + Surname string + type SearchShippingInfo struct + Address Address + Method string + Name string + SecondaryShippingAddress *Address + type SearchTaxAmount struct + TaxAmount Money + type SearchTransactionDetails struct + CartInfo *SearchCartInfo + PayerInfo *SearchPayerInfo + ShippingInfo *SearchShippingInfo + TransactionInfo SearchTransactionInfo + type SearchTransactionInfo struct + AnnualPercentageRate string + AvailableBalance *Money + BankReferenceID string + CreditPromotionalFee *Money + CreditTerm string + CreditTransactionalFee *Money + CustomField string + EndingBalance *Money + FeeAmount *Money + InsuranceAmount *Money + InvoiceID string + OtherAmount *Money + PayPalAccountID string + PayPalReferenceID string + PayPalReferenceIDType string + PaymentMethodType string + PaymentTrackingID string + ProtectionEligibility string + ShippingAmount *Money + ShippingDiscountAmount *Money + ShippingTaxAmount *Money + TipAmount *Money + TransactionAmount Money + TransactionEventCode string + TransactionID string + TransactionInitiationDate JSONTime + TransactionNote string + TransactionStatus string + TransactionSubject string + TransactionUpdatedDate JSONTime + type SellerProtection struct + DisputeCategories []string + Status string + type SellerReceivableBreakdown struct + ExchangeRate *ExchangeRate + GrossAmount *Money + NetAmount *Money + PaypalFee *Money + PaypalFeeInReceivableCurrency *Money + PlatformFees []PlatformFee + ReceivableAmount *Money + type SenderBatchHeader struct + EmailMessage string + EmailSubject string + SenderBatchID string + type SetupFeeFailureAction string + const SetupFeeFailureActionCancel + const SetupFeeFailureActionContinue + type SharedListResponse struct + Links []Link + TotalItems int + TotalPages int + type SharedResponse struct + CreateTime string + Links []Link + UpdateTime string + type ShippingAddress struct + City string + CountryCode string + Line1 string + Line2 string + Phone string + PostalCode string + RecipientName string + State string + Type string + type ShippingAmount struct + type ShippingDetail struct + Address *ShippingDetailAddressPortable + Name *Name + type ShippingDetailAddressPortable struct + AddressLine1 string + AddressLine2 string + AdminArea1 string + AdminArea2 string + CountryCode string + PostalCode string + type ShippingPreference string + const ShippingPreferenceGetFromFile + const ShippingPreferenceNoShipping + const ShippingPreferenceSetProvidedAddress + type StandardEntryClassCode string + const StandardEntryClassCodeCcd + const StandardEntryClassCodePpd + const StandardEntryClassCodeTel + const StandardEntryClassCodeWeb + type Subscriber struct + EmailAddress string + Name CreateOrderPayerName + PayerID string + ShippingAddress ShippingDetail + type Subscription struct + func (self *Subscription) GetUpdatePatch() []Patch + type SubscriptionBase struct + ApplicationContext *ApplicationContext + AutoRenewal bool + CustomID string + EffectiveTime *JSONTime + Plan *PlanOverride + PlanID string + Quantity string + ShippingAmount *Money + StartTime *JSONTime + Subscriber *Subscriber + type SubscriptionCaptureResponse struct + AmountWithBreakdown AmountWithBreakdown + Id string + PayerEmail string + PayerName Name + Status SubscriptionTransactionStatus + Time time.Time + type SubscriptionDetailResp struct + BillingInfo BillingInfo + type SubscriptionDetails struct + ID string + StatusUpdateTime time.Time + SubscriptionStatus SubscriptionStatus + SubscriptionStatusChangeNote string + type SubscriptionPlan struct + BillingCycles []BillingCycle + Description string + ID string + Name string + PaymentPreferences *PaymentPreferences + ProductId string + QuantitySupported bool + Status SubscriptionPlanStatus + Taxes *Taxes + func (self *SubscriptionPlan) GetUpdatePatch() []Patch + type SubscriptionPlanListParameters struct + PlanIds string + ProductId string + type SubscriptionPlanStatus string + const SubscriptionPlanStatusActive + const SubscriptionPlanStatusCreated + const SubscriptionPlanStatusInactive + type SubscriptionStatus string + const SubscriptionStatusActive + const SubscriptionStatusApprovalPending + const SubscriptionStatusApproved + const SubscriptionStatusCancelled + const SubscriptionStatusExpired + const SubscriptionStatusSuspended + type SubscriptionTransactionStatus string + const SubscriptionCaptureStatusCompleted + const SubscriptionCaptureStatusDeclined + const SubscriptionCaptureStatusPartiallyRefunded + const SubscriptionCaptureStatusPending + const SubscriptionCaptureStatusRefunded + type SubscriptionTransactionsParams struct + EndTime time.Time + StartTime time.Time + SubscriptionId string + type SubscriptionTransactionsResponse struct + Transactions []SubscriptionCaptureResponse + type TaxInfo struct + TaxID string + TaxIDType string + type Taxes struct + Inclusive bool + Percentage string + type TaxesOverride struct + Inclusive *bool + Percentage string + type TenureType string + const TenureTypeRegular + const TenureTypeTrial + type TextField struct + Is string + func (d TextField) String() string + type ThirdPartyDetails struct + Features []string + type TimeField struct + Is time.Time + func (d TimeField) String() string + type TokenResponse struct + ExpiresIn expirationTime + RefreshToken string + Token string + Type string + type Transaction struct + Amount *Amount + Custom string + Description string + InvoiceNumber string + ItemList *ItemList + NotifyURL string + OrderURL string + Payee *Payee + PaymentOptions *PaymentOptions + RelatedResources []Related + SoftDescriptor string + type TransactionSearchRequest struct + BalanceAffectingRecordsOnly *string + EndDate time.Time + Fields *string + Page *int + PageSize *int + PaymentInstrumentType *string + StartDate time.Time + StoreID *string + TerminalID *string + TransactionAmount *string + TransactionCurrency *string + TransactionID *string + TransactionStatus *string + TransactionType *string + type TransactionSearchResponse struct + AccountNumber string + EndDate JSONTime + LastRefreshDatetime JSONTime + Page int + StartDate JSONTime + TransactionDetails []SearchTransactionDetails + type UserAction string + const UserActionContinue + const UserActionPayNow + const UserActionSubscribeNow + type UserInfo struct + AccountType string + Address *Address + AgeRange string + BirthDate string + Email string + FamilyName string + Gender string + GivenName string + ID string + Locale string + Name string + PayerID string + Phone string + Verified bool + VerifiedAccount bool + ZoneInfo string + type VerifyWebhookResponse struct + VerificationStatus string + type WebProfile struct + FlowConfig FlowConfig + ID string + InputFields InputFields + Name string + Presentation Presentation + type Webhook struct + EventTypes []WebhookEventType + ID string + Links []Link + URL string + type WebhookEventType struct + Description string + Name string + Status string + type WebhookEventTypesResponse struct + EventTypes []WebhookEventType + type WebhookField struct + Operation string + Path string + Value interface{}