Documentation ¶
Index ¶
- Constants
- func NewIdempotencyKey() string
- type APIError
- type BankAuthorisation
- type BankAuthorisationCreateParams
- type BankAuthorisationCreateParamsLinks
- type BankAuthorisationLinks
- type BankAuthorisationService
- type BankAuthorisationServiceImpl
- type BankDetailsLookup
- type BankDetailsLookupCreateParams
- type BankDetailsLookupService
- type BankDetailsLookupServiceImpl
- type BillingRequest
- type BillingRequestActions
- type BillingRequestActionsAvailableCurrencies
- type BillingRequestActionsBankAuthorisation
- type BillingRequestActionsCollectCustomerDetails
- type BillingRequestActionsCollectCustomerDetailsIncompleteFields
- type BillingRequestCancelParams
- type BillingRequestChooseCurrencyParams
- type BillingRequestCollectBankAccountParams
- type BillingRequestCollectCustomerDetailsParams
- type BillingRequestCollectCustomerDetailsParamsCustomer
- type BillingRequestCollectCustomerDetailsParamsCustomerBillingDetail
- type BillingRequestConfirmPayerDetailsParams
- type BillingRequestCreateParams
- type BillingRequestCreateParamsLinks
- type BillingRequestCreateParamsMandateRequest
- type BillingRequestCreateParamsMandateRequestConstraints
- type BillingRequestCreateParamsMandateRequestConstraintsPeriodicLimits
- type BillingRequestCreateParamsPaymentRequest
- type BillingRequestFallbackParams
- type BillingRequestFlow
- type BillingRequestFlowCreateParams
- type BillingRequestFlowCreateParamsLinks
- type BillingRequestFlowCreateParamsPrefilledBankAccount
- type BillingRequestFlowCreateParamsPrefilledCustomer
- type BillingRequestFlowInitialiseParams
- type BillingRequestFlowLinks
- type BillingRequestFlowPrefilledBankAccount
- type BillingRequestFlowPrefilledCustomer
- type BillingRequestFlowService
- type BillingRequestFlowServiceImpl
- func (s *BillingRequestFlowServiceImpl) Create(ctx context.Context, p BillingRequestFlowCreateParams, opts ...RequestOption) (*BillingRequestFlow, error)
- func (s *BillingRequestFlowServiceImpl) Initialise(ctx context.Context, identity string, p BillingRequestFlowInitialiseParams, ...) (*BillingRequestFlow, error)
- type BillingRequestFulfilParams
- type BillingRequestLinks
- type BillingRequestListPagingIterator
- type BillingRequestListParams
- type BillingRequestListResult
- type BillingRequestListResultMeta
- type BillingRequestListResultMetaCursors
- type BillingRequestMandateRequest
- type BillingRequestMandateRequestConstraints
- type BillingRequestMandateRequestConstraintsPeriodicLimits
- type BillingRequestMandateRequestLinks
- type BillingRequestNotifyParams
- type BillingRequestPaymentRequest
- type BillingRequestPaymentRequestLinks
- type BillingRequestResources
- type BillingRequestResourcesCustomer
- type BillingRequestResourcesCustomerBankAccount
- type BillingRequestResourcesCustomerBankAccountLinks
- type BillingRequestResourcesCustomerBillingDetail
- type BillingRequestSelectInstitutionParams
- type BillingRequestService
- type BillingRequestServiceImpl
- func (s *BillingRequestServiceImpl) All(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) *BillingRequestListPagingIterator
- func (s *BillingRequestServiceImpl) Cancel(ctx context.Context, identity string, p BillingRequestCancelParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) ChooseCurrency(ctx context.Context, identity string, p BillingRequestChooseCurrencyParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) CollectBankAccount(ctx context.Context, identity string, p BillingRequestCollectBankAccountParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) CollectCustomerDetails(ctx context.Context, identity string, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) ConfirmPayerDetails(ctx context.Context, identity string, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) Create(ctx context.Context, p BillingRequestCreateParams, opts ...RequestOption) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) Fallback(ctx context.Context, identity string, p BillingRequestFallbackParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) Fulfil(ctx context.Context, identity string, p BillingRequestFulfilParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) List(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) (*BillingRequestListResult, error)
- func (s *BillingRequestServiceImpl) Notify(ctx context.Context, identity string, p BillingRequestNotifyParams, ...) (*BillingRequest, error)
- func (s *BillingRequestServiceImpl) SelectInstitution(ctx context.Context, identity string, p BillingRequestSelectInstitutionParams, ...) (*BillingRequest, error)
- type BillingRequestTemplate
- type BillingRequestTemplateCreateParams
- type BillingRequestTemplateCreateParamsLinks
- type BillingRequestTemplateListPagingIterator
- type BillingRequestTemplateListParams
- type BillingRequestTemplateListResult
- type BillingRequestTemplateListResultMeta
- type BillingRequestTemplateListResultMetaCursors
- type BillingRequestTemplateService
- type BillingRequestTemplateServiceImpl
- func (s *BillingRequestTemplateServiceImpl) All(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) *BillingRequestTemplateListPagingIterator
- func (s *BillingRequestTemplateServiceImpl) Create(ctx context.Context, p BillingRequestTemplateCreateParams, ...) (*BillingRequestTemplate, error)
- func (s *BillingRequestTemplateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequestTemplate, error)
- func (s *BillingRequestTemplateServiceImpl) List(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) (*BillingRequestTemplateListResult, error)
- func (s *BillingRequestTemplateServiceImpl) Update(ctx context.Context, identity string, p BillingRequestTemplateUpdateParams, ...) (*BillingRequestTemplate, error)
- type BillingRequestTemplateUpdateParams
- type Block
- type BlockBlockByRefParams
- type BlockBlockByRefResult
- type BlockBlockByRefResultMeta
- type BlockBlockByRefResultMetaCursors
- type BlockCreateParams
- type BlockListPagingIterator
- type BlockListParams
- type BlockListResult
- type BlockListResultMeta
- type BlockListResultMetaCursors
- type BlockService
- type BlockServiceImpl
- func (s *BlockServiceImpl) All(ctx context.Context, p BlockListParams, opts ...RequestOption) *BlockListPagingIterator
- func (s *BlockServiceImpl) BlockByRef(ctx context.Context, p BlockBlockByRefParams, opts ...RequestOption) (*BlockBlockByRefResult, error)
- func (s *BlockServiceImpl) Create(ctx context.Context, p BlockCreateParams, opts ...RequestOption) (*Block, error)
- func (s *BlockServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
- func (s *BlockServiceImpl) Enable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
- func (s *BlockServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
- func (s *BlockServiceImpl) List(ctx context.Context, p BlockListParams, opts ...RequestOption) (*BlockListResult, error)
- type Config
- type ConfigOption
- type Creditor
- type CreditorBankAccount
- type CreditorBankAccountCreateParams
- type CreditorBankAccountCreateParamsLinks
- type CreditorBankAccountLinks
- type CreditorBankAccountListPagingIterator
- type CreditorBankAccountListParams
- type CreditorBankAccountListParamsCreatedAt
- type CreditorBankAccountListResult
- type CreditorBankAccountListResultMeta
- type CreditorBankAccountListResultMetaCursors
- type CreditorBankAccountService
- type CreditorBankAccountServiceImpl
- func (s *CreditorBankAccountServiceImpl) All(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) *CreditorBankAccountListPagingIterator
- func (s *CreditorBankAccountServiceImpl) Create(ctx context.Context, p CreditorBankAccountCreateParams, opts ...RequestOption) (*CreditorBankAccount, error)
- func (s *CreditorBankAccountServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error)
- func (s *CreditorBankAccountServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error)
- func (s *CreditorBankAccountServiceImpl) List(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) (*CreditorBankAccountListResult, error)
- type CreditorCreateParams
- type CreditorGetParams
- type CreditorLinks
- type CreditorListPagingIterator
- type CreditorListParams
- type CreditorListParamsCreatedAt
- type CreditorListResult
- type CreditorListResultMeta
- type CreditorListResultMetaCursors
- type CreditorSchemeIdentifiers
- type CreditorService
- type CreditorServiceImpl
- func (s *CreditorServiceImpl) All(ctx context.Context, p CreditorListParams, opts ...RequestOption) *CreditorListPagingIterator
- func (s *CreditorServiceImpl) Create(ctx context.Context, p CreditorCreateParams, opts ...RequestOption) (*Creditor, error)
- func (s *CreditorServiceImpl) Get(ctx context.Context, identity string, p CreditorGetParams, ...) (*Creditor, error)
- func (s *CreditorServiceImpl) List(ctx context.Context, p CreditorListParams, opts ...RequestOption) (*CreditorListResult, error)
- func (s *CreditorServiceImpl) Update(ctx context.Context, identity string, p CreditorUpdateParams, ...) (*Creditor, error)
- type CreditorUpdateParams
- type CreditorUpdateParamsLinks
- type CurrencyExchangeRate
- type CurrencyExchangeRateListPagingIterator
- type CurrencyExchangeRateListParams
- type CurrencyExchangeRateListResult
- type CurrencyExchangeRateListResultMeta
- type CurrencyExchangeRateListResultMetaCursors
- type CurrencyExchangeRateService
- type CurrencyExchangeRateServiceImpl
- func (s *CurrencyExchangeRateServiceImpl) All(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) *CurrencyExchangeRateListPagingIterator
- func (s *CurrencyExchangeRateServiceImpl) List(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) (*CurrencyExchangeRateListResult, error)
- type Customer
- type CustomerBankAccount
- type CustomerBankAccountCreateParams
- type CustomerBankAccountCreateParamsLinks
- type CustomerBankAccountLinks
- type CustomerBankAccountListPagingIterator
- type CustomerBankAccountListParams
- type CustomerBankAccountListParamsCreatedAt
- type CustomerBankAccountListResult
- type CustomerBankAccountListResultMeta
- type CustomerBankAccountListResultMetaCursors
- type CustomerBankAccountService
- type CustomerBankAccountServiceImpl
- func (s *CustomerBankAccountServiceImpl) All(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) *CustomerBankAccountListPagingIterator
- func (s *CustomerBankAccountServiceImpl) Create(ctx context.Context, p CustomerBankAccountCreateParams, opts ...RequestOption) (*CustomerBankAccount, error)
- func (s *CustomerBankAccountServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error)
- func (s *CustomerBankAccountServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error)
- func (s *CustomerBankAccountServiceImpl) List(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) (*CustomerBankAccountListResult, error)
- func (s *CustomerBankAccountServiceImpl) Update(ctx context.Context, identity string, p CustomerBankAccountUpdateParams, ...) (*CustomerBankAccount, error)
- type CustomerBankAccountUpdateParams
- type CustomerCreateParams
- type CustomerListPagingIterator
- type CustomerListParams
- type CustomerListParamsCreatedAt
- type CustomerListResult
- type CustomerListResultMeta
- type CustomerListResultMetaCursors
- type CustomerNotification
- type CustomerNotificationHandleParams
- type CustomerNotificationLinks
- type CustomerNotificationService
- type CustomerNotificationServiceImpl
- type CustomerRemoveParams
- type CustomerService
- type CustomerServiceImpl
- func (s *CustomerServiceImpl) All(ctx context.Context, p CustomerListParams, opts ...RequestOption) *CustomerListPagingIterator
- func (s *CustomerServiceImpl) Create(ctx context.Context, p CustomerCreateParams, opts ...RequestOption) (*Customer, error)
- func (s *CustomerServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Customer, error)
- func (s *CustomerServiceImpl) List(ctx context.Context, p CustomerListParams, opts ...RequestOption) (*CustomerListResult, error)
- func (s *CustomerServiceImpl) Remove(ctx context.Context, identity string, p CustomerRemoveParams, ...) (*Customer, error)
- func (s *CustomerServiceImpl) Update(ctx context.Context, identity string, p CustomerUpdateParams, ...) (*Customer, error)
- type CustomerUpdateParams
- type ErrorLinks
- type Event
- type EventCustomerNotifications
- type EventDetails
- type EventHandler
- type EventHandlerFunc
- type EventLinks
- type EventListPagingIterator
- type EventListParams
- type EventListParamsCreatedAt
- type EventListResult
- type EventListResultMeta
- type EventListResultMetaCursors
- type EventService
- type EventServiceImpl
- func (s *EventServiceImpl) All(ctx context.Context, p EventListParams, opts ...RequestOption) *EventListPagingIterator
- func (s *EventServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Event, error)
- func (s *EventServiceImpl) List(ctx context.Context, p EventListParams, opts ...RequestOption) (*EventListResult, error)
- type Export
- type ExportListPagingIterator
- type ExportListParams
- type ExportListResult
- type ExportListResultMeta
- type ExportListResultMetaCursors
- type ExportService
- type ExportServiceImpl
- func (s *ExportServiceImpl) All(ctx context.Context, p ExportListParams, opts ...RequestOption) *ExportListPagingIterator
- func (s *ExportServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Export, error)
- func (s *ExportServiceImpl) List(ctx context.Context, p ExportListParams, opts ...RequestOption) (*ExportListResult, error)
- type InstalmentSchedule
- type InstalmentScheduleCancelParams
- type InstalmentScheduleCreateWithDatesParams
- type InstalmentScheduleCreateWithDatesParamsInstalments
- type InstalmentScheduleCreateWithDatesParamsLinks
- type InstalmentScheduleCreateWithScheduleParams
- type InstalmentScheduleCreateWithScheduleParamsInstalments
- type InstalmentScheduleCreateWithScheduleParamsLinks
- type InstalmentScheduleLinks
- type InstalmentScheduleListPagingIterator
- type InstalmentScheduleListParams
- type InstalmentScheduleListParamsCreatedAt
- type InstalmentScheduleListResult
- type InstalmentScheduleListResultMeta
- type InstalmentScheduleListResultMetaCursors
- type InstalmentScheduleService
- type InstalmentScheduleServiceImpl
- func (s *InstalmentScheduleServiceImpl) All(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) *InstalmentScheduleListPagingIterator
- func (s *InstalmentScheduleServiceImpl) Cancel(ctx context.Context, identity string, p InstalmentScheduleCancelParams, ...) (*InstalmentSchedule, error)
- func (s *InstalmentScheduleServiceImpl) CreateWithDates(ctx context.Context, p InstalmentScheduleCreateWithDatesParams, ...) (*InstalmentSchedule, error)
- func (s *InstalmentScheduleServiceImpl) CreateWithSchedule(ctx context.Context, p InstalmentScheduleCreateWithScheduleParams, ...) (*InstalmentSchedule, error)
- func (s *InstalmentScheduleServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*InstalmentSchedule, error)
- func (s *InstalmentScheduleServiceImpl) List(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) (*InstalmentScheduleListResult, error)
- func (s *InstalmentScheduleServiceImpl) Update(ctx context.Context, identity string, p InstalmentScheduleUpdateParams, ...) (*InstalmentSchedule, error)
- type InstalmentScheduleUpdateParams
- type Institution
- type InstitutionListForBillingRequestParams
- type InstitutionListForBillingRequestResult
- type InstitutionListForBillingRequestResultMeta
- type InstitutionListForBillingRequestResultMetaCursors
- type InstitutionListParams
- type InstitutionListResult
- type InstitutionListResultMeta
- type InstitutionListResultMetaCursors
- type InstitutionService
- type InstitutionServiceImpl
- func (s *InstitutionServiceImpl) List(ctx context.Context, p InstitutionListParams, opts ...RequestOption) (*InstitutionListResult, error)
- func (s *InstitutionServiceImpl) ListForBillingRequest(ctx context.Context, identity string, p InstitutionListForBillingRequestParams, ...) (*InstitutionListForBillingRequestResult, error)
- type Logo
- type LogoCreateForCreditorParams
- type LogoCreateForCreditorParamsLinks
- type LogoService
- type LogoServiceImpl
- type Mandate
- type MandateCancelParams
- type MandateConsentParameters
- type MandateConsentParametersPeriods
- type MandateCreateParams
- type MandateCreateParamsLinks
- type MandateImport
- type MandateImportCancelParams
- type MandateImportCreateParams
- type MandateImportCreateParamsLinks
- type MandateImportEntry
- type MandateImportEntryCreateParams
- type MandateImportEntryCreateParamsAmendment
- type MandateImportEntryCreateParamsBankAccount
- type MandateImportEntryCreateParamsCustomer
- type MandateImportEntryCreateParamsLinks
- type MandateImportEntryCreateParamsMandate
- type MandateImportEntryLinks
- type MandateImportEntryListPagingIterator
- type MandateImportEntryListParams
- type MandateImportEntryListResult
- type MandateImportEntryListResultMeta
- type MandateImportEntryListResultMetaCursors
- type MandateImportEntryService
- type MandateImportEntryServiceImpl
- func (s *MandateImportEntryServiceImpl) All(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) *MandateImportEntryListPagingIterator
- func (s *MandateImportEntryServiceImpl) Create(ctx context.Context, p MandateImportEntryCreateParams, opts ...RequestOption) (*MandateImportEntry, error)
- func (s *MandateImportEntryServiceImpl) List(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) (*MandateImportEntryListResult, error)
- type MandateImportGetParams
- type MandateImportLinks
- type MandateImportService
- type MandateImportServiceImpl
- func (s *MandateImportServiceImpl) Cancel(ctx context.Context, identity string, p MandateImportCancelParams, ...) (*MandateImport, error)
- func (s *MandateImportServiceImpl) Create(ctx context.Context, p MandateImportCreateParams, opts ...RequestOption) (*MandateImport, error)
- func (s *MandateImportServiceImpl) Get(ctx context.Context, identity string, p MandateImportGetParams, ...) (*MandateImport, error)
- func (s *MandateImportServiceImpl) Submit(ctx context.Context, identity string, p MandateImportSubmitParams, ...) (*MandateImport, error)
- type MandateImportSubmitParams
- type MandateLinks
- type MandateListPagingIterator
- type MandateListParams
- type MandateListParamsCreatedAt
- type MandateListResult
- type MandateListResultMeta
- type MandateListResultMetaCursors
- type MandatePdf
- type MandatePdfCreateParams
- type MandatePdfCreateParamsLinks
- type MandatePdfService
- type MandatePdfServiceImpl
- type MandateReinstateParams
- type MandateService
- type MandateServiceImpl
- func (s *MandateServiceImpl) All(ctx context.Context, p MandateListParams, opts ...RequestOption) *MandateListPagingIterator
- func (s *MandateServiceImpl) Cancel(ctx context.Context, identity string, p MandateCancelParams, ...) (*Mandate, error)
- func (s *MandateServiceImpl) Create(ctx context.Context, p MandateCreateParams, opts ...RequestOption) (*Mandate, error)
- func (s *MandateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Mandate, error)
- func (s *MandateServiceImpl) List(ctx context.Context, p MandateListParams, opts ...RequestOption) (*MandateListResult, error)
- func (s *MandateServiceImpl) Reinstate(ctx context.Context, identity string, p MandateReinstateParams, ...) (*Mandate, error)
- func (s *MandateServiceImpl) Update(ctx context.Context, identity string, p MandateUpdateParams, ...) (*Mandate, error)
- type MandateUpdateParams
- type NegativeBalanceLimit
- type NegativeBalanceLimitCreateParams
- type NegativeBalanceLimitCreateParamsLinks
- type NegativeBalanceLimitLinks
- type NegativeBalanceLimitListPagingIterator
- type NegativeBalanceLimitListParams
- type NegativeBalanceLimitListResult
- type NegativeBalanceLimitListResultMeta
- type NegativeBalanceLimitListResultMetaCursors
- type NegativeBalanceLimitService
- type NegativeBalanceLimitServiceImpl
- func (s *NegativeBalanceLimitServiceImpl) All(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) *NegativeBalanceLimitListPagingIterator
- func (s *NegativeBalanceLimitServiceImpl) Create(ctx context.Context, p NegativeBalanceLimitCreateParams, opts ...RequestOption) (*NegativeBalanceLimit, error)
- func (s *NegativeBalanceLimitServiceImpl) List(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) (*NegativeBalanceLimitListResult, error)
- type PagingIterator
- type PayerAuthorisation
- type PayerAuthorisationBankAccount
- type PayerAuthorisationCreateParams
- type PayerAuthorisationCreateParamsBankAccount
- type PayerAuthorisationCreateParamsCustomer
- type PayerAuthorisationCreateParamsMandate
- type PayerAuthorisationCustomer
- type PayerAuthorisationIncompleteFields
- type PayerAuthorisationLinks
- type PayerAuthorisationMandate
- type PayerAuthorisationService
- type PayerAuthorisationServiceImpl
- func (s *PayerAuthorisationServiceImpl) Confirm(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
- func (s *PayerAuthorisationServiceImpl) Create(ctx context.Context, p PayerAuthorisationCreateParams, opts ...RequestOption) (*PayerAuthorisation, error)
- func (s *PayerAuthorisationServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
- func (s *PayerAuthorisationServiceImpl) Submit(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
- func (s *PayerAuthorisationServiceImpl) Update(ctx context.Context, identity string, p PayerAuthorisationUpdateParams, ...) (*PayerAuthorisation, error)
- type PayerAuthorisationUpdateParams
- type PayerAuthorisationUpdateParamsBankAccount
- type PayerAuthorisationUpdateParamsCustomer
- type PayerAuthorisationUpdateParamsMandate
- type PayerTheme
- type PayerThemeCreateForCreditorParams
- type PayerThemeCreateForCreditorParamsLinks
- type PayerThemeService
- type PayerThemeServiceImpl
- type Payment
- type PaymentCancelParams
- type PaymentCreateParams
- type PaymentCreateParamsLinks
- type PaymentFx
- type PaymentLinks
- type PaymentListPagingIterator
- type PaymentListParams
- type PaymentListParamsChargeDate
- type PaymentListParamsCreatedAt
- type PaymentListResult
- type PaymentListResultMeta
- type PaymentListResultMetaCursors
- type PaymentRetryParams
- type PaymentService
- type PaymentServiceImpl
- func (s *PaymentServiceImpl) All(ctx context.Context, p PaymentListParams, opts ...RequestOption) *PaymentListPagingIterator
- func (s *PaymentServiceImpl) Cancel(ctx context.Context, identity string, p PaymentCancelParams, ...) (*Payment, error)
- func (s *PaymentServiceImpl) Create(ctx context.Context, p PaymentCreateParams, opts ...RequestOption) (*Payment, error)
- func (s *PaymentServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Payment, error)
- func (s *PaymentServiceImpl) List(ctx context.Context, p PaymentListParams, opts ...RequestOption) (*PaymentListResult, error)
- func (s *PaymentServiceImpl) Retry(ctx context.Context, identity string, p PaymentRetryParams, ...) (*Payment, error)
- func (s *PaymentServiceImpl) Update(ctx context.Context, identity string, p PaymentUpdateParams, ...) (*Payment, error)
- type PaymentUpdateParams
- type Payout
- type PayoutFx
- type PayoutItem
- type PayoutItemLinks
- type PayoutItemListPagingIterator
- type PayoutItemListParams
- type PayoutItemListResult
- type PayoutItemListResultMeta
- type PayoutItemListResultMetaCursors
- type PayoutItemService
- type PayoutItemServiceImpl
- type PayoutItemTaxes
- type PayoutLinks
- type PayoutListPagingIterator
- type PayoutListParams
- type PayoutListParamsCreatedAt
- type PayoutListResult
- type PayoutListResultMeta
- type PayoutListResultMetaCursors
- type PayoutService
- type PayoutServiceImpl
- func (s *PayoutServiceImpl) All(ctx context.Context, p PayoutListParams, opts ...RequestOption) *PayoutListPagingIterator
- func (s *PayoutServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Payout, error)
- func (s *PayoutServiceImpl) List(ctx context.Context, p PayoutListParams, opts ...RequestOption) (*PayoutListResult, error)
- func (s *PayoutServiceImpl) Update(ctx context.Context, identity string, p PayoutUpdateParams, ...) (*Payout, error)
- type PayoutUpdateParams
- type RedirectFlow
- type RedirectFlowCompleteParams
- type RedirectFlowCreateParams
- type RedirectFlowCreateParamsLinks
- type RedirectFlowCreateParamsPrefilledBankAccount
- type RedirectFlowCreateParamsPrefilledCustomer
- type RedirectFlowLinks
- type RedirectFlowService
- type RedirectFlowServiceImpl
- func (s *RedirectFlowServiceImpl) Complete(ctx context.Context, identity string, p RedirectFlowCompleteParams, ...) (*RedirectFlow, error)
- func (s *RedirectFlowServiceImpl) Create(ctx context.Context, p RedirectFlowCreateParams, opts ...RequestOption) (*RedirectFlow, error)
- func (s *RedirectFlowServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*RedirectFlow, error)
- type Refund
- type RefundCreateParams
- type RefundCreateParamsLinks
- type RefundFx
- type RefundLinks
- type RefundListPagingIterator
- type RefundListParams
- type RefundListParamsCreatedAt
- type RefundListResult
- type RefundListResultMeta
- type RefundListResultMetaCursors
- type RefundService
- type RefundServiceImpl
- func (s *RefundServiceImpl) All(ctx context.Context, p RefundListParams, opts ...RequestOption) *RefundListPagingIterator
- func (s *RefundServiceImpl) Create(ctx context.Context, p RefundCreateParams, opts ...RequestOption) (*Refund, error)
- func (s *RefundServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Refund, error)
- func (s *RefundServiceImpl) List(ctx context.Context, p RefundListParams, opts ...RequestOption) (*RefundListResult, error)
- func (s *RefundServiceImpl) Update(ctx context.Context, identity string, p RefundUpdateParams, ...) (*Refund, error)
- type RefundUpdateParams
- type RequestOption
- type ScenarioSimulator
- type ScenarioSimulatorRunParams
- type ScenarioSimulatorRunParamsLinks
- type ScenarioSimulatorService
- type ScenarioSimulatorServiceImpl
- type SchemeIdentifier
- type SchemeIdentifierCreateParams
- type SchemeIdentifierCreateParamsLinks
- type SchemeIdentifierListPagingIterator
- type SchemeIdentifierListParams
- type SchemeIdentifierListResult
- type SchemeIdentifierListResultMeta
- type SchemeIdentifierListResultMetaCursors
- type SchemeIdentifierService
- type SchemeIdentifierServiceImpl
- func (s *SchemeIdentifierServiceImpl) All(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) *SchemeIdentifierListPagingIterator
- func (s *SchemeIdentifierServiceImpl) Create(ctx context.Context, p SchemeIdentifierCreateParams, opts ...RequestOption) (*SchemeIdentifier, error)
- func (s *SchemeIdentifierServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*SchemeIdentifier, error)
- func (s *SchemeIdentifierServiceImpl) List(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) (*SchemeIdentifierListResult, error)
- type Service
- type Subscription
- type SubscriptionCancelParams
- type SubscriptionCreateParams
- type SubscriptionCreateParamsLinks
- type SubscriptionLinks
- type SubscriptionListPagingIterator
- type SubscriptionListParams
- type SubscriptionListParamsCreatedAt
- type SubscriptionListResult
- type SubscriptionListResultMeta
- type SubscriptionListResultMetaCursors
- type SubscriptionPauseParams
- type SubscriptionResumeParams
- type SubscriptionService
- type SubscriptionServiceImpl
- func (s *SubscriptionServiceImpl) All(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) *SubscriptionListPagingIterator
- func (s *SubscriptionServiceImpl) Cancel(ctx context.Context, identity string, p SubscriptionCancelParams, ...) (*Subscription, error)
- func (s *SubscriptionServiceImpl) Create(ctx context.Context, p SubscriptionCreateParams, opts ...RequestOption) (*Subscription, error)
- func (s *SubscriptionServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Subscription, error)
- func (s *SubscriptionServiceImpl) List(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) (*SubscriptionListResult, error)
- func (s *SubscriptionServiceImpl) Pause(ctx context.Context, identity string, p SubscriptionPauseParams, ...) (*Subscription, error)
- func (s *SubscriptionServiceImpl) Resume(ctx context.Context, identity string, p SubscriptionResumeParams, ...) (*Subscription, error)
- func (s *SubscriptionServiceImpl) Update(ctx context.Context, identity string, p SubscriptionUpdateParams, ...) (*Subscription, error)
- type SubscriptionUpcomingPayments
- type SubscriptionUpdateParams
- type TaxRate
- type TaxRateListPagingIterator
- type TaxRateListParams
- type TaxRateListResult
- type TaxRateListResultMeta
- type TaxRateListResultMetaCursors
- type TaxRateService
- type TaxRateServiceImpl
- func (s *TaxRateServiceImpl) All(ctx context.Context, p TaxRateListParams, opts ...RequestOption) *TaxRateListPagingIterator
- func (s *TaxRateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*TaxRate, error)
- func (s *TaxRateServiceImpl) List(ctx context.Context, p TaxRateListParams, opts ...RequestOption) (*TaxRateListResult, error)
- type TransferredMandate
- type TransferredMandateLinks
- type TransferredMandateService
- type TransferredMandateServiceImpl
- type TransferredMandateTransferredMandatesParams
- type ValidationError
- type VerificationDetail
- type VerificationDetailCreateParams
- type VerificationDetailCreateParamsDirectors
- type VerificationDetailCreateParamsLinks
- type VerificationDetailDirectors
- type VerificationDetailLinks
- type VerificationDetailListPagingIterator
- type VerificationDetailListParams
- type VerificationDetailListResult
- type VerificationDetailListResultMeta
- type VerificationDetailListResultMetaCursors
- type VerificationDetailService
- type VerificationDetailServiceImpl
- func (s *VerificationDetailServiceImpl) All(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) *VerificationDetailListPagingIterator
- func (s *VerificationDetailServiceImpl) Create(ctx context.Context, p VerificationDetailCreateParams, opts ...RequestOption) (*VerificationDetail, error)
- func (s *VerificationDetailServiceImpl) List(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) (*VerificationDetailListResult, error)
- type Webhook
- type WebhookHandler
- type WebhookListPagingIterator
- type WebhookListParams
- type WebhookListParamsCreatedAt
- type WebhookListResult
- type WebhookListResultMeta
- type WebhookListResultMetaCursors
- type WebhookService
- type WebhookServiceImpl
- func (s *WebhookServiceImpl) All(ctx context.Context, p WebhookListParams, opts ...RequestOption) *WebhookListPagingIterator
- func (s *WebhookServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error)
- func (s *WebhookServiceImpl) List(ctx context.Context, p WebhookListParams, opts ...RequestOption) (*WebhookListResult, error)
- func (s *WebhookServiceImpl) Retry(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error)
Constants ¶
const ( // Live environment LiveEndpoint = "https://api.gocardless.com" // Sandbox environment SandboxEndpoint = "https://api-sandbox.gocardless.com" )
Variables ¶
This section is empty.
Functions ¶
func NewIdempotencyKey ¶
func NewIdempotencyKey() string
NewIdempotencyKey generates a random and unique idempotency key
Types ¶
type APIError ¶
type BankAuthorisation ¶
type BankAuthorisation struct { AuthorisationType string `url:"authorisation_type,omitempty" json:"authorisation_type,omitempty"` AuthorisedAt string `url:"authorised_at,omitempty" json:"authorised_at,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` ExpiresAt string `url:"expires_at,omitempty" json:"expires_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` LastVisitedAt string `url:"last_visited_at,omitempty" json:"last_visited_at,omitempty"` Links *BankAuthorisationLinks `url:"links,omitempty" json:"links,omitempty"` QrCodeUrl string `url:"qr_code_url,omitempty" json:"qr_code_url,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` Url string `url:"url,omitempty" json:"url,omitempty"` }
BankAuthorisation model
type BankAuthorisationCreateParams ¶
type BankAuthorisationCreateParams struct { Links BankAuthorisationCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` }
BankAuthorisationCreateParams parameters
type BankAuthorisationCreateParamsLinks ¶
type BankAuthorisationCreateParamsLinks struct {
BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"`
}
type BankAuthorisationLinks ¶
type BankAuthorisationService ¶
type BankAuthorisationService interface { Create(ctx context.Context, p BankAuthorisationCreateParams, opts ...RequestOption) (*BankAuthorisation, error) Get(ctx context.Context, identity string, opts ...RequestOption) (*BankAuthorisation, error) }
type BankAuthorisationServiceImpl ¶
type BankAuthorisationServiceImpl struct {
// contains filtered or unexported fields
}
BankAuthorisationService manages bank_authorisations
func (*BankAuthorisationServiceImpl) Create ¶
func (s *BankAuthorisationServiceImpl) Create(ctx context.Context, p BankAuthorisationCreateParams, opts ...RequestOption) (*BankAuthorisation, error)
Create Create a Bank Authorisation.
func (*BankAuthorisationServiceImpl) Get ¶
func (s *BankAuthorisationServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*BankAuthorisation, error)
Get Get a single bank authorisation.
type BankDetailsLookup ¶
type BankDetailsLookup struct { AvailableDebitSchemes []string `url:"available_debit_schemes,omitempty" json:"available_debit_schemes,omitempty"` BankName string `url:"bank_name,omitempty" json:"bank_name,omitempty"` Bic string `url:"bic,omitempty" json:"bic,omitempty"` }
BankDetailsLookup model
type BankDetailsLookupCreateParams ¶
type BankDetailsLookupCreateParams struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` }
BankDetailsLookupCreateParams parameters
type BankDetailsLookupService ¶
type BankDetailsLookupService interface {
Create(ctx context.Context, p BankDetailsLookupCreateParams, opts ...RequestOption) (*BankDetailsLookup, error)
}
type BankDetailsLookupServiceImpl ¶
type BankDetailsLookupServiceImpl struct {
// contains filtered or unexported fields
}
BankDetailsLookupService manages bank_details_lookups
func (*BankDetailsLookupServiceImpl) Create ¶
func (s *BankDetailsLookupServiceImpl) Create(ctx context.Context, p BankDetailsLookupCreateParams, opts ...RequestOption) (*BankDetailsLookup, error)
Create Performs a bank details lookup. As part of the lookup, a modulus check and reachability check are performed.
For UK-based bank accounts, where an account holder name is provided (and an account number, a sort code or an iban are already present), we verify that the account holder name and bank account number match the details held by the relevant bank.
If your request returns an [error](#api-usage-errors) or the `available_debit_schemes` attribute is an empty array, you will not be able to collect payments from the specified bank account. GoCardless may be able to collect payments from an account even if no `bic` is returned.
Bank account details may be supplied using [local details](#appendix-local-bank-details) or an IBAN.
_ACH scheme_ For compliance reasons, an extra validation step is done using a third-party provider to make sure the customer's bank account can accept Direct Debit. If a bank account is discovered to be closed or invalid, the customer is requested to adjust the account number/routing number and succeed in this check to continue with the flow.
_Note:_ Usage of this endpoint is monitored. If your organisation relies on GoCardless for modulus or reachability checking but not for payment collection, please get in touch.
type BillingRequest ¶
type BillingRequest struct { Actions []BillingRequestActions `url:"actions,omitempty" json:"actions,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` FallbackEnabled bool `url:"fallback_enabled,omitempty" json:"fallback_enabled,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *BillingRequestLinks `url:"links,omitempty" json:"links,omitempty"` MandateRequest *BillingRequestMandateRequest `url:"mandate_request,omitempty" json:"mandate_request,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PaymentRequest *BillingRequestPaymentRequest `url:"payment_request,omitempty" json:"payment_request,omitempty"` PurposeCode string `url:"purpose_code,omitempty" json:"purpose_code,omitempty"` Resources *BillingRequestResources `url:"resources,omitempty" json:"resources,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
BillingRequest model
type BillingRequestActions ¶
type BillingRequestActions struct { AvailableCurrencies *[]string `url:"available_currencies,omitempty" json:"available_currencies,omitempty"` BankAuthorisation *BillingRequestActionsBankAuthorisation `url:"bank_authorisation,omitempty" json:"bank_authorisation,omitempty"` CollectCustomerDetails *BillingRequestActionsCollectCustomerDetails `url:"collect_customer_details,omitempty" json:"collect_customer_details,omitempty"` CompletesActions []string `url:"completes_actions,omitempty" json:"completes_actions,omitempty"` InstitutionGuessStatus string `url:"institution_guess_status,omitempty" json:"institution_guess_status,omitempty"` Required bool `url:"required,omitempty" json:"required,omitempty"` RequiresActions []string `url:"requires_actions,omitempty" json:"requires_actions,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` Type string `url:"type,omitempty" json:"type,omitempty"` }
type BillingRequestActionsAvailableCurrencies ¶
type BillingRequestActionsAvailableCurrencies struct {
Currency string `url:"currency,omitempty" json:"currency,omitempty"`
}
type BillingRequestActionsCollectCustomerDetails ¶
type BillingRequestActionsCollectCustomerDetails struct { DefaultCountryCode string `url:"default_country_code,omitempty" json:"default_country_code,omitempty"` IncompleteFields *BillingRequestActionsCollectCustomerDetailsIncompleteFields `url:"incomplete_fields,omitempty" json:"incomplete_fields,omitempty"` }
type BillingRequestCancelParams ¶
type BillingRequestCancelParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
BillingRequestCancelParams parameters
type BillingRequestChooseCurrencyParams ¶
type BillingRequestChooseCurrencyParams struct { Currency string `url:"currency,omitempty" json:"currency,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
BillingRequestChooseCurrencyParams parameters
type BillingRequestCollectBankAccountParams ¶
type BillingRequestCollectBankAccountParams struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountNumberSuffix string `url:"account_number_suffix,omitempty" json:"account_number_suffix,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayId string `url:"pay_id,omitempty" json:"pay_id,omitempty"` }
BillingRequestCollectBankAccountParams parameters
type BillingRequestCollectCustomerDetailsParams ¶
type BillingRequestCollectCustomerDetailsParams struct { Customer *BillingRequestCollectCustomerDetailsParamsCustomer `url:"customer,omitempty" json:"customer,omitempty"` CustomerBillingDetail *BillingRequestCollectCustomerDetailsParamsCustomerBillingDetail `url:"customer_billing_detail,omitempty" json:"customer_billing_detail,omitempty"` }
BillingRequestCollectCustomerDetailsParams parameters
type BillingRequestCollectCustomerDetailsParamsCustomer ¶
type BillingRequestCollectCustomerDetailsParamsCustomer struct { CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` }
type BillingRequestCollectCustomerDetailsParamsCustomerBillingDetail ¶
type BillingRequestCollectCustomerDetailsParamsCustomerBillingDetail struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` IpAddress string `url:"ip_address,omitempty" json:"ip_address,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type BillingRequestConfirmPayerDetailsParams ¶
type BillingRequestConfirmPayerDetailsParams struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerRequestedDualSignature bool `url:"payer_requested_dual_signature,omitempty" json:"payer_requested_dual_signature,omitempty"` }
BillingRequestConfirmPayerDetailsParams parameters
type BillingRequestCreateParams ¶
type BillingRequestCreateParams struct { FallbackEnabled bool `url:"fallback_enabled,omitempty" json:"fallback_enabled,omitempty"` Links *BillingRequestCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` MandateRequest *BillingRequestCreateParamsMandateRequest `url:"mandate_request,omitempty" json:"mandate_request,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PaymentRequest *BillingRequestCreateParamsPaymentRequest `url:"payment_request,omitempty" json:"payment_request,omitempty"` PurposeCode string `url:"purpose_code,omitempty" json:"purpose_code,omitempty"` }
BillingRequestCreateParams parameters
type BillingRequestCreateParamsMandateRequest ¶
type BillingRequestCreateParamsMandateRequest struct { AuthorisationSource string `url:"authorisation_source,omitempty" json:"authorisation_source,omitempty"` Constraints *BillingRequestCreateParamsMandateRequestConstraints `url:"constraints,omitempty" json:"constraints,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Verify string `url:"verify,omitempty" json:"verify,omitempty"` }
type BillingRequestCreateParamsMandateRequestConstraints ¶
type BillingRequestCreateParamsMandateRequestConstraints struct { EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` MaxAmountPerPayment int `url:"max_amount_per_payment,omitempty" json:"max_amount_per_payment,omitempty"` PeriodicLimits []BillingRequestCreateParamsMandateRequestConstraintsPeriodicLimits `url:"periodic_limits,omitempty" json:"periodic_limits,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` }
type BillingRequestCreateParamsMandateRequestConstraintsPeriodicLimits ¶
type BillingRequestCreateParamsMandateRequestConstraintsPeriodicLimits struct { Alignment string `url:"alignment,omitempty" json:"alignment,omitempty"` MaxPayments int `url:"max_payments,omitempty" json:"max_payments,omitempty"` MaxTotalAmount int `url:"max_total_amount,omitempty" json:"max_total_amount,omitempty"` Period string `url:"period,omitempty" json:"period,omitempty"` }
type BillingRequestCreateParamsPaymentRequest ¶
type BillingRequestCreateParamsPaymentRequest struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` FundsSettlement string `url:"funds_settlement,omitempty" json:"funds_settlement,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
type BillingRequestFallbackParams ¶
type BillingRequestFallbackParams struct { }
BillingRequestFallbackParams parameters
type BillingRequestFlow ¶
type BillingRequestFlow struct { AuthorisationUrl string `url:"authorisation_url,omitempty" json:"authorisation_url,omitempty"` AutoFulfil bool `url:"auto_fulfil,omitempty" json:"auto_fulfil,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` CustomerDetailsCaptured bool `url:"customer_details_captured,omitempty" json:"customer_details_captured,omitempty"` ExitUri string `url:"exit_uri,omitempty" json:"exit_uri,omitempty"` ExpiresAt string `url:"expires_at,omitempty" json:"expires_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Links *BillingRequestFlowLinks `url:"links,omitempty" json:"links,omitempty"` LockBankAccount bool `url:"lock_bank_account,omitempty" json:"lock_bank_account,omitempty"` LockCurrency bool `url:"lock_currency,omitempty" json:"lock_currency,omitempty"` LockCustomerDetails bool `url:"lock_customer_details,omitempty" json:"lock_customer_details,omitempty"` PrefilledBankAccount *BillingRequestFlowPrefilledBankAccount `url:"prefilled_bank_account,omitempty" json:"prefilled_bank_account,omitempty"` PrefilledCustomer *BillingRequestFlowPrefilledCustomer `url:"prefilled_customer,omitempty" json:"prefilled_customer,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` SessionToken string `url:"session_token,omitempty" json:"session_token,omitempty"` ShowRedirectButtons bool `url:"show_redirect_buttons,omitempty" json:"show_redirect_buttons,omitempty"` ShowSuccessRedirectButton bool `url:"show_success_redirect_button,omitempty" json:"show_success_redirect_button,omitempty"` }
BillingRequestFlow model
type BillingRequestFlowCreateParams ¶
type BillingRequestFlowCreateParams struct { AutoFulfil bool `url:"auto_fulfil,omitempty" json:"auto_fulfil,omitempty"` CustomerDetailsCaptured bool `url:"customer_details_captured,omitempty" json:"customer_details_captured,omitempty"` ExitUri string `url:"exit_uri,omitempty" json:"exit_uri,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Links BillingRequestFlowCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` LockBankAccount bool `url:"lock_bank_account,omitempty" json:"lock_bank_account,omitempty"` LockCurrency bool `url:"lock_currency,omitempty" json:"lock_currency,omitempty"` LockCustomerDetails bool `url:"lock_customer_details,omitempty" json:"lock_customer_details,omitempty"` PrefilledBankAccount *BillingRequestFlowCreateParamsPrefilledBankAccount `url:"prefilled_bank_account,omitempty" json:"prefilled_bank_account,omitempty"` PrefilledCustomer *BillingRequestFlowCreateParamsPrefilledCustomer `url:"prefilled_customer,omitempty" json:"prefilled_customer,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` ShowRedirectButtons bool `url:"show_redirect_buttons,omitempty" json:"show_redirect_buttons,omitempty"` ShowSuccessRedirectButton bool `url:"show_success_redirect_button,omitempty" json:"show_success_redirect_button,omitempty"` }
BillingRequestFlowCreateParams parameters
type BillingRequestFlowCreateParamsLinks ¶
type BillingRequestFlowCreateParamsLinks struct {
BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"`
}
type BillingRequestFlowCreateParamsPrefilledBankAccount ¶
type BillingRequestFlowCreateParamsPrefilledBankAccount struct {
AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"`
}
type BillingRequestFlowCreateParamsPrefilledCustomer ¶
type BillingRequestFlowCreateParamsPrefilledCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type BillingRequestFlowInitialiseParams ¶
type BillingRequestFlowInitialiseParams struct { }
BillingRequestFlowInitialiseParams parameters
type BillingRequestFlowLinks ¶
type BillingRequestFlowLinks struct {
BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"`
}
type BillingRequestFlowPrefilledBankAccount ¶
type BillingRequestFlowPrefilledBankAccount struct {
AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"`
}
type BillingRequestFlowPrefilledCustomer ¶
type BillingRequestFlowPrefilledCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type BillingRequestFlowService ¶
type BillingRequestFlowService interface { Create(ctx context.Context, p BillingRequestFlowCreateParams, opts ...RequestOption) (*BillingRequestFlow, error) Initialise(ctx context.Context, identity string, p BillingRequestFlowInitialiseParams, opts ...RequestOption) (*BillingRequestFlow, error) }
type BillingRequestFlowServiceImpl ¶
type BillingRequestFlowServiceImpl struct {
// contains filtered or unexported fields
}
BillingRequestFlowService manages billing_request_flows
func (*BillingRequestFlowServiceImpl) Create ¶
func (s *BillingRequestFlowServiceImpl) Create(ctx context.Context, p BillingRequestFlowCreateParams, opts ...RequestOption) (*BillingRequestFlow, error)
Create Creates a new billing request flow.
func (*BillingRequestFlowServiceImpl) Initialise ¶
func (s *BillingRequestFlowServiceImpl) Initialise(ctx context.Context, identity string, p BillingRequestFlowInitialiseParams, opts ...RequestOption) (*BillingRequestFlow, error)
Initialise Returns the flow having generated a fresh session token which can be used to power integrations that manipulate the flow.
type BillingRequestFulfilParams ¶
type BillingRequestFulfilParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
BillingRequestFulfilParams parameters
type BillingRequestLinks ¶
type BillingRequestLinks struct { BankAuthorisation string `url:"bank_authorisation,omitempty" json:"bank_authorisation,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` CustomerBillingDetail string `url:"customer_billing_detail,omitempty" json:"customer_billing_detail,omitempty"` MandateRequest string `url:"mandate_request,omitempty" json:"mandate_request,omitempty"` MandateRequestMandate string `url:"mandate_request_mandate,omitempty" json:"mandate_request_mandate,omitempty"` Organisation string `url:"organisation,omitempty" json:"organisation,omitempty"` PaymentProvider string `url:"payment_provider,omitempty" json:"payment_provider,omitempty"` PaymentRequest string `url:"payment_request,omitempty" json:"payment_request,omitempty"` PaymentRequestPayment string `url:"payment_request_payment,omitempty" json:"payment_request_payment,omitempty"` }
type BillingRequestListPagingIterator ¶
type BillingRequestListPagingIterator struct {
// contains filtered or unexported fields
}
func (*BillingRequestListPagingIterator) Next ¶
func (c *BillingRequestListPagingIterator) Next() bool
func (*BillingRequestListPagingIterator) Value ¶
func (c *BillingRequestListPagingIterator) Value(ctx context.Context) (*BillingRequestListResult, error)
type BillingRequestListParams ¶
type BillingRequestListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
BillingRequestListParams parameters
type BillingRequestListResult ¶
type BillingRequestListResult struct { BillingRequests []BillingRequest `json:"billing_requests"` Meta BillingRequestListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type BillingRequestListResultMeta ¶
type BillingRequestListResultMeta struct { Cursors *BillingRequestListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type BillingRequestMandateRequest ¶
type BillingRequestMandateRequest struct { AuthorisationSource string `url:"authorisation_source,omitempty" json:"authorisation_source,omitempty"` ConsentType string `url:"consent_type,omitempty" json:"consent_type,omitempty"` Constraints *BillingRequestMandateRequestConstraints `url:"constraints,omitempty" json:"constraints,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` Links *BillingRequestMandateRequestLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerRequestedDualSignature bool `url:"payer_requested_dual_signature,omitempty" json:"payer_requested_dual_signature,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Verify string `url:"verify,omitempty" json:"verify,omitempty"` }
type BillingRequestMandateRequestConstraints ¶
type BillingRequestMandateRequestConstraints struct { EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` MaxAmountPerPayment int `url:"max_amount_per_payment,omitempty" json:"max_amount_per_payment,omitempty"` PeriodicLimits []BillingRequestMandateRequestConstraintsPeriodicLimits `url:"periodic_limits,omitempty" json:"periodic_limits,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` }
type BillingRequestMandateRequestConstraintsPeriodicLimits ¶
type BillingRequestMandateRequestConstraintsPeriodicLimits struct { Alignment string `url:"alignment,omitempty" json:"alignment,omitempty"` MaxPayments int `url:"max_payments,omitempty" json:"max_payments,omitempty"` MaxTotalAmount int `url:"max_total_amount,omitempty" json:"max_total_amount,omitempty"` Period string `url:"period,omitempty" json:"period,omitempty"` }
type BillingRequestMandateRequestLinks ¶
type BillingRequestMandateRequestLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type BillingRequestNotifyParams ¶
type BillingRequestNotifyParams struct { NotificationType string `url:"notification_type,omitempty" json:"notification_type,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` }
BillingRequestNotifyParams parameters
type BillingRequestPaymentRequest ¶
type BillingRequestPaymentRequest struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` FundsSettlement string `url:"funds_settlement,omitempty" json:"funds_settlement,omitempty"` Links *BillingRequestPaymentRequestLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
type BillingRequestPaymentRequestLinks ¶
type BillingRequestPaymentRequestLinks struct {
Payment string `url:"payment,omitempty" json:"payment,omitempty"`
}
type BillingRequestResources ¶
type BillingRequestResources struct { Customer *BillingRequestResourcesCustomer `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount *BillingRequestResourcesCustomerBankAccount `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` CustomerBillingDetail *BillingRequestResourcesCustomerBillingDetail `url:"customer_billing_detail,omitempty" json:"customer_billing_detail,omitempty"` }
type BillingRequestResourcesCustomer ¶
type BillingRequestResourcesCustomer struct { CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` }
type BillingRequestResourcesCustomerBankAccount ¶
type BillingRequestResourcesCustomerBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankAccountToken string `url:"bank_account_token,omitempty" json:"bank_account_token,omitempty"` BankName string `url:"bank_name,omitempty" json:"bank_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Enabled bool `url:"enabled,omitempty" json:"enabled,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *BillingRequestResourcesCustomerBankAccountLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
type BillingRequestResourcesCustomerBankAccountLinks ¶
type BillingRequestResourcesCustomerBankAccountLinks struct {
Customer string `url:"customer,omitempty" json:"customer,omitempty"`
}
type BillingRequestResourcesCustomerBillingDetail ¶
type BillingRequestResourcesCustomerBillingDetail struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` IpAddress string `url:"ip_address,omitempty" json:"ip_address,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` Schemes []string `url:"schemes,omitempty" json:"schemes,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type BillingRequestSelectInstitutionParams ¶
type BillingRequestSelectInstitutionParams struct { CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Institution string `url:"institution,omitempty" json:"institution,omitempty"` }
BillingRequestSelectInstitutionParams parameters
type BillingRequestService ¶
type BillingRequestService interface { Create(ctx context.Context, p BillingRequestCreateParams, opts ...RequestOption) (*BillingRequest, error) CollectCustomerDetails(ctx context.Context, identity string, p BillingRequestCollectCustomerDetailsParams, opts ...RequestOption) (*BillingRequest, error) CollectBankAccount(ctx context.Context, identity string, p BillingRequestCollectBankAccountParams, opts ...RequestOption) (*BillingRequest, error) ConfirmPayerDetails(ctx context.Context, identity string, p BillingRequestConfirmPayerDetailsParams, opts ...RequestOption) (*BillingRequest, error) Fulfil(ctx context.Context, identity string, p BillingRequestFulfilParams, opts ...RequestOption) (*BillingRequest, error) Cancel(ctx context.Context, identity string, p BillingRequestCancelParams, opts ...RequestOption) (*BillingRequest, error) List(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) (*BillingRequestListResult, error) All(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) *BillingRequestListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequest, error) Notify(ctx context.Context, identity string, p BillingRequestNotifyParams, opts ...RequestOption) (*BillingRequest, error) Fallback(ctx context.Context, identity string, p BillingRequestFallbackParams, opts ...RequestOption) (*BillingRequest, error) ChooseCurrency(ctx context.Context, identity string, p BillingRequestChooseCurrencyParams, opts ...RequestOption) (*BillingRequest, error) SelectInstitution(ctx context.Context, identity string, p BillingRequestSelectInstitutionParams, opts ...RequestOption) (*BillingRequest, error) }
type BillingRequestServiceImpl ¶
type BillingRequestServiceImpl struct {
// contains filtered or unexported fields
}
BillingRequestService manages billing_requests
func (*BillingRequestServiceImpl) All ¶
func (s *BillingRequestServiceImpl) All(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) *BillingRequestListPagingIterator
func (*BillingRequestServiceImpl) Cancel ¶
func (s *BillingRequestServiceImpl) Cancel(ctx context.Context, identity string, p BillingRequestCancelParams, opts ...RequestOption) (*BillingRequest, error)
Cancel Immediately cancels a billing request, causing all billing request flows to expire.
func (*BillingRequestServiceImpl) ChooseCurrency ¶
func (s *BillingRequestServiceImpl) ChooseCurrency(ctx context.Context, identity string, p BillingRequestChooseCurrencyParams, opts ...RequestOption) (*BillingRequest, error)
ChooseCurrency This will allow for the updating of the currency and subsequently the scheme if needed for a Billing Request. This will only be available for mandate only flows which do not have the lock_currency flag set to true on the Billing Request Flow. It will also not support any request which has a payments request.
func (*BillingRequestServiceImpl) CollectBankAccount ¶
func (s *BillingRequestServiceImpl) CollectBankAccount(ctx context.Context, identity string, p BillingRequestCollectBankAccountParams, opts ...RequestOption) (*BillingRequest, error)
CollectBankAccount If the billing request has a pending <code>collect_bank_account</code> action, this endpoint can be used to collect the details in order to complete it.
The endpoint takes the same payload as Customer Bank Accounts, but check the bank account is valid for the billing request scheme before creating and attaching it.
If the scheme is PayTo and the pay_id is available, this can be included in the payload along with the country_code.
_ACH scheme_ For compliance reasons, an extra validation step is done using a third-party provider to make sure the customer's bank account can accept Direct Debit. If a bank account is discovered to be closed or invalid, the customer is requested to adjust the account number/routing number and succeed in this check to continue with the flow.
_BACS scheme_ [Payer Name Verification](https://hub.gocardless.com/s/article/Introduction-to-Payer-Name-Verification?language=en_GB) is enabled by default for UK based bank accounts, meaning we verify the account holder name and bank account number match the details held by the relevant bank.
func (*BillingRequestServiceImpl) CollectCustomerDetails ¶
func (s *BillingRequestServiceImpl) CollectCustomerDetails(ctx context.Context, identity string, p BillingRequestCollectCustomerDetailsParams, opts ...RequestOption) (*BillingRequest, error)
CollectCustomerDetails If the billing request has a pending <code>collect_customer_details</code> action, this endpoint can be used to collect the details in order to complete it.
The endpoint takes the same payload as Customers, but checks that the customer fields are populated correctly for the billing request scheme.
Whatever is provided to this endpoint is used to update the referenced customer, and will take effect immediately after the request is successful.
func (*BillingRequestServiceImpl) ConfirmPayerDetails ¶
func (s *BillingRequestServiceImpl) ConfirmPayerDetails(ctx context.Context, identity string, p BillingRequestConfirmPayerDetailsParams, opts ...RequestOption) (*BillingRequest, error)
ConfirmPayerDetails This is needed when you have a mandate request. As a scheme compliance rule we are required to allow the payer to crosscheck the details entered by them and confirm it.
func (*BillingRequestServiceImpl) Create ¶
func (s *BillingRequestServiceImpl) Create(ctx context.Context, p BillingRequestCreateParams, opts ...RequestOption) (*BillingRequest, error)
Create
func (*BillingRequestServiceImpl) Fallback ¶
func (s *BillingRequestServiceImpl) Fallback(ctx context.Context, identity string, p BillingRequestFallbackParams, opts ...RequestOption) (*BillingRequest, error)
Fallback Triggers a fallback from the open-banking flow to direct debit. Note, the billing request must have fallback enabled.
func (*BillingRequestServiceImpl) Fulfil ¶
func (s *BillingRequestServiceImpl) Fulfil(ctx context.Context, identity string, p BillingRequestFulfilParams, opts ...RequestOption) (*BillingRequest, error)
Fulfil If a billing request is ready to be fulfilled, call this endpoint to cause it to fulfil, executing the payment.
func (*BillingRequestServiceImpl) Get ¶
func (s *BillingRequestServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequest, error)
Get Fetches a billing request
func (*BillingRequestServiceImpl) List ¶
func (s *BillingRequestServiceImpl) List(ctx context.Context, p BillingRequestListParams, opts ...RequestOption) (*BillingRequestListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your billing requests.
func (*BillingRequestServiceImpl) Notify ¶
func (s *BillingRequestServiceImpl) Notify(ctx context.Context, identity string, p BillingRequestNotifyParams, opts ...RequestOption) (*BillingRequest, error)
Notify Notifies the customer linked to the billing request, asking them to authorise it. Currently, the customer can only be notified by email.
This endpoint is currently supported only for Instant Bank Pay Billing Requests.
func (*BillingRequestServiceImpl) SelectInstitution ¶
func (s *BillingRequestServiceImpl) SelectInstitution(ctx context.Context, identity string, p BillingRequestSelectInstitutionParams, opts ...RequestOption) (*BillingRequest, error)
SelectInstitution Creates an Institution object and attaches it to the Billing Request
type BillingRequestTemplate ¶
type BillingRequestTemplate struct { AuthorisationUrl string `url:"authorisation_url,omitempty" json:"authorisation_url,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` MandateRequestCurrency string `url:"mandate_request_currency,omitempty" json:"mandate_request_currency,omitempty"` MandateRequestDescription string `url:"mandate_request_description,omitempty" json:"mandate_request_description,omitempty"` MandateRequestMetadata map[string]interface{} `url:"mandate_request_metadata,omitempty" json:"mandate_request_metadata,omitempty"` MandateRequestScheme string `url:"mandate_request_scheme,omitempty" json:"mandate_request_scheme,omitempty"` MandateRequestVerify string `url:"mandate_request_verify,omitempty" json:"mandate_request_verify,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentRequestAmount int `url:"payment_request_amount,omitempty" json:"payment_request_amount,omitempty"` PaymentRequestCurrency string `url:"payment_request_currency,omitempty" json:"payment_request_currency,omitempty"` PaymentRequestDescription string `url:"payment_request_description,omitempty" json:"payment_request_description,omitempty"` PaymentRequestMetadata map[string]interface{} `url:"payment_request_metadata,omitempty" json:"payment_request_metadata,omitempty"` PaymentRequestScheme string `url:"payment_request_scheme,omitempty" json:"payment_request_scheme,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` UpdatedAt string `url:"updated_at,omitempty" json:"updated_at,omitempty"` }
BillingRequestTemplate model
type BillingRequestTemplateCreateParams ¶
type BillingRequestTemplateCreateParams struct { Links *BillingRequestTemplateCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` MandateRequestCurrency string `url:"mandate_request_currency,omitempty" json:"mandate_request_currency,omitempty"` MandateRequestDescription string `url:"mandate_request_description,omitempty" json:"mandate_request_description,omitempty"` MandateRequestMetadata map[string]interface{} `url:"mandate_request_metadata,omitempty" json:"mandate_request_metadata,omitempty"` MandateRequestScheme string `url:"mandate_request_scheme,omitempty" json:"mandate_request_scheme,omitempty"` MandateRequestVerify string `url:"mandate_request_verify,omitempty" json:"mandate_request_verify,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentRequestAmount int `url:"payment_request_amount,omitempty" json:"payment_request_amount,omitempty"` PaymentRequestCurrency string `url:"payment_request_currency,omitempty" json:"payment_request_currency,omitempty"` PaymentRequestDescription string `url:"payment_request_description,omitempty" json:"payment_request_description,omitempty"` PaymentRequestMetadata map[string]interface{} `url:"payment_request_metadata,omitempty" json:"payment_request_metadata,omitempty"` PaymentRequestScheme string `url:"payment_request_scheme,omitempty" json:"payment_request_scheme,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` }
BillingRequestTemplateCreateParams parameters
type BillingRequestTemplateCreateParamsLinks ¶
type BillingRequestTemplateCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type BillingRequestTemplateListPagingIterator ¶
type BillingRequestTemplateListPagingIterator struct {
// contains filtered or unexported fields
}
func (*BillingRequestTemplateListPagingIterator) Next ¶
func (c *BillingRequestTemplateListPagingIterator) Next() bool
func (*BillingRequestTemplateListPagingIterator) Value ¶
func (c *BillingRequestTemplateListPagingIterator) Value(ctx context.Context) (*BillingRequestTemplateListResult, error)
type BillingRequestTemplateListParams ¶
type BillingRequestTemplateListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
BillingRequestTemplateListParams parameters
type BillingRequestTemplateListResult ¶
type BillingRequestTemplateListResult struct { BillingRequestTemplates []BillingRequestTemplate `json:"billing_request_templates"` Meta BillingRequestTemplateListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type BillingRequestTemplateListResultMeta ¶
type BillingRequestTemplateListResultMeta struct { Cursors *BillingRequestTemplateListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type BillingRequestTemplateService ¶
type BillingRequestTemplateService interface { List(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) (*BillingRequestTemplateListResult, error) All(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) *BillingRequestTemplateListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequestTemplate, error) Create(ctx context.Context, p BillingRequestTemplateCreateParams, opts ...RequestOption) (*BillingRequestTemplate, error) Update(ctx context.Context, identity string, p BillingRequestTemplateUpdateParams, opts ...RequestOption) (*BillingRequestTemplate, error) }
type BillingRequestTemplateServiceImpl ¶
type BillingRequestTemplateServiceImpl struct {
// contains filtered or unexported fields
}
BillingRequestTemplateService manages billing_request_templates
func (*BillingRequestTemplateServiceImpl) All ¶
func (s *BillingRequestTemplateServiceImpl) All(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) *BillingRequestTemplateListPagingIterator
func (*BillingRequestTemplateServiceImpl) Create ¶
func (s *BillingRequestTemplateServiceImpl) Create(ctx context.Context, p BillingRequestTemplateCreateParams, opts ...RequestOption) (*BillingRequestTemplate, error)
Create
func (*BillingRequestTemplateServiceImpl) Get ¶
func (s *BillingRequestTemplateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*BillingRequestTemplate, error)
Get Fetches a Billing Request Template
func (*BillingRequestTemplateServiceImpl) List ¶
func (s *BillingRequestTemplateServiceImpl) List(ctx context.Context, p BillingRequestTemplateListParams, opts ...RequestOption) (*BillingRequestTemplateListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your Billing Request Templates.
func (*BillingRequestTemplateServiceImpl) Update ¶
func (s *BillingRequestTemplateServiceImpl) Update(ctx context.Context, identity string, p BillingRequestTemplateUpdateParams, opts ...RequestOption) (*BillingRequestTemplate, error)
Update Updates a Billing Request Template, which will affect all future Billing Requests created by this template.
type BillingRequestTemplateUpdateParams ¶
type BillingRequestTemplateUpdateParams struct { MandateRequestCurrency string `url:"mandate_request_currency,omitempty" json:"mandate_request_currency,omitempty"` MandateRequestDescription string `url:"mandate_request_description,omitempty" json:"mandate_request_description,omitempty"` MandateRequestMetadata map[string]interface{} `url:"mandate_request_metadata,omitempty" json:"mandate_request_metadata,omitempty"` MandateRequestScheme string `url:"mandate_request_scheme,omitempty" json:"mandate_request_scheme,omitempty"` MandateRequestVerify string `url:"mandate_request_verify,omitempty" json:"mandate_request_verify,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentRequestAmount int `url:"payment_request_amount,omitempty" json:"payment_request_amount,omitempty"` PaymentRequestCurrency string `url:"payment_request_currency,omitempty" json:"payment_request_currency,omitempty"` PaymentRequestDescription string `url:"payment_request_description,omitempty" json:"payment_request_description,omitempty"` PaymentRequestMetadata map[string]interface{} `url:"payment_request_metadata,omitempty" json:"payment_request_metadata,omitempty"` PaymentRequestScheme string `url:"payment_request_scheme,omitempty" json:"payment_request_scheme,omitempty"` RedirectUri string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` }
BillingRequestTemplateUpdateParams parameters
type Block ¶
type Block struct { Active bool `url:"active,omitempty" json:"active,omitempty"` BlockType string `url:"block_type,omitempty" json:"block_type,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` ReasonDescription string `url:"reason_description,omitempty" json:"reason_description,omitempty"` ReasonType string `url:"reason_type,omitempty" json:"reason_type,omitempty"` ResourceReference string `url:"resource_reference,omitempty" json:"resource_reference,omitempty"` UpdatedAt string `url:"updated_at,omitempty" json:"updated_at,omitempty"` }
Block model
type BlockBlockByRefParams ¶
type BlockBlockByRefParams struct { Active bool `url:"active,omitempty" json:"active,omitempty"` ReasonDescription string `url:"reason_description,omitempty" json:"reason_description,omitempty"` ReasonType string `url:"reason_type,omitempty" json:"reason_type,omitempty"` ReferenceType string `url:"reference_type,omitempty" json:"reference_type,omitempty"` ReferenceValue string `url:"reference_value,omitempty" json:"reference_value,omitempty"` }
BlockBlockByRefParams parameters
type BlockBlockByRefResult ¶
type BlockBlockByRefResult struct { Blocks []Block `json:"blocks"` Meta BlockBlockByRefResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type BlockBlockByRefResultMeta ¶
type BlockBlockByRefResultMeta struct { Cursors *BlockBlockByRefResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type BlockCreateParams ¶
type BlockCreateParams struct { Active bool `url:"active,omitempty" json:"active,omitempty"` BlockType string `url:"block_type,omitempty" json:"block_type,omitempty"` ReasonDescription string `url:"reason_description,omitempty" json:"reason_description,omitempty"` ReasonType string `url:"reason_type,omitempty" json:"reason_type,omitempty"` ResourceReference string `url:"resource_reference,omitempty" json:"resource_reference,omitempty"` }
BlockCreateParams parameters
type BlockListPagingIterator ¶
type BlockListPagingIterator struct {
// contains filtered or unexported fields
}
func (*BlockListPagingIterator) Next ¶
func (c *BlockListPagingIterator) Next() bool
func (*BlockListPagingIterator) Value ¶
func (c *BlockListPagingIterator) Value(ctx context.Context) (*BlockListResult, error)
type BlockListParams ¶
type BlockListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Block string `url:"block,omitempty" json:"block,omitempty"` BlockType string `url:"block_type,omitempty" json:"block_type,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` ReasonType string `url:"reason_type,omitempty" json:"reason_type,omitempty"` UpdatedAt string `url:"updated_at,omitempty" json:"updated_at,omitempty"` }
BlockListParams parameters
type BlockListResult ¶
type BlockListResult struct { Blocks []Block `json:"blocks"` Meta BlockListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type BlockListResultMeta ¶
type BlockListResultMeta struct { Cursors *BlockListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type BlockService ¶
type BlockService interface { Create(ctx context.Context, p BlockCreateParams, opts ...RequestOption) (*Block, error) Get(ctx context.Context, identity string, opts ...RequestOption) (*Block, error) List(ctx context.Context, p BlockListParams, opts ...RequestOption) (*BlockListResult, error) All(ctx context.Context, p BlockListParams, opts ...RequestOption) *BlockListPagingIterator Disable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error) Enable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error) BlockByRef(ctx context.Context, p BlockBlockByRefParams, opts ...RequestOption) ( *BlockBlockByRefResult, error) }
type BlockServiceImpl ¶
type BlockServiceImpl struct {
// contains filtered or unexported fields
}
BlockService manages blocks
func (*BlockServiceImpl) All ¶
func (s *BlockServiceImpl) All(ctx context.Context, p BlockListParams, opts ...RequestOption) *BlockListPagingIterator
func (*BlockServiceImpl) BlockByRef ¶
func (s *BlockServiceImpl) BlockByRef(ctx context.Context, p BlockBlockByRefParams, opts ...RequestOption) ( *BlockBlockByRefResult, error)
BlockByRef Creates new blocks for a given reference. By default blocks will be active. Returns 201 if at least one block was created. Returns 200 if there were no new blocks created.
func (*BlockServiceImpl) Create ¶
func (s *BlockServiceImpl) Create(ctx context.Context, p BlockCreateParams, opts ...RequestOption) (*Block, error)
Create Creates a new Block of a given type. By default it will be active.
func (*BlockServiceImpl) Disable ¶
func (s *BlockServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
Disable Disables a block so that it no longer will prevent mandate creation.
func (*BlockServiceImpl) Enable ¶
func (s *BlockServiceImpl) Enable(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
Enable Enables a previously disabled block so that it will prevent mandate creation
func (*BlockServiceImpl) Get ¶
func (s *BlockServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Block, error)
Get Retrieves the details of an existing block.
func (*BlockServiceImpl) List ¶
func (s *BlockServiceImpl) List(ctx context.Context, p BlockListParams, opts ...RequestOption) (*BlockListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your blocks.
type ConfigOption ¶
ConfigOption used to initialise the client
func WithClient ¶
func WithClient(client *http.Client) ConfigOption
WithClient configures the net/http client
func WithEndpoint ¶
func WithEndpoint(endpoint string) ConfigOption
WithEndpoint configures the endpoint hosting the API
type Creditor ¶
type Creditor struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` BankReferencePrefix string `url:"bank_reference_prefix,omitempty" json:"bank_reference_prefix,omitempty"` CanCreateRefunds bool `url:"can_create_refunds,omitempty" json:"can_create_refunds,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` CreditorType string `url:"creditor_type,omitempty" json:"creditor_type,omitempty"` CustomPaymentPagesEnabled bool `url:"custom_payment_pages_enabled,omitempty" json:"custom_payment_pages_enabled,omitempty"` FxPayoutCurrency string `url:"fx_payout_currency,omitempty" json:"fx_payout_currency,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *CreditorLinks `url:"links,omitempty" json:"links,omitempty"` LogoUrl string `url:"logo_url,omitempty" json:"logo_url,omitempty"` MandateImportsEnabled bool `url:"mandate_imports_enabled,omitempty" json:"mandate_imports_enabled,omitempty"` MerchantResponsibleForNotifications bool `url:"merchant_responsible_for_notifications,omitempty" json:"merchant_responsible_for_notifications,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SchemeIdentifiers []CreditorSchemeIdentifiers `url:"scheme_identifiers,omitempty" json:"scheme_identifiers,omitempty"` VerificationStatus string `url:"verification_status,omitempty" json:"verification_status,omitempty"` }
Creditor model
type CreditorBankAccount ¶
type CreditorBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankName string `url:"bank_name,omitempty" json:"bank_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Enabled bool `url:"enabled,omitempty" json:"enabled,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *CreditorBankAccountLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` VerificationStatus string `url:"verification_status,omitempty" json:"verification_status,omitempty"` }
CreditorBankAccount model
type CreditorBankAccountCreateParams ¶
type CreditorBankAccountCreateParams struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Links CreditorBankAccountCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` SetAsDefaultPayoutAccount bool `url:"set_as_default_payout_account,omitempty" json:"set_as_default_payout_account,omitempty"` }
CreditorBankAccountCreateParams parameters
type CreditorBankAccountCreateParamsLinks ¶
type CreditorBankAccountCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type CreditorBankAccountLinks ¶
type CreditorBankAccountLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type CreditorBankAccountListPagingIterator ¶
type CreditorBankAccountListPagingIterator struct {
// contains filtered or unexported fields
}
func (*CreditorBankAccountListPagingIterator) Next ¶
func (c *CreditorBankAccountListPagingIterator) Next() bool
func (*CreditorBankAccountListPagingIterator) Value ¶
func (c *CreditorBankAccountListPagingIterator) Value(ctx context.Context) (*CreditorBankAccountListResult, error)
type CreditorBankAccountListParams ¶
type CreditorBankAccountListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *CreditorBankAccountListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Enabled bool `url:"enabled,omitempty" json:"enabled,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
CreditorBankAccountListParams parameters
type CreditorBankAccountListResult ¶
type CreditorBankAccountListResult struct { CreditorBankAccounts []CreditorBankAccount `json:"creditor_bank_accounts"` Meta CreditorBankAccountListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type CreditorBankAccountListResultMeta ¶
type CreditorBankAccountListResultMeta struct { Cursors *CreditorBankAccountListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type CreditorBankAccountService ¶
type CreditorBankAccountService interface { Create(ctx context.Context, p CreditorBankAccountCreateParams, opts ...RequestOption) (*CreditorBankAccount, error) List(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) (*CreditorBankAccountListResult, error) All(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) *CreditorBankAccountListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error) }
type CreditorBankAccountServiceImpl ¶
type CreditorBankAccountServiceImpl struct {
// contains filtered or unexported fields
}
CreditorBankAccountService manages creditor_bank_accounts
func (*CreditorBankAccountServiceImpl) All ¶
func (s *CreditorBankAccountServiceImpl) All(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) *CreditorBankAccountListPagingIterator
func (*CreditorBankAccountServiceImpl) Create ¶
func (s *CreditorBankAccountServiceImpl) Create(ctx context.Context, p CreditorBankAccountCreateParams, opts ...RequestOption) (*CreditorBankAccount, error)
Create Creates a new creditor bank account object.
func (*CreditorBankAccountServiceImpl) Disable ¶
func (s *CreditorBankAccountServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error)
Disable Immediately disables the bank account, no money can be paid out to a disabled account.
This will return a `disable_failed` error if the bank account has already been disabled.
A disabled bank account can be re-enabled by creating a new bank account resource with the same details.
func (*CreditorBankAccountServiceImpl) Get ¶
func (s *CreditorBankAccountServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*CreditorBankAccount, error)
Get Retrieves the details of an existing creditor bank account.
func (*CreditorBankAccountServiceImpl) List ¶
func (s *CreditorBankAccountServiceImpl) List(ctx context.Context, p CreditorBankAccountListParams, opts ...RequestOption) (*CreditorBankAccountListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your creditor bank accounts.
type CreditorCreateParams ¶
type CreditorCreateParams struct { BankReferencePrefix string `url:"bank_reference_prefix,omitempty" json:"bank_reference_prefix,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreditorType string `url:"creditor_type,omitempty" json:"creditor_type,omitempty"` Links map[string]interface{} `url:"links,omitempty" json:"links,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` }
CreditorCreateParams parameters
type CreditorLinks ¶
type CreditorLinks struct { DefaultAudPayoutAccount string `url:"default_aud_payout_account,omitempty" json:"default_aud_payout_account,omitempty"` DefaultCadPayoutAccount string `url:"default_cad_payout_account,omitempty" json:"default_cad_payout_account,omitempty"` DefaultDkkPayoutAccount string `url:"default_dkk_payout_account,omitempty" json:"default_dkk_payout_account,omitempty"` DefaultEurPayoutAccount string `url:"default_eur_payout_account,omitempty" json:"default_eur_payout_account,omitempty"` DefaultGbpPayoutAccount string `url:"default_gbp_payout_account,omitempty" json:"default_gbp_payout_account,omitempty"` DefaultNzdPayoutAccount string `url:"default_nzd_payout_account,omitempty" json:"default_nzd_payout_account,omitempty"` DefaultSekPayoutAccount string `url:"default_sek_payout_account,omitempty" json:"default_sek_payout_account,omitempty"` DefaultUsdPayoutAccount string `url:"default_usd_payout_account,omitempty" json:"default_usd_payout_account,omitempty"` }
type CreditorListPagingIterator ¶
type CreditorListPagingIterator struct {
// contains filtered or unexported fields
}
func (*CreditorListPagingIterator) Next ¶
func (c *CreditorListPagingIterator) Next() bool
func (*CreditorListPagingIterator) Value ¶
func (c *CreditorListPagingIterator) Value(ctx context.Context) (*CreditorListResult, error)
type CreditorListParams ¶
type CreditorListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *CreditorListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
CreditorListParams parameters
type CreditorListResult ¶
type CreditorListResult struct { Creditors []Creditor `json:"creditors"` Meta CreditorListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type CreditorListResultMeta ¶
type CreditorListResultMeta struct { Cursors *CreditorListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type CreditorSchemeIdentifiers ¶
type CreditorSchemeIdentifiers struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` CanSpecifyMandateReference bool `url:"can_specify_mandate_reference,omitempty" json:"can_specify_mandate_reference,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` MinimumAdvanceNotice int `url:"minimum_advance_notice,omitempty" json:"minimum_advance_notice,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
type CreditorService ¶
type CreditorService interface { Create(ctx context.Context, p CreditorCreateParams, opts ...RequestOption) (*Creditor, error) List(ctx context.Context, p CreditorListParams, opts ...RequestOption) (*CreditorListResult, error) All(ctx context.Context, p CreditorListParams, opts ...RequestOption) *CreditorListPagingIterator Get(ctx context.Context, identity string, p CreditorGetParams, opts ...RequestOption) (*Creditor, error) Update(ctx context.Context, identity string, p CreditorUpdateParams, opts ...RequestOption) (*Creditor, error) }
type CreditorServiceImpl ¶
type CreditorServiceImpl struct {
// contains filtered or unexported fields
}
CreditorService manages creditors
func (*CreditorServiceImpl) All ¶
func (s *CreditorServiceImpl) All(ctx context.Context, p CreditorListParams, opts ...RequestOption) *CreditorListPagingIterator
func (*CreditorServiceImpl) Create ¶
func (s *CreditorServiceImpl) Create(ctx context.Context, p CreditorCreateParams, opts ...RequestOption) (*Creditor, error)
Create Creates a new creditor.
func (*CreditorServiceImpl) Get ¶
func (s *CreditorServiceImpl) Get(ctx context.Context, identity string, p CreditorGetParams, opts ...RequestOption) (*Creditor, error)
Get Retrieves the details of an existing creditor.
func (*CreditorServiceImpl) List ¶
func (s *CreditorServiceImpl) List(ctx context.Context, p CreditorListParams, opts ...RequestOption) (*CreditorListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your creditors.
func (*CreditorServiceImpl) Update ¶
func (s *CreditorServiceImpl) Update(ctx context.Context, identity string, p CreditorUpdateParams, opts ...RequestOption) (*Creditor, error)
Update Updates a creditor object. Supports all of the fields supported when creating a creditor.
type CreditorUpdateParams ¶
type CreditorUpdateParams struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` BankReferencePrefix string `url:"bank_reference_prefix,omitempty" json:"bank_reference_prefix,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Links *CreditorUpdateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` }
CreditorUpdateParams parameters
type CreditorUpdateParamsLinks ¶
type CreditorUpdateParamsLinks struct { DefaultAudPayoutAccount string `url:"default_aud_payout_account,omitempty" json:"default_aud_payout_account,omitempty"` DefaultCadPayoutAccount string `url:"default_cad_payout_account,omitempty" json:"default_cad_payout_account,omitempty"` DefaultDkkPayoutAccount string `url:"default_dkk_payout_account,omitempty" json:"default_dkk_payout_account,omitempty"` DefaultEurPayoutAccount string `url:"default_eur_payout_account,omitempty" json:"default_eur_payout_account,omitempty"` DefaultGbpPayoutAccount string `url:"default_gbp_payout_account,omitempty" json:"default_gbp_payout_account,omitempty"` DefaultNzdPayoutAccount string `url:"default_nzd_payout_account,omitempty" json:"default_nzd_payout_account,omitempty"` DefaultSekPayoutAccount string `url:"default_sek_payout_account,omitempty" json:"default_sek_payout_account,omitempty"` DefaultUsdPayoutAccount string `url:"default_usd_payout_account,omitempty" json:"default_usd_payout_account,omitempty"` }
type CurrencyExchangeRate ¶
type CurrencyExchangeRate struct { Rate string `url:"rate,omitempty" json:"rate,omitempty"` Source string `url:"source,omitempty" json:"source,omitempty"` Target string `url:"target,omitempty" json:"target,omitempty"` Time string `url:"time,omitempty" json:"time,omitempty"` }
CurrencyExchangeRate model
type CurrencyExchangeRateListPagingIterator ¶
type CurrencyExchangeRateListPagingIterator struct {
// contains filtered or unexported fields
}
func (*CurrencyExchangeRateListPagingIterator) Next ¶
func (c *CurrencyExchangeRateListPagingIterator) Next() bool
func (*CurrencyExchangeRateListPagingIterator) Value ¶
func (c *CurrencyExchangeRateListPagingIterator) Value(ctx context.Context) (*CurrencyExchangeRateListResult, error)
type CurrencyExchangeRateListParams ¶
type CurrencyExchangeRateListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Source string `url:"source,omitempty" json:"source,omitempty"` Target string `url:"target,omitempty" json:"target,omitempty"` }
CurrencyExchangeRateListParams parameters
type CurrencyExchangeRateListResult ¶
type CurrencyExchangeRateListResult struct { CurrencyExchangeRates []CurrencyExchangeRate `json:"currency_exchange_rates"` Meta CurrencyExchangeRateListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type CurrencyExchangeRateListResultMeta ¶
type CurrencyExchangeRateListResultMeta struct { Cursors *CurrencyExchangeRateListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type CurrencyExchangeRateService ¶
type CurrencyExchangeRateService interface { List(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) (*CurrencyExchangeRateListResult, error) All(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) *CurrencyExchangeRateListPagingIterator }
type CurrencyExchangeRateServiceImpl ¶
type CurrencyExchangeRateServiceImpl struct {
// contains filtered or unexported fields
}
CurrencyExchangeRateService manages currency_exchange_rates
func (*CurrencyExchangeRateServiceImpl) All ¶
func (s *CurrencyExchangeRateServiceImpl) All(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) *CurrencyExchangeRateListPagingIterator
func (*CurrencyExchangeRateServiceImpl) List ¶
func (s *CurrencyExchangeRateServiceImpl) List(ctx context.Context, p CurrencyExchangeRateListParams, opts ...RequestOption) (*CurrencyExchangeRateListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of all exchange rates.
type Customer ¶
type Customer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
Customer model
type CustomerBankAccount ¶
type CustomerBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankAccountToken string `url:"bank_account_token,omitempty" json:"bank_account_token,omitempty"` BankName string `url:"bank_name,omitempty" json:"bank_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Enabled bool `url:"enabled,omitempty" json:"enabled,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *CustomerBankAccountLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
CustomerBankAccount model
type CustomerBankAccountCreateParams ¶
type CustomerBankAccountCreateParams struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Links CustomerBankAccountCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
CustomerBankAccountCreateParams parameters
type CustomerBankAccountLinks ¶
type CustomerBankAccountLinks struct {
Customer string `url:"customer,omitempty" json:"customer,omitempty"`
}
type CustomerBankAccountListPagingIterator ¶
type CustomerBankAccountListPagingIterator struct {
// contains filtered or unexported fields
}
func (*CustomerBankAccountListPagingIterator) Next ¶
func (c *CustomerBankAccountListPagingIterator) Next() bool
func (*CustomerBankAccountListPagingIterator) Value ¶
func (c *CustomerBankAccountListPagingIterator) Value(ctx context.Context) (*CustomerBankAccountListResult, error)
type CustomerBankAccountListParams ¶
type CustomerBankAccountListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *CustomerBankAccountListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` Enabled bool `url:"enabled,omitempty" json:"enabled,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
CustomerBankAccountListParams parameters
type CustomerBankAccountListResult ¶
type CustomerBankAccountListResult struct { CustomerBankAccounts []CustomerBankAccount `json:"customer_bank_accounts"` Meta CustomerBankAccountListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type CustomerBankAccountListResultMeta ¶
type CustomerBankAccountListResultMeta struct { Cursors *CustomerBankAccountListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type CustomerBankAccountService ¶
type CustomerBankAccountService interface { Create(ctx context.Context, p CustomerBankAccountCreateParams, opts ...RequestOption) (*CustomerBankAccount, error) List(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) (*CustomerBankAccountListResult, error) All(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) *CustomerBankAccountListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error) Update(ctx context.Context, identity string, p CustomerBankAccountUpdateParams, opts ...RequestOption) (*CustomerBankAccount, error) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error) }
type CustomerBankAccountServiceImpl ¶
type CustomerBankAccountServiceImpl struct {
// contains filtered or unexported fields
}
CustomerBankAccountService manages customer_bank_accounts
func (*CustomerBankAccountServiceImpl) All ¶
func (s *CustomerBankAccountServiceImpl) All(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) *CustomerBankAccountListPagingIterator
func (*CustomerBankAccountServiceImpl) Create ¶
func (s *CustomerBankAccountServiceImpl) Create(ctx context.Context, p CustomerBankAccountCreateParams, opts ...RequestOption) (*CustomerBankAccount, error)
Create Creates a new customer bank account object.
There are three different ways to supply bank account details:
- [Local details](#appendix-local-bank-details)
- IBAN
- [Customer Bank Account Tokens](#javascript-flow-create-a-customer-bank-account-token)
For more information on the different fields required in each country, see [local bank details](#appendix-local-bank-details).
func (*CustomerBankAccountServiceImpl) Disable ¶
func (s *CustomerBankAccountServiceImpl) Disable(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error)
Disable Immediately cancels all associated mandates and cancellable payments.
This will return a `disable_failed` error if the bank account has already been disabled.
A disabled bank account can be re-enabled by creating a new bank account resource with the same details.
func (*CustomerBankAccountServiceImpl) Get ¶
func (s *CustomerBankAccountServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*CustomerBankAccount, error)
Get Retrieves the details of an existing bank account.
func (*CustomerBankAccountServiceImpl) List ¶
func (s *CustomerBankAccountServiceImpl) List(ctx context.Context, p CustomerBankAccountListParams, opts ...RequestOption) (*CustomerBankAccountListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your bank accounts.
func (*CustomerBankAccountServiceImpl) Update ¶
func (s *CustomerBankAccountServiceImpl) Update(ctx context.Context, identity string, p CustomerBankAccountUpdateParams, opts ...RequestOption) (*CustomerBankAccount, error)
Update Updates a customer bank account object. Only the metadata parameter is allowed.
type CustomerBankAccountUpdateParams ¶
type CustomerBankAccountUpdateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
CustomerBankAccountUpdateParams parameters
type CustomerCreateParams ¶
type CustomerCreateParams struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
CustomerCreateParams parameters
type CustomerListPagingIterator ¶
type CustomerListPagingIterator struct {
// contains filtered or unexported fields
}
func (*CustomerListPagingIterator) Next ¶
func (c *CustomerListPagingIterator) Next() bool
func (*CustomerListPagingIterator) Value ¶
func (c *CustomerListPagingIterator) Value(ctx context.Context) (*CustomerListResult, error)
type CustomerListParams ¶
type CustomerListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *CustomerListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` SortDirection string `url:"sort_direction,omitempty" json:"sort_direction,omitempty"` SortField string `url:"sort_field,omitempty" json:"sort_field,omitempty"` }
CustomerListParams parameters
type CustomerListResult ¶
type CustomerListResult struct { Customers []Customer `json:"customers"` Meta CustomerListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type CustomerListResultMeta ¶
type CustomerListResultMeta struct { Cursors *CustomerListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type CustomerNotification ¶
type CustomerNotification struct { ActionTaken string `url:"action_taken,omitempty" json:"action_taken,omitempty"` ActionTakenAt string `url:"action_taken_at,omitempty" json:"action_taken_at,omitempty"` ActionTakenBy string `url:"action_taken_by,omitempty" json:"action_taken_by,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *CustomerNotificationLinks `url:"links,omitempty" json:"links,omitempty"` Type string `url:"type,omitempty" json:"type,omitempty"` }
CustomerNotification model
type CustomerNotificationHandleParams ¶
type CustomerNotificationHandleParams struct { }
CustomerNotificationHandleParams parameters
type CustomerNotificationLinks ¶
type CustomerNotificationLinks struct { Customer string `url:"customer,omitempty" json:"customer,omitempty"` Event string `url:"event,omitempty" json:"event,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` Payment string `url:"payment,omitempty" json:"payment,omitempty"` Refund string `url:"refund,omitempty" json:"refund,omitempty"` Subscription string `url:"subscription,omitempty" json:"subscription,omitempty"` }
type CustomerNotificationService ¶
type CustomerNotificationService interface {
Handle(ctx context.Context, identity string, p CustomerNotificationHandleParams, opts ...RequestOption) (*CustomerNotification, error)
}
type CustomerNotificationServiceImpl ¶
type CustomerNotificationServiceImpl struct {
// contains filtered or unexported fields
}
CustomerNotificationService manages customer_notifications
func (*CustomerNotificationServiceImpl) Handle ¶
func (s *CustomerNotificationServiceImpl) Handle(ctx context.Context, identity string, p CustomerNotificationHandleParams, opts ...RequestOption) (*CustomerNotification, error)
Handle "Handling" a notification means that you have sent the notification yourself (and don't want GoCardless to send it). If the notification has already been actioned, or the deadline to notify has passed, this endpoint will return an `already_actioned` error and you should not take further action. This endpoint takes no additional parameters.
type CustomerService ¶
type CustomerService interface { Create(ctx context.Context, p CustomerCreateParams, opts ...RequestOption) (*Customer, error) List(ctx context.Context, p CustomerListParams, opts ...RequestOption) (*CustomerListResult, error) All(ctx context.Context, p CustomerListParams, opts ...RequestOption) *CustomerListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Customer, error) Update(ctx context.Context, identity string, p CustomerUpdateParams, opts ...RequestOption) (*Customer, error) Remove(ctx context.Context, identity string, p CustomerRemoveParams, opts ...RequestOption) (*Customer, error) }
type CustomerServiceImpl ¶
type CustomerServiceImpl struct {
// contains filtered or unexported fields
}
CustomerService manages customers
func (*CustomerServiceImpl) All ¶
func (s *CustomerServiceImpl) All(ctx context.Context, p CustomerListParams, opts ...RequestOption) *CustomerListPagingIterator
func (*CustomerServiceImpl) Create ¶
func (s *CustomerServiceImpl) Create(ctx context.Context, p CustomerCreateParams, opts ...RequestOption) (*Customer, error)
Create Creates a new customer object.
func (*CustomerServiceImpl) Get ¶
func (s *CustomerServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Customer, error)
Get Retrieves the details of an existing customer.
func (*CustomerServiceImpl) List ¶
func (s *CustomerServiceImpl) List(ctx context.Context, p CustomerListParams, opts ...RequestOption) (*CustomerListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your customers.
func (*CustomerServiceImpl) Remove ¶
func (s *CustomerServiceImpl) Remove(ctx context.Context, identity string, p CustomerRemoveParams, opts ...RequestOption) (*Customer, error)
Remove Removed customers will not appear in search results or lists of customers (in our API or exports), and it will not be possible to load an individually removed customer by ID.
<p class="restricted-notice"><strong>The action of removing a customer cannot be reversed, so please use with care.</strong></p>
func (*CustomerServiceImpl) Update ¶
func (s *CustomerServiceImpl) Update(ctx context.Context, identity string, p CustomerUpdateParams, opts ...RequestOption) (*Customer, error)
Update Updates a customer object. Supports all of the fields supported when creating a customer.
type CustomerUpdateParams ¶
type CustomerUpdateParams struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
CustomerUpdateParams parameters
type ErrorLinks ¶ added in v3.5.0
type Event ¶
type Event struct { Action string `url:"action,omitempty" json:"action,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` CustomerNotifications []EventCustomerNotifications `url:"customer_notifications,omitempty" json:"customer_notifications,omitempty"` Details *EventDetails `url:"details,omitempty" json:"details,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *EventLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` ResourceMetadata map[string]interface{} `url:"resource_metadata,omitempty" json:"resource_metadata,omitempty"` ResourceType string `url:"resource_type,omitempty" json:"resource_type,omitempty"` }
Event model
type EventDetails ¶
type EventDetails struct { BankAccountId string `url:"bank_account_id,omitempty" json:"bank_account_id,omitempty"` Cause string `url:"cause,omitempty" json:"cause,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` ItemCount int `url:"item_count,omitempty" json:"item_count,omitempty"` NotRetriedReason string `url:"not_retried_reason,omitempty" json:"not_retried_reason,omitempty"` Origin string `url:"origin,omitempty" json:"origin,omitempty"` Property string `url:"property,omitempty" json:"property,omitempty"` ReasonCode string `url:"reason_code,omitempty" json:"reason_code,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` WillAttemptRetry bool `url:"will_attempt_retry,omitempty" json:"will_attempt_retry,omitempty"` }
type EventHandler ¶
EventHandler is the interface that must be implemented to handle events from a webhook.
type EventHandlerFunc ¶
EventHandlerFunc can be used to convert a function into an EventHandler
func (EventHandlerFunc) HandleEvent ¶
func (h EventHandlerFunc) HandleEvent(e Event) error
HandleEvent will call the EventHandlerFunc function
type EventLinks ¶
type EventLinks struct { BankAuthorisation string `url:"bank_authorisation,omitempty" json:"bank_authorisation,omitempty"` BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"` BillingRequestFlow string `url:"billing_request_flow,omitempty" json:"billing_request_flow,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` InstalmentSchedule string `url:"instalment_schedule,omitempty" json:"instalment_schedule,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` MandateRequestMandate string `url:"mandate_request_mandate,omitempty" json:"mandate_request_mandate,omitempty"` NewCustomerBankAccount string `url:"new_customer_bank_account,omitempty" json:"new_customer_bank_account,omitempty"` NewMandate string `url:"new_mandate,omitempty" json:"new_mandate,omitempty"` Organisation string `url:"organisation,omitempty" json:"organisation,omitempty"` ParentEvent string `url:"parent_event,omitempty" json:"parent_event,omitempty"` PayerAuthorisation string `url:"payer_authorisation,omitempty" json:"payer_authorisation,omitempty"` Payment string `url:"payment,omitempty" json:"payment,omitempty"` PaymentRequestPayment string `url:"payment_request_payment,omitempty" json:"payment_request_payment,omitempty"` Payout string `url:"payout,omitempty" json:"payout,omitempty"` PreviousCustomerBankAccount string `url:"previous_customer_bank_account,omitempty" json:"previous_customer_bank_account,omitempty"` Refund string `url:"refund,omitempty" json:"refund,omitempty"` SchemeIdentifier string `url:"scheme_identifier,omitempty" json:"scheme_identifier,omitempty"` Subscription string `url:"subscription,omitempty" json:"subscription,omitempty"` }
type EventListPagingIterator ¶
type EventListPagingIterator struct {
// contains filtered or unexported fields
}
func (*EventListPagingIterator) Next ¶
func (c *EventListPagingIterator) Next() bool
func (*EventListPagingIterator) Value ¶
func (c *EventListPagingIterator) Value(ctx context.Context) (*EventListResult, error)
type EventListParams ¶
type EventListParams struct { Action string `url:"action,omitempty" json:"action,omitempty"` After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"` CreatedAt *EventListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Export string `url:"export,omitempty" json:"export,omitempty"` Include string `url:"include,omitempty" json:"include,omitempty"` InstalmentSchedule string `url:"instalment_schedule,omitempty" json:"instalment_schedule,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` ParentEvent string `url:"parent_event,omitempty" json:"parent_event,omitempty"` PayerAuthorisation string `url:"payer_authorisation,omitempty" json:"payer_authorisation,omitempty"` Payment string `url:"payment,omitempty" json:"payment,omitempty"` Payout string `url:"payout,omitempty" json:"payout,omitempty"` Refund string `url:"refund,omitempty" json:"refund,omitempty"` ResourceType string `url:"resource_type,omitempty" json:"resource_type,omitempty"` SchemeIdentifier string `url:"scheme_identifier,omitempty" json:"scheme_identifier,omitempty"` Subscription string `url:"subscription,omitempty" json:"subscription,omitempty"` }
EventListParams parameters
type EventListResult ¶
type EventListResult struct { Events []Event `json:"events"` Meta EventListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type EventListResultMeta ¶
type EventListResultMeta struct { Cursors *EventListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type EventService ¶
type EventService interface { List(ctx context.Context, p EventListParams, opts ...RequestOption) (*EventListResult, error) All(ctx context.Context, p EventListParams, opts ...RequestOption) *EventListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Event, error) }
type EventServiceImpl ¶
type EventServiceImpl struct {
// contains filtered or unexported fields
}
EventService manages events
func (*EventServiceImpl) All ¶
func (s *EventServiceImpl) All(ctx context.Context, p EventListParams, opts ...RequestOption) *EventListPagingIterator
func (*EventServiceImpl) Get ¶
func (s *EventServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Event, error)
Get Retrieves the details of a single event.
func (*EventServiceImpl) List ¶
func (s *EventServiceImpl) List(ctx context.Context, p EventListParams, opts ...RequestOption) (*EventListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your events.
type Export ¶ added in v3.11.0
type Export struct { CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` DownloadUrl string `url:"download_url,omitempty" json:"download_url,omitempty"` ExportType string `url:"export_type,omitempty" json:"export_type,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` }
Export model
type ExportListPagingIterator ¶ added in v3.11.0
type ExportListPagingIterator struct {
// contains filtered or unexported fields
}
func (*ExportListPagingIterator) Next ¶ added in v3.11.0
func (c *ExportListPagingIterator) Next() bool
func (*ExportListPagingIterator) Value ¶ added in v3.11.0
func (c *ExportListPagingIterator) Value(ctx context.Context) (*ExportListResult, error)
type ExportListParams ¶ added in v3.11.0
type ExportListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
ExportListParams parameters
type ExportListResult ¶ added in v3.11.0
type ExportListResult struct { Exports []Export `json:"exports"` Meta ExportListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type ExportListResultMeta ¶ added in v3.11.0
type ExportListResultMeta struct { Cursors *ExportListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type ExportListResultMetaCursors ¶ added in v3.11.0
type ExportService ¶ added in v3.11.0
type ExportService interface { Get(ctx context.Context, identity string, opts ...RequestOption) (*Export, error) List(ctx context.Context, p ExportListParams, opts ...RequestOption) (*ExportListResult, error) All(ctx context.Context, p ExportListParams, opts ...RequestOption) *ExportListPagingIterator }
type ExportServiceImpl ¶ added in v3.11.0
type ExportServiceImpl struct {
// contains filtered or unexported fields
}
ExportService manages exports
func (*ExportServiceImpl) All ¶ added in v3.11.0
func (s *ExportServiceImpl) All(ctx context.Context, p ExportListParams, opts ...RequestOption) *ExportListPagingIterator
func (*ExportServiceImpl) Get ¶ added in v3.11.0
func (s *ExportServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Export, error)
Get Returns a single export.
func (*ExportServiceImpl) List ¶ added in v3.11.0
func (s *ExportServiceImpl) List(ctx context.Context, p ExportListParams, opts ...RequestOption) (*ExportListResult, error)
List Returns a list of exports which are available for download.
type InstalmentSchedule ¶
type InstalmentSchedule struct { CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *InstalmentScheduleLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentErrors map[string]interface{} `url:"payment_errors,omitempty" json:"payment_errors,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` TotalAmount int `url:"total_amount,omitempty" json:"total_amount,omitempty"` }
InstalmentSchedule model
type InstalmentScheduleCancelParams ¶
type InstalmentScheduleCancelParams struct { }
InstalmentScheduleCancelParams parameters
type InstalmentScheduleCreateWithDatesParams ¶
type InstalmentScheduleCreateWithDatesParams struct { AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Instalments []InstalmentScheduleCreateWithDatesParamsInstalments `url:"instalments,omitempty" json:"instalments,omitempty"` Links InstalmentScheduleCreateWithDatesParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentReference string `url:"payment_reference,omitempty" json:"payment_reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` TotalAmount int `url:"total_amount,omitempty" json:"total_amount,omitempty"` }
InstalmentScheduleCreateWithDatesParams parameters
type InstalmentScheduleCreateWithDatesParamsLinks ¶
type InstalmentScheduleCreateWithDatesParamsLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type InstalmentScheduleCreateWithScheduleParams ¶
type InstalmentScheduleCreateWithScheduleParams struct { AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Instalments InstalmentScheduleCreateWithScheduleParamsInstalments `url:"instalments,omitempty" json:"instalments,omitempty"` Links InstalmentScheduleCreateWithScheduleParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentReference string `url:"payment_reference,omitempty" json:"payment_reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` TotalAmount int `url:"total_amount,omitempty" json:"total_amount,omitempty"` }
InstalmentScheduleCreateWithScheduleParams parameters
type InstalmentScheduleCreateWithScheduleParamsInstalments ¶
type InstalmentScheduleCreateWithScheduleParamsInstalments struct { Amounts []int `url:"amounts,omitempty" json:"amounts,omitempty"` Interval int `url:"interval,omitempty" json:"interval,omitempty"` IntervalUnit string `url:"interval_unit,omitempty" json:"interval_unit,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` }
type InstalmentScheduleCreateWithScheduleParamsLinks ¶
type InstalmentScheduleCreateWithScheduleParamsLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type InstalmentScheduleLinks ¶
type InstalmentScheduleListPagingIterator ¶
type InstalmentScheduleListPagingIterator struct {
// contains filtered or unexported fields
}
func (*InstalmentScheduleListPagingIterator) Next ¶
func (c *InstalmentScheduleListPagingIterator) Next() bool
func (*InstalmentScheduleListPagingIterator) Value ¶
func (c *InstalmentScheduleListPagingIterator) Value(ctx context.Context) (*InstalmentScheduleListResult, error)
type InstalmentScheduleListParams ¶
type InstalmentScheduleListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *InstalmentScheduleListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` Status []string `url:"status,omitempty" json:"status,omitempty"` }
InstalmentScheduleListParams parameters
type InstalmentScheduleListResult ¶
type InstalmentScheduleListResult struct { InstalmentSchedules []InstalmentSchedule `json:"instalment_schedules"` Meta InstalmentScheduleListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type InstalmentScheduleListResultMeta ¶
type InstalmentScheduleListResultMeta struct { Cursors *InstalmentScheduleListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type InstalmentScheduleService ¶
type InstalmentScheduleService interface { CreateWithDates(ctx context.Context, p InstalmentScheduleCreateWithDatesParams, opts ...RequestOption) (*InstalmentSchedule, error) CreateWithSchedule(ctx context.Context, p InstalmentScheduleCreateWithScheduleParams, opts ...RequestOption) (*InstalmentSchedule, error) List(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) (*InstalmentScheduleListResult, error) All(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) *InstalmentScheduleListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*InstalmentSchedule, error) Update(ctx context.Context, identity string, p InstalmentScheduleUpdateParams, opts ...RequestOption) (*InstalmentSchedule, error) Cancel(ctx context.Context, identity string, p InstalmentScheduleCancelParams, opts ...RequestOption) (*InstalmentSchedule, error) }
type InstalmentScheduleServiceImpl ¶
type InstalmentScheduleServiceImpl struct {
// contains filtered or unexported fields
}
InstalmentScheduleService manages instalment_schedules
func (*InstalmentScheduleServiceImpl) All ¶
func (s *InstalmentScheduleServiceImpl) All(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) *InstalmentScheduleListPagingIterator
func (*InstalmentScheduleServiceImpl) Cancel ¶
func (s *InstalmentScheduleServiceImpl) Cancel(ctx context.Context, identity string, p InstalmentScheduleCancelParams, opts ...RequestOption) (*InstalmentSchedule, error)
Cancel Immediately cancels an instalment schedule; no further payments will be collected for it.
This will fail with a `cancellation_failed` error if the instalment schedule is already cancelled or has completed.
func (*InstalmentScheduleServiceImpl) CreateWithDates ¶
func (s *InstalmentScheduleServiceImpl) CreateWithDates(ctx context.Context, p InstalmentScheduleCreateWithDatesParams, opts ...RequestOption) (*InstalmentSchedule, error)
CreateWithDates Creates a new instalment schedule object, along with the associated payments. This API is recommended if you know the specific dates you wish to charge. Otherwise, please check out the [scheduling version](#instalment-schedules-create-with-schedule).
The `instalments` property is an array of payment properties (`amount` and `charge_date`).
It can take quite a while to create the associated payments, so the API will return the status as `pending` initially. When processing has completed, a subsequent GET request for the instalment schedule will either have the status `success` and link to the created payments, or the status `error` and detailed information about the failures.
func (*InstalmentScheduleServiceImpl) CreateWithSchedule ¶
func (s *InstalmentScheduleServiceImpl) CreateWithSchedule(ctx context.Context, p InstalmentScheduleCreateWithScheduleParams, opts ...RequestOption) (*InstalmentSchedule, error)
CreateWithSchedule Creates a new instalment schedule object, along with the associated payments. This API is recommended if you wish to use the GoCardless scheduling logic. For finer control over the individual dates, please check out the [alternative version](#instalment-schedules-create-with-dates).
It can take quite a while to create the associated payments, so the API will return the status as `pending` initially. When processing has completed, a subsequent GET request for the instalment schedule will either have the status `success` and link to the created payments, or the status `error` and detailed information about the failures.
func (*InstalmentScheduleServiceImpl) Get ¶
func (s *InstalmentScheduleServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*InstalmentSchedule, error)
Get Retrieves the details of an existing instalment schedule.
func (*InstalmentScheduleServiceImpl) List ¶
func (s *InstalmentScheduleServiceImpl) List(ctx context.Context, p InstalmentScheduleListParams, opts ...RequestOption) (*InstalmentScheduleListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your instalment schedules.
func (*InstalmentScheduleServiceImpl) Update ¶
func (s *InstalmentScheduleServiceImpl) Update(ctx context.Context, identity string, p InstalmentScheduleUpdateParams, opts ...RequestOption) (*InstalmentSchedule, error)
Update Updates an instalment schedule. This accepts only the metadata parameter.
type InstalmentScheduleUpdateParams ¶
type InstalmentScheduleUpdateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
InstalmentScheduleUpdateParams parameters
type Institution ¶
type Institution struct { AutocompletesCollectBankAccount bool `url:"autocompletes_collect_bank_account,omitempty" json:"autocompletes_collect_bank_account,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` IconUrl string `url:"icon_url,omitempty" json:"icon_url,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` LogoUrl string `url:"logo_url,omitempty" json:"logo_url,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` }
Institution model
type InstitutionListForBillingRequestParams ¶
type InstitutionListForBillingRequestParams struct { CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Ids []string `url:"ids,omitempty" json:"ids,omitempty"` Search string `url:"search,omitempty" json:"search,omitempty"` }
InstitutionListForBillingRequestParams parameters
type InstitutionListForBillingRequestResult ¶
type InstitutionListForBillingRequestResult struct { Institutions []Institution `json:"institutions"` Meta InstitutionListForBillingRequestResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type InstitutionListForBillingRequestResultMeta ¶
type InstitutionListForBillingRequestResultMeta struct { Cursors *InstitutionListForBillingRequestResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type InstitutionListParams ¶
type InstitutionListParams struct {
CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"`
}
InstitutionListParams parameters
type InstitutionListResult ¶
type InstitutionListResult struct { Institutions []Institution `json:"institutions"` Meta InstitutionListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type InstitutionListResultMeta ¶
type InstitutionListResultMeta struct { Cursors *InstitutionListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type InstitutionService ¶
type InstitutionService interface { List(ctx context.Context, p InstitutionListParams, opts ...RequestOption) (*InstitutionListResult, error) ListForBillingRequest(ctx context.Context, identity string, p InstitutionListForBillingRequestParams, opts ...RequestOption) ( *InstitutionListForBillingRequestResult, error) }
type InstitutionServiceImpl ¶
type InstitutionServiceImpl struct {
// contains filtered or unexported fields
}
InstitutionService manages institutions
func (*InstitutionServiceImpl) List ¶
func (s *InstitutionServiceImpl) List(ctx context.Context, p InstitutionListParams, opts ...RequestOption) (*InstitutionListResult, error)
List Returns a list of supported institutions.
func (*InstitutionServiceImpl) ListForBillingRequest ¶
func (s *InstitutionServiceImpl) ListForBillingRequest(ctx context.Context, identity string, p InstitutionListForBillingRequestParams, opts ...RequestOption) ( *InstitutionListForBillingRequestResult, error)
ListForBillingRequest Returns all institutions valid for a Billing Request.
This endpoint is currently supported only for FasterPayments.
type Logo ¶ added in v3.10.0
type Logo struct {
Id string `url:"id,omitempty" json:"id,omitempty"`
}
Logo model
type LogoCreateForCreditorParams ¶ added in v3.10.0
type LogoCreateForCreditorParams struct { Image string `url:"image,omitempty" json:"image,omitempty"` Links *LogoCreateForCreditorParamsLinks `url:"links,omitempty" json:"links,omitempty"` }
LogoCreateForCreditorParams parameters
type LogoCreateForCreditorParamsLinks ¶ added in v3.10.0
type LogoCreateForCreditorParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type LogoService ¶ added in v3.10.0
type LogoService interface {
CreateForCreditor(ctx context.Context, p LogoCreateForCreditorParams, opts ...RequestOption) (*Logo, error)
}
type LogoServiceImpl ¶ added in v3.10.0
type LogoServiceImpl struct {
// contains filtered or unexported fields
}
LogoService manages logos
func (*LogoServiceImpl) CreateForCreditor ¶ added in v3.10.0
func (s *LogoServiceImpl) CreateForCreditor(ctx context.Context, p LogoCreateForCreditorParams, opts ...RequestOption) (*Logo, error)
CreateForCreditor Creates a new logo associated with a creditor. If a creditor already has a logo, this will update the existing logo linked to the creditor.
We support JPG and PNG formats. Your logo will be scaled to a maximum of 300px by 40px. For more guidance on how to upload logos that will look great across your customer payment page and notification emails see [here](https://developer.gocardless.com/gc-embed/setting-up-branding#tips_for_uploading_your_logo).
type Mandate ¶
type Mandate struct { AuthorisationSource string `url:"authorisation_source,omitempty" json:"authorisation_source,omitempty"` ConsentParameters *MandateConsentParameters `url:"consent_parameters,omitempty" json:"consent_parameters,omitempty"` ConsentType string `url:"consent_type,omitempty" json:"consent_type,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` FundsSettlement string `url:"funds_settlement,omitempty" json:"funds_settlement,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *MandateLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` NextPossibleChargeDate string `url:"next_possible_charge_date,omitempty" json:"next_possible_charge_date,omitempty"` NextPossibleStandardAchChargeDate string `url:"next_possible_standard_ach_charge_date,omitempty" json:"next_possible_standard_ach_charge_date,omitempty"` PaymentsRequireApproval bool `url:"payments_require_approval,omitempty" json:"payments_require_approval,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` VerifiedAt string `url:"verified_at,omitempty" json:"verified_at,omitempty"` }
Mandate model
type MandateCancelParams ¶
type MandateCancelParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
MandateCancelParams parameters
type MandateConsentParameters ¶
type MandateConsentParameters struct { EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` MaxAmountPerPayment int `url:"max_amount_per_payment,omitempty" json:"max_amount_per_payment,omitempty"` Periods []MandateConsentParametersPeriods `url:"periods,omitempty" json:"periods,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` }
type MandateConsentParametersPeriods ¶
type MandateConsentParametersPeriods struct { MaxAmountPerPeriod int `url:"max_amount_per_period,omitempty" json:"max_amount_per_period,omitempty"` MaxPaymentsPerPeriod int `url:"max_payments_per_period,omitempty" json:"max_payments_per_period,omitempty"` Period string `url:"period,omitempty" json:"period,omitempty"` }
type MandateCreateParams ¶
type MandateCreateParams struct { AuthorisationSource string `url:"authorisation_source,omitempty" json:"authorisation_source,omitempty"` Links MandateCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerIpAddress string `url:"payer_ip_address,omitempty" json:"payer_ip_address,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
MandateCreateParams parameters
type MandateImport ¶
type MandateImport struct { CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *MandateImportLinks `url:"links,omitempty" json:"links,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
MandateImport model
type MandateImportCancelParams ¶
type MandateImportCancelParams struct { }
MandateImportCancelParams parameters
type MandateImportCreateParams ¶
type MandateImportCreateParams struct { Links *MandateImportCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
MandateImportCreateParams parameters
type MandateImportCreateParamsLinks ¶ added in v3.6.0
type MandateImportCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type MandateImportEntry ¶
type MandateImportEntry struct { CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Links *MandateImportEntryLinks `url:"links,omitempty" json:"links,omitempty"` RecordIdentifier string `url:"record_identifier,omitempty" json:"record_identifier,omitempty"` }
MandateImportEntry model
type MandateImportEntryCreateParams ¶
type MandateImportEntryCreateParams struct { Amendment *MandateImportEntryCreateParamsAmendment `url:"amendment,omitempty" json:"amendment,omitempty"` BankAccount MandateImportEntryCreateParamsBankAccount `url:"bank_account,omitempty" json:"bank_account,omitempty"` Customer MandateImportEntryCreateParamsCustomer `url:"customer,omitempty" json:"customer,omitempty"` Links MandateImportEntryCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Mandate *MandateImportEntryCreateParamsMandate `url:"mandate,omitempty" json:"mandate,omitempty"` RecordIdentifier string `url:"record_identifier,omitempty" json:"record_identifier,omitempty"` }
MandateImportEntryCreateParams parameters
type MandateImportEntryCreateParamsAmendment ¶
type MandateImportEntryCreateParamsAmendment struct { OriginalCreditorId string `url:"original_creditor_id,omitempty" json:"original_creditor_id,omitempty"` OriginalCreditorName string `url:"original_creditor_name,omitempty" json:"original_creditor_name,omitempty"` OriginalMandateReference string `url:"original_mandate_reference,omitempty" json:"original_mandate_reference,omitempty"` }
type MandateImportEntryCreateParamsBankAccount ¶
type MandateImportEntryCreateParamsBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
type MandateImportEntryCreateParamsCustomer ¶
type MandateImportEntryCreateParamsCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type MandateImportEntryCreateParamsLinks ¶
type MandateImportEntryCreateParamsLinks struct {
MandateImport string `url:"mandate_import,omitempty" json:"mandate_import,omitempty"`
}
type MandateImportEntryCreateParamsMandate ¶ added in v3.9.0
type MandateImportEntryLinks ¶
type MandateImportEntryLinks struct { Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` MandateImport string `url:"mandate_import,omitempty" json:"mandate_import,omitempty"` }
type MandateImportEntryListPagingIterator ¶
type MandateImportEntryListPagingIterator struct {
// contains filtered or unexported fields
}
func (*MandateImportEntryListPagingIterator) Next ¶
func (c *MandateImportEntryListPagingIterator) Next() bool
func (*MandateImportEntryListPagingIterator) Value ¶
func (c *MandateImportEntryListPagingIterator) Value(ctx context.Context) (*MandateImportEntryListResult, error)
type MandateImportEntryListParams ¶
type MandateImportEntryListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` MandateImport string `url:"mandate_import,omitempty" json:"mandate_import,omitempty"` }
MandateImportEntryListParams parameters
type MandateImportEntryListResult ¶
type MandateImportEntryListResult struct { MandateImportEntries []MandateImportEntry `json:"mandate_import_entries"` Meta MandateImportEntryListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type MandateImportEntryListResultMeta ¶
type MandateImportEntryListResultMeta struct { Cursors *MandateImportEntryListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type MandateImportEntryService ¶
type MandateImportEntryService interface { Create(ctx context.Context, p MandateImportEntryCreateParams, opts ...RequestOption) (*MandateImportEntry, error) List(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) (*MandateImportEntryListResult, error) All(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) *MandateImportEntryListPagingIterator }
type MandateImportEntryServiceImpl ¶
type MandateImportEntryServiceImpl struct {
// contains filtered or unexported fields
}
MandateImportEntryService manages mandate_import_entries
func (*MandateImportEntryServiceImpl) All ¶
func (s *MandateImportEntryServiceImpl) All(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) *MandateImportEntryListPagingIterator
func (*MandateImportEntryServiceImpl) Create ¶
func (s *MandateImportEntryServiceImpl) Create(ctx context.Context, p MandateImportEntryCreateParams, opts ...RequestOption) (*MandateImportEntry, error)
Create For an existing [mandate import](#core-endpoints-mandate-imports), this endpoint can be used to add individual mandates to be imported into GoCardless.
You can add no more than 30,000 rows to a single mandate import. If you attempt to go over this limit, the API will return a `record_limit_exceeded` error.
func (*MandateImportEntryServiceImpl) List ¶
func (s *MandateImportEntryServiceImpl) List(ctx context.Context, p MandateImportEntryListParams, opts ...RequestOption) (*MandateImportEntryListResult, error)
List For an existing mandate import, this endpoint lists all of the entries attached.
After a mandate import has been submitted, you can use this endpoint to associate records in your system (using the `record_identifier` that you provided when creating the mandate import).
type MandateImportGetParams ¶
type MandateImportGetParams struct { }
MandateImportGetParams parameters
type MandateImportLinks ¶ added in v3.6.0
type MandateImportLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type MandateImportService ¶
type MandateImportService interface { Create(ctx context.Context, p MandateImportCreateParams, opts ...RequestOption) (*MandateImport, error) Get(ctx context.Context, identity string, p MandateImportGetParams, opts ...RequestOption) (*MandateImport, error) Submit(ctx context.Context, identity string, p MandateImportSubmitParams, opts ...RequestOption) (*MandateImport, error) Cancel(ctx context.Context, identity string, p MandateImportCancelParams, opts ...RequestOption) (*MandateImport, error) }
type MandateImportServiceImpl ¶
type MandateImportServiceImpl struct {
// contains filtered or unexported fields
}
MandateImportService manages mandate_imports
func (*MandateImportServiceImpl) Cancel ¶
func (s *MandateImportServiceImpl) Cancel(ctx context.Context, identity string, p MandateImportCancelParams, opts ...RequestOption) (*MandateImport, error)
Cancel Cancels the mandate import, which aborts the import process and stops the mandates being set up in GoCardless. Once the import has been cancelled, it can no longer have entries added to it. Mandate imports which have already been submitted or processed cannot be cancelled.
func (*MandateImportServiceImpl) Create ¶
func (s *MandateImportServiceImpl) Create(ctx context.Context, p MandateImportCreateParams, opts ...RequestOption) (*MandateImport, error)
Create Mandate imports are first created, before mandates are added one-at-a-time, so this endpoint merely signals the start of the import process. Once you've finished adding entries to an import, you should [submit](#mandate-imports-submit-a-mandate-import) it.
func (*MandateImportServiceImpl) Get ¶
func (s *MandateImportServiceImpl) Get(ctx context.Context, identity string, p MandateImportGetParams, opts ...RequestOption) (*MandateImport, error)
Get Returns a single mandate import.
func (*MandateImportServiceImpl) Submit ¶
func (s *MandateImportServiceImpl) Submit(ctx context.Context, identity string, p MandateImportSubmitParams, opts ...RequestOption) (*MandateImport, error)
Submit Submits the mandate import, which allows it to be processed by a member of the GoCardless team. Once the import has been submitted, it can no longer have entries added to it.
In our sandbox environment, to aid development, we automatically process mandate imports approximately 10 seconds after they are submitted. This will allow you to test both the "submitted" response and wait for the webhook to confirm the processing has begun.
type MandateImportSubmitParams ¶
type MandateImportSubmitParams struct { }
MandateImportSubmitParams parameters
type MandateLinks ¶
type MandateLinks struct { Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` NewMandate string `url:"new_mandate,omitempty" json:"new_mandate,omitempty"` }
type MandateListPagingIterator ¶
type MandateListPagingIterator struct {
// contains filtered or unexported fields
}
func (*MandateListPagingIterator) Next ¶
func (c *MandateListPagingIterator) Next() bool
func (*MandateListPagingIterator) Value ¶
func (c *MandateListPagingIterator) Value(ctx context.Context) (*MandateListResult, error)
type MandateListParams ¶
type MandateListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *MandateListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` MandateType string `url:"mandate_type,omitempty" json:"mandate_type,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme []string `url:"scheme,omitempty" json:"scheme,omitempty"` Status []string `url:"status,omitempty" json:"status,omitempty"` }
MandateListParams parameters
type MandateListResult ¶
type MandateListResult struct { Mandates []Mandate `json:"mandates"` Meta MandateListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type MandateListResultMeta ¶
type MandateListResultMeta struct { Cursors *MandateListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type MandatePdf ¶
type MandatePdf struct { ExpiresAt string `url:"expires_at,omitempty" json:"expires_at,omitempty"` Url string `url:"url,omitempty" json:"url,omitempty"` }
MandatePdf model
type MandatePdfCreateParams ¶
type MandatePdfCreateParams struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` Bic string `url:"bic,omitempty" json:"bic,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Links *MandatePdfCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` MandateReference string `url:"mandate_reference,omitempty" json:"mandate_reference,omitempty"` PayerIpAddress string `url:"payer_ip_address,omitempty" json:"payer_ip_address,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` SignatureDate string `url:"signature_date,omitempty" json:"signature_date,omitempty"` SubscriptionAmount int `url:"subscription_amount,omitempty" json:"subscription_amount,omitempty"` SubscriptionFrequency string `url:"subscription_frequency,omitempty" json:"subscription_frequency,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
MandatePdfCreateParams parameters
type MandatePdfCreateParamsLinks ¶
type MandatePdfCreateParamsLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type MandatePdfService ¶
type MandatePdfService interface {
Create(ctx context.Context, p MandatePdfCreateParams, opts ...RequestOption) (*MandatePdf, error)
}
type MandatePdfServiceImpl ¶
type MandatePdfServiceImpl struct {
// contains filtered or unexported fields
}
MandatePdfService manages mandate_pdfs
func (*MandatePdfServiceImpl) Create ¶
func (s *MandatePdfServiceImpl) Create(ctx context.Context, p MandatePdfCreateParams, opts ...RequestOption) (*MandatePdf, error)
Create Generates a PDF mandate and returns its temporary URL.
Customer and bank account details can be left blank (for a blank mandate), provided manually, or inferred from the ID of an existing [mandate](#core-endpoints-mandates).
By default, we'll generate PDF mandates in English.
To generate a PDF mandate in another language, set the `Accept-Language` header when creating the PDF mandate to the relevant [ISO 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code supported for the scheme.
| Scheme | Supported languages
|
| :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------- | | ACH | English (`en`)
|
| Autogiro | English (`en`), Swedish (`sv`)
|
| Bacs | English (`en`)
|
| BECS | English (`en`)
|
| BECS NZ | English (`en`)
|
| Betalingsservice | Danish (`da`), English (`en`)
|
| PAD | English (`en`)
|
| SEPA Core | Danish (`da`), Dutch (`nl`), English (`en`), French (`fr`), German (`de`), Italian (`it`), Portuguese (`pt`), Spanish (`es`), Swedish (`sv`) |
type MandateReinstateParams ¶
type MandateReinstateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
MandateReinstateParams parameters
type MandateService ¶
type MandateService interface { Create(ctx context.Context, p MandateCreateParams, opts ...RequestOption) (*Mandate, error) List(ctx context.Context, p MandateListParams, opts ...RequestOption) (*MandateListResult, error) All(ctx context.Context, p MandateListParams, opts ...RequestOption) *MandateListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Mandate, error) Update(ctx context.Context, identity string, p MandateUpdateParams, opts ...RequestOption) (*Mandate, error) Cancel(ctx context.Context, identity string, p MandateCancelParams, opts ...RequestOption) (*Mandate, error) Reinstate(ctx context.Context, identity string, p MandateReinstateParams, opts ...RequestOption) (*Mandate, error) }
type MandateServiceImpl ¶
type MandateServiceImpl struct {
// contains filtered or unexported fields
}
MandateService manages mandates
func (*MandateServiceImpl) All ¶
func (s *MandateServiceImpl) All(ctx context.Context, p MandateListParams, opts ...RequestOption) *MandateListPagingIterator
func (*MandateServiceImpl) Cancel ¶
func (s *MandateServiceImpl) Cancel(ctx context.Context, identity string, p MandateCancelParams, opts ...RequestOption) (*Mandate, error)
Cancel Immediately cancels a mandate and all associated cancellable payments. Any metadata supplied to this endpoint will be stored on the mandate cancellation event it causes.
This will fail with a `cancellation_failed` error if the mandate is already cancelled.
func (*MandateServiceImpl) Create ¶
func (s *MandateServiceImpl) Create(ctx context.Context, p MandateCreateParams, opts ...RequestOption) (*Mandate, error)
Create Creates a new mandate object.
func (*MandateServiceImpl) Get ¶
func (s *MandateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Mandate, error)
Get Retrieves the details of an existing mandate.
func (*MandateServiceImpl) List ¶
func (s *MandateServiceImpl) List(ctx context.Context, p MandateListParams, opts ...RequestOption) (*MandateListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your mandates.
func (*MandateServiceImpl) Reinstate ¶
func (s *MandateServiceImpl) Reinstate(ctx context.Context, identity string, p MandateReinstateParams, opts ...RequestOption) (*Mandate, error)
Reinstate <a name="mandate_not_inactive"></a>Reinstates a cancelled or expired mandate to the banks. You will receive a `resubmission_requested` webhook, but after that reinstating the mandate follows the same process as its initial creation, so you will receive a `submitted` webhook, followed by a `reinstated` or `failed` webhook up to two working days later. Any metadata supplied to this endpoint will be stored on the `resubmission_requested` event it causes.
This will fail with a `mandate_not_inactive` error if the mandate is already being submitted, or is active.
Mandates can be resubmitted up to 10 times.
func (*MandateServiceImpl) Update ¶
func (s *MandateServiceImpl) Update(ctx context.Context, identity string, p MandateUpdateParams, opts ...RequestOption) (*Mandate, error)
Update Updates a mandate object. This accepts only the metadata parameter.
type MandateUpdateParams ¶
type MandateUpdateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
MandateUpdateParams parameters
type NegativeBalanceLimit ¶ added in v3.2.0
type NegativeBalanceLimit struct { BalanceLimit int `url:"balance_limit,omitempty" json:"balance_limit,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *NegativeBalanceLimitLinks `url:"links,omitempty" json:"links,omitempty"` }
NegativeBalanceLimit model
type NegativeBalanceLimitCreateParams ¶ added in v3.2.0
type NegativeBalanceLimitCreateParams struct { BalanceLimit int `url:"balance_limit,omitempty" json:"balance_limit,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Links *NegativeBalanceLimitCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` }
NegativeBalanceLimitCreateParams parameters
type NegativeBalanceLimitCreateParamsLinks ¶ added in v3.2.0
type NegativeBalanceLimitCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type NegativeBalanceLimitLinks ¶ added in v3.2.0
type NegativeBalanceLimitListPagingIterator ¶ added in v3.2.0
type NegativeBalanceLimitListPagingIterator struct {
// contains filtered or unexported fields
}
func (*NegativeBalanceLimitListPagingIterator) Next ¶ added in v3.2.0
func (c *NegativeBalanceLimitListPagingIterator) Next() bool
func (*NegativeBalanceLimitListPagingIterator) Value ¶ added in v3.2.0
func (c *NegativeBalanceLimitListPagingIterator) Value(ctx context.Context) (*NegativeBalanceLimitListResult, error)
type NegativeBalanceLimitListParams ¶ added in v3.2.0
type NegativeBalanceLimitListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
NegativeBalanceLimitListParams parameters
type NegativeBalanceLimitListResult ¶ added in v3.2.0
type NegativeBalanceLimitListResult struct { NegativeBalanceLimits []NegativeBalanceLimit `json:"negative_balance_limits"` Meta NegativeBalanceLimitListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type NegativeBalanceLimitListResultMeta ¶ added in v3.2.0
type NegativeBalanceLimitListResultMeta struct { Cursors *NegativeBalanceLimitListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type NegativeBalanceLimitListResultMetaCursors ¶ added in v3.2.0
type NegativeBalanceLimitService ¶ added in v3.2.0
type NegativeBalanceLimitService interface { List(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) (*NegativeBalanceLimitListResult, error) All(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) *NegativeBalanceLimitListPagingIterator Create(ctx context.Context, p NegativeBalanceLimitCreateParams, opts ...RequestOption) (*NegativeBalanceLimit, error) }
type NegativeBalanceLimitServiceImpl ¶ added in v3.2.0
type NegativeBalanceLimitServiceImpl struct {
// contains filtered or unexported fields
}
NegativeBalanceLimitService manages negative_balance_limits
func (*NegativeBalanceLimitServiceImpl) All ¶ added in v3.2.0
func (s *NegativeBalanceLimitServiceImpl) All(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) *NegativeBalanceLimitListPagingIterator
func (*NegativeBalanceLimitServiceImpl) Create ¶ added in v3.2.0
func (s *NegativeBalanceLimitServiceImpl) Create(ctx context.Context, p NegativeBalanceLimitCreateParams, opts ...RequestOption) (*NegativeBalanceLimit, error)
Create Creates a new negative balance limit, which replaces the existing limit (if present) for that currency and creditor combination.
func (*NegativeBalanceLimitServiceImpl) List ¶ added in v3.2.0
func (s *NegativeBalanceLimitServiceImpl) List(ctx context.Context, p NegativeBalanceLimitListParams, opts ...RequestOption) (*NegativeBalanceLimitListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of negative balance limits.
type PagingIterator ¶
type PayerAuthorisation ¶
type PayerAuthorisation struct { BankAccount *PayerAuthorisationBankAccount `url:"bank_account,omitempty" json:"bank_account,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Customer *PayerAuthorisationCustomer `url:"customer,omitempty" json:"customer,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` IncompleteFields []PayerAuthorisationIncompleteFields `url:"incomplete_fields,omitempty" json:"incomplete_fields,omitempty"` Links *PayerAuthorisationLinks `url:"links,omitempty" json:"links,omitempty"` Mandate *PayerAuthorisationMandate `url:"mandate,omitempty" json:"mandate,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
PayerAuthorisation model
type PayerAuthorisationBankAccount ¶
type PayerAuthorisationBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountNumberSuffix string `url:"account_number_suffix,omitempty" json:"account_number_suffix,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
type PayerAuthorisationCreateParams ¶
type PayerAuthorisationCreateParams struct { BankAccount PayerAuthorisationCreateParamsBankAccount `url:"bank_account,omitempty" json:"bank_account,omitempty"` Customer PayerAuthorisationCreateParamsCustomer `url:"customer,omitempty" json:"customer,omitempty"` Mandate PayerAuthorisationCreateParamsMandate `url:"mandate,omitempty" json:"mandate,omitempty"` }
PayerAuthorisationCreateParams parameters
type PayerAuthorisationCreateParamsBankAccount ¶
type PayerAuthorisationCreateParamsBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountNumberSuffix string `url:"account_number_suffix,omitempty" json:"account_number_suffix,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
type PayerAuthorisationCreateParamsCustomer ¶
type PayerAuthorisationCreateParamsCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Locale string `url:"locale,omitempty" json:"locale,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type PayerAuthorisationCreateParamsMandate ¶
type PayerAuthorisationCreateParamsMandate struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerIpAddress string `url:"payer_ip_address,omitempty" json:"payer_ip_address,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
type PayerAuthorisationCustomer ¶
type PayerAuthorisationCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Locale string `url:"locale,omitempty" json:"locale,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type PayerAuthorisationLinks ¶
type PayerAuthorisationMandate ¶
type PayerAuthorisationMandate struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerIpAddress string `url:"payer_ip_address,omitempty" json:"payer_ip_address,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
type PayerAuthorisationService ¶
type PayerAuthorisationService interface { Get(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error) Create(ctx context.Context, p PayerAuthorisationCreateParams, opts ...RequestOption) (*PayerAuthorisation, error) Update(ctx context.Context, identity string, p PayerAuthorisationUpdateParams, opts ...RequestOption) (*PayerAuthorisation, error) Submit(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error) Confirm(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error) }
type PayerAuthorisationServiceImpl ¶
type PayerAuthorisationServiceImpl struct {
// contains filtered or unexported fields
}
PayerAuthorisationService manages payer_authorisations
func (*PayerAuthorisationServiceImpl) Confirm ¶
func (s *PayerAuthorisationServiceImpl) Confirm(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
Confirm Confirms the Payer Authorisation, indicating that the resources are ready to be created. A Payer Authorisation cannot be confirmed if it hasn't been submitted yet.
<p class="notice">
The main use of the confirm endpoint is to enable integrators to
acknowledge the end of the setup process.
They might want to make the payers go through some other steps after they
go through our flow or make them go through the necessary verification mechanism (upcoming feature). </p>
func (*PayerAuthorisationServiceImpl) Create ¶
func (s *PayerAuthorisationServiceImpl) Create(ctx context.Context, p PayerAuthorisationCreateParams, opts ...RequestOption) (*PayerAuthorisation, error)
Create Creates a Payer Authorisation. The resource is saved to the database even if incomplete. An empty array of incomplete_fields means that the resource is valid. The ID of the resource is used for the other actions. This endpoint has been designed this way so you do not need to save any payer data on your servers or the browser while still being able to implement a progressive solution, such as a multi-step form.
func (*PayerAuthorisationServiceImpl) Get ¶
func (s *PayerAuthorisationServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
Get Retrieves the details of a single existing Payer Authorisation. It can be used for polling the status of a Payer Authorisation.
func (*PayerAuthorisationServiceImpl) Submit ¶
func (s *PayerAuthorisationServiceImpl) Submit(ctx context.Context, identity string, opts ...RequestOption) (*PayerAuthorisation, error)
Submit Submits all the data previously pushed to this PayerAuthorisation for verification. This time, a 200 HTTP status is returned if the resource is valid and a 422 error response in case of validation errors. After it is successfully submitted, the Payer Authorisation can no longer be edited.
func (*PayerAuthorisationServiceImpl) Update ¶
func (s *PayerAuthorisationServiceImpl) Update(ctx context.Context, identity string, p PayerAuthorisationUpdateParams, opts ...RequestOption) (*PayerAuthorisation, error)
Update Updates a Payer Authorisation. Updates the Payer Authorisation with the request data. Can be invoked as many times as needed. Only fields present in the request will be modified. An empty array of incomplete_fields means that the resource is valid. This endpoint has been designed this way so you do not need to save any payer data on your servers or the browser while still being able to implement a progressive solution, such a multi-step form. <p class="notice"> Note that in order to update the `metadata` attribute values it must be sent completely as it overrides the previously existing values. </p>
type PayerAuthorisationUpdateParams ¶
type PayerAuthorisationUpdateParams struct { BankAccount PayerAuthorisationUpdateParamsBankAccount `url:"bank_account,omitempty" json:"bank_account,omitempty"` Customer PayerAuthorisationUpdateParamsCustomer `url:"customer,omitempty" json:"customer,omitempty"` Mandate PayerAuthorisationUpdateParamsMandate `url:"mandate,omitempty" json:"mandate,omitempty"` }
PayerAuthorisationUpdateParams parameters
type PayerAuthorisationUpdateParamsBankAccount ¶
type PayerAuthorisationUpdateParamsBankAccount struct { AccountHolderName string `url:"account_holder_name,omitempty" json:"account_holder_name,omitempty"` AccountNumber string `url:"account_number,omitempty" json:"account_number,omitempty"` AccountNumberEnding string `url:"account_number_ending,omitempty" json:"account_number_ending,omitempty"` AccountNumberSuffix string `url:"account_number_suffix,omitempty" json:"account_number_suffix,omitempty"` AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"` BankCode string `url:"bank_code,omitempty" json:"bank_code,omitempty"` BranchCode string `url:"branch_code,omitempty" json:"branch_code,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Iban string `url:"iban,omitempty" json:"iban,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
type PayerAuthorisationUpdateParamsCustomer ¶
type PayerAuthorisationUpdateParamsCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Locale string `url:"locale,omitempty" json:"locale,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type PayerAuthorisationUpdateParamsMandate ¶
type PayerAuthorisationUpdateParamsMandate struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayerIpAddress string `url:"payer_ip_address,omitempty" json:"payer_ip_address,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
type PayerTheme ¶ added in v3.10.0
type PayerTheme struct {
Id string `url:"id,omitempty" json:"id,omitempty"`
}
PayerTheme model
type PayerThemeCreateForCreditorParams ¶ added in v3.10.0
type PayerThemeCreateForCreditorParams struct { ButtonBackgroundColour string `url:"button_background_colour,omitempty" json:"button_background_colour,omitempty"` ContentBoxBorderColour string `url:"content_box_border_colour,omitempty" json:"content_box_border_colour,omitempty"` HeaderBackgroundColour string `url:"header_background_colour,omitempty" json:"header_background_colour,omitempty"` LinkTextColour string `url:"link_text_colour,omitempty" json:"link_text_colour,omitempty"` Links *PayerThemeCreateForCreditorParamsLinks `url:"links,omitempty" json:"links,omitempty"` }
PayerThemeCreateForCreditorParams parameters
type PayerThemeCreateForCreditorParamsLinks ¶ added in v3.10.0
type PayerThemeCreateForCreditorParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type PayerThemeService ¶ added in v3.10.0
type PayerThemeService interface {
CreateForCreditor(ctx context.Context, p PayerThemeCreateForCreditorParams, opts ...RequestOption) (*PayerTheme, error)
}
type PayerThemeServiceImpl ¶ added in v3.10.0
type PayerThemeServiceImpl struct {
// contains filtered or unexported fields
}
PayerThemeService manages payer_themes
func (*PayerThemeServiceImpl) CreateForCreditor ¶ added in v3.10.0
func (s *PayerThemeServiceImpl) CreateForCreditor(ctx context.Context, p PayerThemeCreateForCreditorParams, opts ...RequestOption) (*PayerTheme, error)
CreateForCreditor Creates a new payer theme associated with a creditor. If a creditor already has payer themes, this will update the existing payer theme linked to the creditor.
type Payment ¶
type Payment struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AmountRefunded int `url:"amount_refunded,omitempty" json:"amount_refunded,omitempty"` ChargeDate string `url:"charge_date,omitempty" json:"charge_date,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` FasterAch bool `url:"faster_ach,omitempty" json:"faster_ach,omitempty"` Fx *PaymentFx `url:"fx,omitempty" json:"fx,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *PaymentLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
Payment model
type PaymentCancelParams ¶
type PaymentCancelParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
PaymentCancelParams parameters
type PaymentCreateParams ¶
type PaymentCreateParams struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` ChargeDate string `url:"charge_date,omitempty" json:"charge_date,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` FasterAch bool `url:"faster_ach,omitempty" json:"faster_ach,omitempty"` Links PaymentCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` }
PaymentCreateParams parameters
type PaymentCreateParamsLinks ¶
type PaymentCreateParamsLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type PaymentFx ¶
type PaymentFx struct { EstimatedExchangeRate string `url:"estimated_exchange_rate,omitempty" json:"estimated_exchange_rate,omitempty"` ExchangeRate string `url:"exchange_rate,omitempty" json:"exchange_rate,omitempty"` FxAmount int `url:"fx_amount,omitempty" json:"fx_amount,omitempty"` FxCurrency string `url:"fx_currency,omitempty" json:"fx_currency,omitempty"` }
type PaymentLinks ¶
type PaymentLinks struct { Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` InstalmentSchedule string `url:"instalment_schedule,omitempty" json:"instalment_schedule,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` Payout string `url:"payout,omitempty" json:"payout,omitempty"` Subscription string `url:"subscription,omitempty" json:"subscription,omitempty"` }
type PaymentListPagingIterator ¶
type PaymentListPagingIterator struct {
// contains filtered or unexported fields
}
func (*PaymentListPagingIterator) Next ¶
func (c *PaymentListPagingIterator) Next() bool
func (*PaymentListPagingIterator) Value ¶
func (c *PaymentListPagingIterator) Value(ctx context.Context) (*PaymentListResult, error)
type PaymentListParams ¶
type PaymentListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` ChargeDate *PaymentListParamsChargeDate `url:"charge_date,omitempty" json:"charge_date,omitempty"` CreatedAt *PaymentListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` SortDirection string `url:"sort_direction,omitempty" json:"sort_direction,omitempty"` SortField string `url:"sort_field,omitempty" json:"sort_field,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` Subscription string `url:"subscription,omitempty" json:"subscription,omitempty"` }
PaymentListParams parameters
type PaymentListResult ¶
type PaymentListResult struct { Payments []Payment `json:"payments"` Meta PaymentListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type PaymentListResultMeta ¶
type PaymentListResultMeta struct { Cursors *PaymentListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type PaymentRetryParams ¶
type PaymentRetryParams struct { ChargeDate string `url:"charge_date,omitempty" json:"charge_date,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` }
PaymentRetryParams parameters
type PaymentService ¶
type PaymentService interface { Create(ctx context.Context, p PaymentCreateParams, opts ...RequestOption) (*Payment, error) List(ctx context.Context, p PaymentListParams, opts ...RequestOption) (*PaymentListResult, error) All(ctx context.Context, p PaymentListParams, opts ...RequestOption) *PaymentListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Payment, error) Update(ctx context.Context, identity string, p PaymentUpdateParams, opts ...RequestOption) (*Payment, error) Cancel(ctx context.Context, identity string, p PaymentCancelParams, opts ...RequestOption) (*Payment, error) Retry(ctx context.Context, identity string, p PaymentRetryParams, opts ...RequestOption) (*Payment, error) }
type PaymentServiceImpl ¶
type PaymentServiceImpl struct {
// contains filtered or unexported fields
}
PaymentService manages payments
func (*PaymentServiceImpl) All ¶
func (s *PaymentServiceImpl) All(ctx context.Context, p PaymentListParams, opts ...RequestOption) *PaymentListPagingIterator
func (*PaymentServiceImpl) Cancel ¶
func (s *PaymentServiceImpl) Cancel(ctx context.Context, identity string, p PaymentCancelParams, opts ...RequestOption) (*Payment, error)
Cancel Cancels the payment if it has not already been submitted to the banks. Any metadata supplied to this endpoint will be stored on the payment cancellation event it causes.
This will fail with a `cancellation_failed` error unless the payment's status is `pending_submission`.
func (*PaymentServiceImpl) Create ¶
func (s *PaymentServiceImpl) Create(ctx context.Context, p PaymentCreateParams, opts ...RequestOption) (*Payment, error)
Create <a name="mandate_is_inactive"></a>Creates a new payment object.
This fails with a `mandate_is_inactive` error if the linked [mandate](#core-endpoints-mandates) is cancelled or has failed. Payments can be created against mandates with status of: `pending_customer_approval`, `pending_submission`, `submitted`, and `active`.
func (*PaymentServiceImpl) Get ¶
func (s *PaymentServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Payment, error)
Get Retrieves the details of a single existing payment.
func (*PaymentServiceImpl) List ¶
func (s *PaymentServiceImpl) List(ctx context.Context, p PaymentListParams, opts ...RequestOption) (*PaymentListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your payments.
func (*PaymentServiceImpl) Retry ¶
func (s *PaymentServiceImpl) Retry(ctx context.Context, identity string, p PaymentRetryParams, opts ...RequestOption) (*Payment, error)
Retry <a name="retry_failed"></a>Retries a failed payment if the underlying mandate is active. You will receive a `resubmission_requested` webhook, but after that retrying the payment follows the same process as its initial creation, so you will receive a `submitted` webhook, followed by a `confirmed` or `failed` event. Any metadata supplied to this endpoint will be stored against the payment submission event it causes.
This will return a `retry_failed` error if the payment has not failed.
Payments can be retried up to 3 times.
func (*PaymentServiceImpl) Update ¶
func (s *PaymentServiceImpl) Update(ctx context.Context, identity string, p PaymentUpdateParams, opts ...RequestOption) (*Payment, error)
Update Updates a payment object. This accepts only the metadata parameter.
type PaymentUpdateParams ¶
type PaymentUpdateParams struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` }
PaymentUpdateParams parameters
type Payout ¶
type Payout struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` ArrivalDate string `url:"arrival_date,omitempty" json:"arrival_date,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` DeductedFees int `url:"deducted_fees,omitempty" json:"deducted_fees,omitempty"` Fx *PayoutFx `url:"fx,omitempty" json:"fx,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *PayoutLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayoutType string `url:"payout_type,omitempty" json:"payout_type,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` TaxCurrency string `url:"tax_currency,omitempty" json:"tax_currency,omitempty"` }
Payout model
type PayoutFx ¶
type PayoutFx struct { EstimatedExchangeRate string `url:"estimated_exchange_rate,omitempty" json:"estimated_exchange_rate,omitempty"` ExchangeRate string `url:"exchange_rate,omitempty" json:"exchange_rate,omitempty"` FxAmount int `url:"fx_amount,omitempty" json:"fx_amount,omitempty"` FxCurrency string `url:"fx_currency,omitempty" json:"fx_currency,omitempty"` }
type PayoutItem ¶
type PayoutItem struct { Amount string `url:"amount,omitempty" json:"amount,omitempty"` Links *PayoutItemLinks `url:"links,omitempty" json:"links,omitempty"` Taxes []PayoutItemTaxes `url:"taxes,omitempty" json:"taxes,omitempty"` Type string `url:"type,omitempty" json:"type,omitempty"` }
PayoutItem model
type PayoutItemLinks ¶
type PayoutItemListPagingIterator ¶
type PayoutItemListPagingIterator struct {
// contains filtered or unexported fields
}
func (*PayoutItemListPagingIterator) Next ¶
func (c *PayoutItemListPagingIterator) Next() bool
func (*PayoutItemListPagingIterator) Value ¶
func (c *PayoutItemListPagingIterator) Value(ctx context.Context) (*PayoutItemListResult, error)
type PayoutItemListParams ¶
type PayoutItemListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Include2020TaxCutover string `url:"include_2020_tax_cutover,omitempty" json:"include_2020_tax_cutover,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Payout string `url:"payout,omitempty" json:"payout,omitempty"` }
PayoutItemListParams parameters
type PayoutItemListResult ¶
type PayoutItemListResult struct { PayoutItems []PayoutItem `json:"payout_items"` Meta PayoutItemListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type PayoutItemListResultMeta ¶
type PayoutItemListResultMeta struct { Cursors *PayoutItemListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type PayoutItemService ¶
type PayoutItemService interface { List(ctx context.Context, p PayoutItemListParams, opts ...RequestOption) (*PayoutItemListResult, error) All(ctx context.Context, p PayoutItemListParams, opts ...RequestOption) *PayoutItemListPagingIterator }
type PayoutItemServiceImpl ¶
type PayoutItemServiceImpl struct {
// contains filtered or unexported fields
}
PayoutItemService manages payout_items
func (*PayoutItemServiceImpl) All ¶
func (s *PayoutItemServiceImpl) All(ctx context.Context, p PayoutItemListParams, opts ...RequestOption) *PayoutItemListPagingIterator
func (*PayoutItemServiceImpl) List ¶
func (s *PayoutItemServiceImpl) List(ctx context.Context, p PayoutItemListParams, opts ...RequestOption) (*PayoutItemListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of items in the payout.
<strong>This endpoint only serves requests for payouts created in the last 6 months. Requests for older payouts will return an HTTP status <code>410 Gone</code>.</strong>
type PayoutItemTaxes ¶
type PayoutItemTaxes struct { Amount string `url:"amount,omitempty" json:"amount,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` DestinationAmount string `url:"destination_amount,omitempty" json:"destination_amount,omitempty"` DestinationCurrency string `url:"destination_currency,omitempty" json:"destination_currency,omitempty"` ExchangeRate string `url:"exchange_rate,omitempty" json:"exchange_rate,omitempty"` TaxRateId string `url:"tax_rate_id,omitempty" json:"tax_rate_id,omitempty"` }
type PayoutLinks ¶
type PayoutListPagingIterator ¶
type PayoutListPagingIterator struct {
// contains filtered or unexported fields
}
func (*PayoutListPagingIterator) Next ¶
func (c *PayoutListPagingIterator) Next() bool
func (*PayoutListPagingIterator) Value ¶
func (c *PayoutListPagingIterator) Value(ctx context.Context) (*PayoutListResult, error)
type PayoutListParams ¶
type PayoutListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *PayoutListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` CreditorBankAccount string `url:"creditor_bank_account,omitempty" json:"creditor_bank_account,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PayoutType string `url:"payout_type,omitempty" json:"payout_type,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
PayoutListParams parameters
type PayoutListResult ¶
type PayoutListResult struct { Payouts []Payout `json:"payouts"` Meta PayoutListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type PayoutListResultMeta ¶
type PayoutListResultMeta struct { Cursors *PayoutListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type PayoutService ¶
type PayoutService interface { List(ctx context.Context, p PayoutListParams, opts ...RequestOption) (*PayoutListResult, error) All(ctx context.Context, p PayoutListParams, opts ...RequestOption) *PayoutListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Payout, error) Update(ctx context.Context, identity string, p PayoutUpdateParams, opts ...RequestOption) (*Payout, error) }
type PayoutServiceImpl ¶
type PayoutServiceImpl struct {
// contains filtered or unexported fields
}
PayoutService manages payouts
func (*PayoutServiceImpl) All ¶
func (s *PayoutServiceImpl) All(ctx context.Context, p PayoutListParams, opts ...RequestOption) *PayoutListPagingIterator
func (*PayoutServiceImpl) Get ¶
func (s *PayoutServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Payout, error)
Get Retrieves the details of a single payout. For an example of how to reconcile the transactions in a payout, see [this guide](#events-reconciling-payouts-with-events).
func (*PayoutServiceImpl) List ¶
func (s *PayoutServiceImpl) List(ctx context.Context, p PayoutListParams, opts ...RequestOption) (*PayoutListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your payouts.
func (*PayoutServiceImpl) Update ¶
func (s *PayoutServiceImpl) Update(ctx context.Context, identity string, p PayoutUpdateParams, opts ...RequestOption) (*Payout, error)
Update Updates a payout object. This accepts only the metadata parameter.
type PayoutUpdateParams ¶
type PayoutUpdateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
PayoutUpdateParams parameters
type RedirectFlow ¶
type RedirectFlow struct { ConfirmationUrl string `url:"confirmation_url,omitempty" json:"confirmation_url,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *RedirectFlowLinks `url:"links,omitempty" json:"links,omitempty"` MandateReference string `url:"mandate_reference,omitempty" json:"mandate_reference,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` RedirectUrl string `url:"redirect_url,omitempty" json:"redirect_url,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` SessionToken string `url:"session_token,omitempty" json:"session_token,omitempty"` SuccessRedirectUrl string `url:"success_redirect_url,omitempty" json:"success_redirect_url,omitempty"` }
RedirectFlow model
type RedirectFlowCompleteParams ¶
type RedirectFlowCompleteParams struct {
SessionToken string `url:"session_token,omitempty" json:"session_token,omitempty"`
}
RedirectFlowCompleteParams parameters
type RedirectFlowCreateParams ¶
type RedirectFlowCreateParams struct { Description string `url:"description,omitempty" json:"description,omitempty"` Links *RedirectFlowCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PrefilledBankAccount *RedirectFlowCreateParamsPrefilledBankAccount `url:"prefilled_bank_account,omitempty" json:"prefilled_bank_account,omitempty"` PrefilledCustomer *RedirectFlowCreateParamsPrefilledCustomer `url:"prefilled_customer,omitempty" json:"prefilled_customer,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` SessionToken string `url:"session_token,omitempty" json:"session_token,omitempty"` SuccessRedirectUrl string `url:"success_redirect_url,omitempty" json:"success_redirect_url,omitempty"` }
RedirectFlowCreateParams parameters
type RedirectFlowCreateParamsLinks ¶
type RedirectFlowCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type RedirectFlowCreateParamsPrefilledBankAccount ¶
type RedirectFlowCreateParamsPrefilledBankAccount struct {
AccountType string `url:"account_type,omitempty" json:"account_type,omitempty"`
}
type RedirectFlowCreateParamsPrefilledCustomer ¶
type RedirectFlowCreateParamsPrefilledCustomer struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyName string `url:"company_name,omitempty" json:"company_name,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DanishIdentityNumber string `url:"danish_identity_number,omitempty" json:"danish_identity_number,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` Language string `url:"language,omitempty" json:"language,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` SwedishIdentityNumber string `url:"swedish_identity_number,omitempty" json:"swedish_identity_number,omitempty"` }
type RedirectFlowLinks ¶
type RedirectFlowLinks struct { BillingRequest string `url:"billing_request,omitempty" json:"billing_request,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` CustomerBankAccount string `url:"customer_bank_account,omitempty" json:"customer_bank_account,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` }
type RedirectFlowService ¶
type RedirectFlowService interface { Create(ctx context.Context, p RedirectFlowCreateParams, opts ...RequestOption) (*RedirectFlow, error) Get(ctx context.Context, identity string, opts ...RequestOption) (*RedirectFlow, error) Complete(ctx context.Context, identity string, p RedirectFlowCompleteParams, opts ...RequestOption) (*RedirectFlow, error) }
type RedirectFlowServiceImpl ¶
type RedirectFlowServiceImpl struct {
// contains filtered or unexported fields
}
RedirectFlowService manages redirect_flows
func (*RedirectFlowServiceImpl) Complete ¶
func (s *RedirectFlowServiceImpl) Complete(ctx context.Context, identity string, p RedirectFlowCompleteParams, opts ...RequestOption) (*RedirectFlow, error)
Complete This creates a [customer](#core-endpoints-customers), [customer bank account](#core-endpoints-customer-bank-accounts), and [mandate](#core-endpoints-mandates) using the details supplied by your customer and returns the ID of the created mandate.
This will return a `redirect_flow_incomplete` error if your customer has not yet been redirected back to your site, and a `redirect_flow_already_completed` error if your integration has already completed this flow. It will return a `bad_request` error if the `session_token` differs to the one supplied when the redirect flow was created.
func (*RedirectFlowServiceImpl) Create ¶
func (s *RedirectFlowServiceImpl) Create(ctx context.Context, p RedirectFlowCreateParams, opts ...RequestOption) (*RedirectFlow, error)
Create Creates a redirect flow object which can then be used to redirect your customer to the GoCardless hosted payment pages.
func (*RedirectFlowServiceImpl) Get ¶
func (s *RedirectFlowServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*RedirectFlow, error)
Get Returns all details about a single redirect flow
type Refund ¶
type Refund struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Fx *RefundFx `url:"fx,omitempty" json:"fx,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Links *RefundLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
Refund model
type RefundCreateParams ¶
type RefundCreateParams struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` Links RefundCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` TotalAmountConfirmation int `url:"total_amount_confirmation,omitempty" json:"total_amount_confirmation,omitempty"` }
RefundCreateParams parameters
type RefundCreateParamsLinks ¶
type RefundFx ¶
type RefundFx struct { EstimatedExchangeRate string `url:"estimated_exchange_rate,omitempty" json:"estimated_exchange_rate,omitempty"` ExchangeRate string `url:"exchange_rate,omitempty" json:"exchange_rate,omitempty"` FxAmount int `url:"fx_amount,omitempty" json:"fx_amount,omitempty"` FxCurrency string `url:"fx_currency,omitempty" json:"fx_currency,omitempty"` }
type RefundLinks ¶
type RefundListPagingIterator ¶
type RefundListPagingIterator struct {
// contains filtered or unexported fields
}
func (*RefundListPagingIterator) Next ¶
func (c *RefundListPagingIterator) Next() bool
func (*RefundListPagingIterator) Value ¶
func (c *RefundListPagingIterator) Value(ctx context.Context) (*RefundListResult, error)
type RefundListParams ¶
type RefundListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *RefundListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` Payment string `url:"payment,omitempty" json:"payment,omitempty"` RefundType string `url:"refund_type,omitempty" json:"refund_type,omitempty"` }
RefundListParams parameters
type RefundListResult ¶
type RefundListResult struct { Refunds []Refund `json:"refunds"` Meta RefundListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type RefundListResultMeta ¶
type RefundListResultMeta struct { Cursors *RefundListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type RefundService ¶
type RefundService interface { Create(ctx context.Context, p RefundCreateParams, opts ...RequestOption) (*Refund, error) List(ctx context.Context, p RefundListParams, opts ...RequestOption) (*RefundListResult, error) All(ctx context.Context, p RefundListParams, opts ...RequestOption) *RefundListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Refund, error) Update(ctx context.Context, identity string, p RefundUpdateParams, opts ...RequestOption) (*Refund, error) }
type RefundServiceImpl ¶
type RefundServiceImpl struct {
// contains filtered or unexported fields
}
RefundService manages refunds
func (*RefundServiceImpl) All ¶
func (s *RefundServiceImpl) All(ctx context.Context, p RefundListParams, opts ...RequestOption) *RefundListPagingIterator
func (*RefundServiceImpl) Create ¶
func (s *RefundServiceImpl) Create(ctx context.Context, p RefundCreateParams, opts ...RequestOption) (*Refund, error)
Create Creates a new refund object.
This fails with:<a name="total_amount_confirmation_invalid"></a><a name="number_of_refunds_exceeded"></a><a name="available_refund_amount_insufficient"></a>
- `total_amount_confirmation_invalid` if the confirmation amount doesn't match the total amount refunded for the payment. This safeguard is there to prevent two processes from creating refunds without awareness of each other.
- `number_of_refunds_exceeded` if five or more refunds have already been created against the payment.
- `available_refund_amount_insufficient` if the creditor does not have sufficient balance for refunds available to cover the cost of the requested refund.
func (*RefundServiceImpl) Get ¶
func (s *RefundServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Refund, error)
Get Retrieves all details for a single refund
func (*RefundServiceImpl) List ¶
func (s *RefundServiceImpl) List(ctx context.Context, p RefundListParams, opts ...RequestOption) (*RefundListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your refunds.
func (*RefundServiceImpl) Update ¶
func (s *RefundServiceImpl) Update(ctx context.Context, identity string, p RefundUpdateParams, opts ...RequestOption) (*Refund, error)
Update Updates a refund object.
type RefundUpdateParams ¶
type RefundUpdateParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
RefundUpdateParams parameters
type RequestOption ¶
type RequestOption func(*requestOptions) error
RequestOption is used to configure a given request
func WithHeaders ¶
func WithHeaders(headers map[string]string) RequestOption
WithHeaders sets headers to be sent for this request
func WithIdempotencyKey ¶
func WithIdempotencyKey(key string) RequestOption
WithIdempotencyKey sets an idempotency key so multiple calls to a non-idempotent endpoint with the same key are actually idempotent
func WithRetries ¶
func WithRetries(n int) RequestOption
WithRetries sets the amount of total retries to make for the request
func WithoutRetries ¶
func WithoutRetries() RequestOption
WithoutRetries disables retries for this request
type ScenarioSimulator ¶
type ScenarioSimulator struct {
Id string `url:"id,omitempty" json:"id,omitempty"`
}
ScenarioSimulator model
type ScenarioSimulatorRunParams ¶
type ScenarioSimulatorRunParams struct {
Links *ScenarioSimulatorRunParamsLinks `url:"links,omitempty" json:"links,omitempty"`
}
ScenarioSimulatorRunParams parameters
type ScenarioSimulatorRunParamsLinks ¶
type ScenarioSimulatorRunParamsLinks struct {
Resource string `url:"resource,omitempty" json:"resource,omitempty"`
}
type ScenarioSimulatorService ¶
type ScenarioSimulatorService interface {
Run(ctx context.Context, identity string, p ScenarioSimulatorRunParams, opts ...RequestOption) (*ScenarioSimulator, error)
}
type ScenarioSimulatorServiceImpl ¶
type ScenarioSimulatorServiceImpl struct {
// contains filtered or unexported fields
}
ScenarioSimulatorService manages scenario_simulators
func (*ScenarioSimulatorServiceImpl) Run ¶
func (s *ScenarioSimulatorServiceImpl) Run(ctx context.Context, identity string, p ScenarioSimulatorRunParams, opts ...RequestOption) (*ScenarioSimulator, error)
Run Runs the specific scenario simulator against the specific resource
type SchemeIdentifier ¶
type SchemeIdentifier struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` CanSpecifyMandateReference bool `url:"can_specify_mandate_reference,omitempty" json:"can_specify_mandate_reference,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` Email string `url:"email,omitempty" json:"email,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` MinimumAdvanceNotice int `url:"minimum_advance_notice,omitempty" json:"minimum_advance_notice,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PhoneNumber string `url:"phone_number,omitempty" json:"phone_number,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Reference string `url:"reference,omitempty" json:"reference,omitempty"` Region string `url:"region,omitempty" json:"region,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` }
SchemeIdentifier model
type SchemeIdentifierCreateParams ¶
type SchemeIdentifierCreateParams struct { Links *SchemeIdentifierCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` Scheme string `url:"scheme,omitempty" json:"scheme,omitempty"` }
SchemeIdentifierCreateParams parameters
type SchemeIdentifierCreateParamsLinks ¶ added in v3.2.0
type SchemeIdentifierCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type SchemeIdentifierListPagingIterator ¶
type SchemeIdentifierListPagingIterator struct {
// contains filtered or unexported fields
}
func (*SchemeIdentifierListPagingIterator) Next ¶
func (c *SchemeIdentifierListPagingIterator) Next() bool
func (*SchemeIdentifierListPagingIterator) Value ¶
func (c *SchemeIdentifierListPagingIterator) Value(ctx context.Context) (*SchemeIdentifierListResult, error)
type SchemeIdentifierListParams ¶
type SchemeIdentifierListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
SchemeIdentifierListParams parameters
type SchemeIdentifierListResult ¶
type SchemeIdentifierListResult struct { SchemeIdentifiers []SchemeIdentifier `json:"scheme_identifiers"` Meta SchemeIdentifierListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type SchemeIdentifierListResultMeta ¶
type SchemeIdentifierListResultMeta struct { Cursors *SchemeIdentifierListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type SchemeIdentifierService ¶
type SchemeIdentifierService interface { Create(ctx context.Context, p SchemeIdentifierCreateParams, opts ...RequestOption) (*SchemeIdentifier, error) List(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) (*SchemeIdentifierListResult, error) All(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) *SchemeIdentifierListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*SchemeIdentifier, error) }
type SchemeIdentifierServiceImpl ¶
type SchemeIdentifierServiceImpl struct {
// contains filtered or unexported fields
}
SchemeIdentifierService manages scheme_identifiers
func (*SchemeIdentifierServiceImpl) All ¶
func (s *SchemeIdentifierServiceImpl) All(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) *SchemeIdentifierListPagingIterator
func (*SchemeIdentifierServiceImpl) Create ¶
func (s *SchemeIdentifierServiceImpl) Create(ctx context.Context, p SchemeIdentifierCreateParams, opts ...RequestOption) (*SchemeIdentifier, error)
Create Creates a new scheme identifier. The scheme identifier status will be `pending` while GoCardless is processing the request. Once the scheme identifier is ready to be used the status will be updated to `active`. At this point, GoCardless will emit a scheme identifier activated event via webhook to notify you of this change. In Bacs, it will take up to five working days for a scheme identifier to become active. On other schemes, including SEPA, this happens instantly.
#### Scheme identifier name validations
The `name` field of a scheme identifier can contain alphanumeric characters, spaces and special characters.
Its maximum length and the special characters it supports depend on the scheme:
| __scheme__ | __maximum length__ | __special characters allowed__
|
| :---------------- | :----------------- | :-------------------------------------------------- | | `bacs` | 18 characters | `/` `.` `&` `-`
|
| `sepa` | 70 characters | `/` `?` `:` `(` `)` `.` `,` `+` `&` `<` `>` `'` `"` | | `ach` | 16 characters | `/` `?` `:` `(` `)` `.` `,` `'` `+` `-` | | `faster_payments` | 18 characters | `/` `?` `:` `(` `)` `.` `,` `'` `+` `-` |
The validation error that gets returned for an invalid name will contain a suggested name in the metadata that is guaranteed to pass name validations.
You should ensure that the name you set matches the legal name or the trading name of the creditor, otherwise, there is an increased risk of chargeback.
func (*SchemeIdentifierServiceImpl) Get ¶
func (s *SchemeIdentifierServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*SchemeIdentifier, error)
Get Retrieves the details of an existing scheme identifier.
func (*SchemeIdentifierServiceImpl) List ¶
func (s *SchemeIdentifierServiceImpl) List(ctx context.Context, p SchemeIdentifierListParams, opts ...RequestOption) (*SchemeIdentifierListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your scheme identifiers.
type Service ¶
type Service struct { BankAuthorisations BankAuthorisationService BankDetailsLookups BankDetailsLookupService BillingRequests BillingRequestService BillingRequestFlows BillingRequestFlowService BillingRequestTemplates BillingRequestTemplateService Blocks BlockService Creditors CreditorService CreditorBankAccounts CreditorBankAccountService CurrencyExchangeRates CurrencyExchangeRateService Customers CustomerService CustomerBankAccounts CustomerBankAccountService CustomerNotifications CustomerNotificationService Events EventService Exports ExportService InstalmentSchedules InstalmentScheduleService Institutions InstitutionService Logos LogoService Mandates MandateService MandateImports MandateImportService MandateImportEntries MandateImportEntryService MandatePdfs MandatePdfService NegativeBalanceLimits NegativeBalanceLimitService PayerAuthorisations PayerAuthorisationService PayerThemes PayerThemeService Payments PaymentService Payouts PayoutService PayoutItems PayoutItemService RedirectFlows RedirectFlowService Refunds RefundService ScenarioSimulators ScenarioSimulatorService SchemeIdentifiers SchemeIdentifierService Subscriptions SubscriptionService TaxRates TaxRateService TransferredMandates TransferredMandateService VerificationDetails VerificationDetailService Webhooks WebhookService }
type Subscription ¶
type Subscription struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Count int `url:"count,omitempty" json:"count,omitempty"` CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` DayOfMonth int `url:"day_of_month,omitempty" json:"day_of_month,omitempty"` EarliestChargeDateAfterResume string `url:"earliest_charge_date_after_resume,omitempty" json:"earliest_charge_date_after_resume,omitempty"` EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Interval int `url:"interval,omitempty" json:"interval,omitempty"` IntervalUnit string `url:"interval_unit,omitempty" json:"interval_unit,omitempty"` Links *SubscriptionLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Month string `url:"month,omitempty" json:"month,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` ParentPlanPaused bool `url:"parent_plan_paused,omitempty" json:"parent_plan_paused,omitempty"` PaymentReference string `url:"payment_reference,omitempty" json:"payment_reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` Status string `url:"status,omitempty" json:"status,omitempty"` UpcomingPayments []SubscriptionUpcomingPayments `url:"upcoming_payments,omitempty" json:"upcoming_payments,omitempty"` }
Subscription model
type SubscriptionCancelParams ¶
type SubscriptionCancelParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
SubscriptionCancelParams parameters
type SubscriptionCreateParams ¶
type SubscriptionCreateParams struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Count int `url:"count,omitempty" json:"count,omitempty"` Currency string `url:"currency,omitempty" json:"currency,omitempty"` DayOfMonth int `url:"day_of_month,omitempty" json:"day_of_month,omitempty"` EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` Interval int `url:"interval,omitempty" json:"interval,omitempty"` IntervalUnit string `url:"interval_unit,omitempty" json:"interval_unit,omitempty"` Links SubscriptionCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Month string `url:"month,omitempty" json:"month,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentReference string `url:"payment_reference,omitempty" json:"payment_reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` }
SubscriptionCreateParams parameters
type SubscriptionCreateParamsLinks ¶
type SubscriptionCreateParamsLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type SubscriptionLinks ¶
type SubscriptionLinks struct {
Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"`
}
type SubscriptionListPagingIterator ¶
type SubscriptionListPagingIterator struct {
// contains filtered or unexported fields
}
func (*SubscriptionListPagingIterator) Next ¶
func (c *SubscriptionListPagingIterator) Next() bool
func (*SubscriptionListPagingIterator) Value ¶
func (c *SubscriptionListPagingIterator) Value(ctx context.Context) (*SubscriptionListResult, error)
type SubscriptionListParams ¶
type SubscriptionListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *SubscriptionListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` Customer string `url:"customer,omitempty" json:"customer,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Mandate string `url:"mandate,omitempty" json:"mandate,omitempty"` Status []string `url:"status,omitempty" json:"status,omitempty"` }
SubscriptionListParams parameters
type SubscriptionListResult ¶
type SubscriptionListResult struct { Subscriptions []Subscription `json:"subscriptions"` Meta SubscriptionListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type SubscriptionListResultMeta ¶
type SubscriptionListResultMeta struct { Cursors *SubscriptionListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type SubscriptionPauseParams ¶
type SubscriptionPauseParams struct { Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` PauseCycles int `url:"pause_cycles,omitempty" json:"pause_cycles,omitempty"` }
SubscriptionPauseParams parameters
type SubscriptionResumeParams ¶
type SubscriptionResumeParams struct {
Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"`
}
SubscriptionResumeParams parameters
type SubscriptionService ¶
type SubscriptionService interface { Create(ctx context.Context, p SubscriptionCreateParams, opts ...RequestOption) (*Subscription, error) List(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) (*SubscriptionListResult, error) All(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) *SubscriptionListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Subscription, error) Update(ctx context.Context, identity string, p SubscriptionUpdateParams, opts ...RequestOption) (*Subscription, error) Pause(ctx context.Context, identity string, p SubscriptionPauseParams, opts ...RequestOption) (*Subscription, error) Resume(ctx context.Context, identity string, p SubscriptionResumeParams, opts ...RequestOption) (*Subscription, error) Cancel(ctx context.Context, identity string, p SubscriptionCancelParams, opts ...RequestOption) (*Subscription, error) }
type SubscriptionServiceImpl ¶
type SubscriptionServiceImpl struct {
// contains filtered or unexported fields
}
SubscriptionService manages subscriptions
func (*SubscriptionServiceImpl) All ¶
func (s *SubscriptionServiceImpl) All(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) *SubscriptionListPagingIterator
func (*SubscriptionServiceImpl) Cancel ¶
func (s *SubscriptionServiceImpl) Cancel(ctx context.Context, identity string, p SubscriptionCancelParams, opts ...RequestOption) (*Subscription, error)
Cancel Immediately cancels a subscription; no more payments will be created under it. Any metadata supplied to this endpoint will be stored on the payment cancellation event it causes.
This will fail with a cancellation_failed error if the subscription is already cancelled or finished.
func (*SubscriptionServiceImpl) Create ¶
func (s *SubscriptionServiceImpl) Create(ctx context.Context, p SubscriptionCreateParams, opts ...RequestOption) (*Subscription, error)
Create Creates a new subscription object
func (*SubscriptionServiceImpl) Get ¶
func (s *SubscriptionServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Subscription, error)
Get Retrieves the details of a single subscription.
func (*SubscriptionServiceImpl) List ¶
func (s *SubscriptionServiceImpl) List(ctx context.Context, p SubscriptionListParams, opts ...RequestOption) (*SubscriptionListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your subscriptions. Please note if the subscriptions are related to customers who have been removed, they will not be shown in the response.
func (*SubscriptionServiceImpl) Pause ¶
func (s *SubscriptionServiceImpl) Pause(ctx context.Context, identity string, p SubscriptionPauseParams, opts ...RequestOption) (*Subscription, error)
Pause Pause a subscription object. No payments will be created until it is resumed.
This can only be used when a subscription is collecting a fixed number of payments (created using `count`), when they continue forever (created without `count` or `end_date`) or the subscription is already paused for a number of cycles.
When `pause_cycles` is omitted the subscription is paused until the [resume endpoint](#subscriptions-resume-a-subscription) is called. If the subscription is collecting a fixed number of payments, `end_date` will be set to `null`. When paused indefinitely, `upcoming_payments` will be empty.
When `pause_cycles` is provided the subscription will be paused for the number of cycles requested. If the subscription is collecting a fixed number of payments, `end_date` will be set to a new value. When paused for a number of cycles, `upcoming_payments` will still contain the upcoming charge dates.
This fails with:
- `forbidden` if the subscription was created by an app and you are not authenticated as that app, or if the subscription was not created by an app and you are authenticated as an app
- `validation_failed` if invalid data is provided when attempting to pause a subscription.
- `subscription_paused_cannot_update_cycles` if the subscription is already paused for a number of cycles and the request provides a value for `pause_cycle`.
- `subscription_cannot_be_paused` if the subscription cannot be paused.
- `subscription_already_ended` if the subscription has taken all payments.
- `pause_cycles_must_be_greater_than_or_equal_to` if the provided value for `pause_cycles` cannot be satisfied.
func (*SubscriptionServiceImpl) Resume ¶
func (s *SubscriptionServiceImpl) Resume(ctx context.Context, identity string, p SubscriptionResumeParams, opts ...RequestOption) (*Subscription, error)
Resume Resume a subscription object. Payments will start to be created again based on the subscriptions recurrence rules. The `charge_date` on the next payment will be the same as the subscriptions `earliest_charge_date_after_resume`
This fails with:
- `forbidden` if the subscription was created by an app and you are not authenticated as that app, or if the subscription was not created by an app and you are authenticated as an app
- `validation_failed` if invalid data is provided when attempting to resume a subscription.
- `subscription_not_paused` if the subscription is not paused.
func (*SubscriptionServiceImpl) Update ¶
func (s *SubscriptionServiceImpl) Update(ctx context.Context, identity string, p SubscriptionUpdateParams, opts ...RequestOption) (*Subscription, error)
Update Updates a subscription object.
This fails with:
- `validation_failed` if invalid data is provided when attempting to update a subscription.
- `subscription_not_active` if the subscription is no longer active.
- `subscription_already_ended` if the subscription has taken all payments.
- `mandate_payments_require_approval` if the amount is being changed and the mandate requires approval.
- `number_of_subscription_amendments_exceeded` error if the subscription amount has already been changed 10 times.
- `forbidden` if the amount is being changed, and the subscription was created by an app and you are not authenticated as that app, or if the subscription was not created by an app and you are authenticated as an app
- `resource_created_by_another_app` if the app fee is being changed, and the subscription was created by an app other than the app you are authenticated as
type SubscriptionUpdateParams ¶
type SubscriptionUpdateParams struct { Amount int `url:"amount,omitempty" json:"amount,omitempty"` AppFee int `url:"app_fee,omitempty" json:"app_fee,omitempty"` Metadata map[string]interface{} `url:"metadata,omitempty" json:"metadata,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PaymentReference string `url:"payment_reference,omitempty" json:"payment_reference,omitempty"` RetryIfPossible bool `url:"retry_if_possible,omitempty" json:"retry_if_possible,omitempty"` }
SubscriptionUpdateParams parameters
type TaxRate ¶
type TaxRate struct { EndDate string `url:"end_date,omitempty" json:"end_date,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` Jurisdiction string `url:"jurisdiction,omitempty" json:"jurisdiction,omitempty"` Percentage string `url:"percentage,omitempty" json:"percentage,omitempty"` StartDate string `url:"start_date,omitempty" json:"start_date,omitempty"` Type string `url:"type,omitempty" json:"type,omitempty"` }
TaxRate model
type TaxRateListPagingIterator ¶
type TaxRateListPagingIterator struct {
// contains filtered or unexported fields
}
func (*TaxRateListPagingIterator) Next ¶
func (c *TaxRateListPagingIterator) Next() bool
func (*TaxRateListPagingIterator) Value ¶
func (c *TaxRateListPagingIterator) Value(ctx context.Context) (*TaxRateListResult, error)
type TaxRateListParams ¶
type TaxRateListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Jurisdiction string `url:"jurisdiction,omitempty" json:"jurisdiction,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
TaxRateListParams parameters
type TaxRateListResult ¶
type TaxRateListResult struct { TaxRates []TaxRate `json:"tax_rates"` Meta TaxRateListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type TaxRateListResultMeta ¶
type TaxRateListResultMeta struct { Cursors *TaxRateListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type TaxRateService ¶
type TaxRateService interface { List(ctx context.Context, p TaxRateListParams, opts ...RequestOption) (*TaxRateListResult, error) All(ctx context.Context, p TaxRateListParams, opts ...RequestOption) *TaxRateListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*TaxRate, error) }
type TaxRateServiceImpl ¶
type TaxRateServiceImpl struct {
// contains filtered or unexported fields
}
TaxRateService manages tax_rates
func (*TaxRateServiceImpl) All ¶
func (s *TaxRateServiceImpl) All(ctx context.Context, p TaxRateListParams, opts ...RequestOption) *TaxRateListPagingIterator
func (*TaxRateServiceImpl) Get ¶
func (s *TaxRateServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*TaxRate, error)
Get Retrieves the details of a tax rate.
func (*TaxRateServiceImpl) List ¶
func (s *TaxRateServiceImpl) List(ctx context.Context, p TaxRateListParams, opts ...RequestOption) (*TaxRateListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of all tax rates.
type TransferredMandate ¶ added in v3.7.0
type TransferredMandate struct { EncryptedCustomerBankDetails string `url:"encrypted_customer_bank_details,omitempty" json:"encrypted_customer_bank_details,omitempty"` EncryptedDecryptionKey string `url:"encrypted_decryption_key,omitempty" json:"encrypted_decryption_key,omitempty"` Links *TransferredMandateLinks `url:"links,omitempty" json:"links,omitempty"` PublicKeyId string `url:"public_key_id,omitempty" json:"public_key_id,omitempty"` }
TransferredMandate model
type TransferredMandateLinks ¶ added in v3.7.0
type TransferredMandateService ¶ added in v3.7.0
type TransferredMandateService interface {
TransferredMandates(ctx context.Context, identity string, p TransferredMandateTransferredMandatesParams, opts ...RequestOption) (*TransferredMandate, error)
}
type TransferredMandateServiceImpl ¶ added in v3.7.0
type TransferredMandateServiceImpl struct {
// contains filtered or unexported fields
}
TransferredMandateService manages transferred_mandates
func (*TransferredMandateServiceImpl) TransferredMandates ¶ added in v3.7.0
func (s *TransferredMandateServiceImpl) TransferredMandates(ctx context.Context, identity string, p TransferredMandateTransferredMandatesParams, opts ...RequestOption) (*TransferredMandate, error)
TransferredMandates Returns new customer bank details for a mandate that's been recently transferred
type TransferredMandateTransferredMandatesParams ¶ added in v3.7.0
type TransferredMandateTransferredMandatesParams struct { }
TransferredMandateTransferredMandatesParams parameters
type ValidationError ¶
type ValidationError struct { Message string `json:"message"` Field string `json:"field"` RequestPointer string `json:"request_pointer"` Links ErrorLinks `json:"links"` }
type VerificationDetail ¶
type VerificationDetail struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyNumber string `url:"company_number,omitempty" json:"company_number,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` Directors []VerificationDetailDirectors `url:"directors,omitempty" json:"directors,omitempty"` Links *VerificationDetailLinks `url:"links,omitempty" json:"links,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` }
VerificationDetail model
type VerificationDetailCreateParams ¶
type VerificationDetailCreateParams struct { AddressLine1 string `url:"address_line1,omitempty" json:"address_line1,omitempty"` AddressLine2 string `url:"address_line2,omitempty" json:"address_line2,omitempty"` AddressLine3 string `url:"address_line3,omitempty" json:"address_line3,omitempty"` City string `url:"city,omitempty" json:"city,omitempty"` CompanyNumber string `url:"company_number,omitempty" json:"company_number,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` Directors []VerificationDetailCreateParamsDirectors `url:"directors,omitempty" json:"directors,omitempty"` Links VerificationDetailCreateParamsLinks `url:"links,omitempty" json:"links,omitempty"` Name string `url:"name,omitempty" json:"name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` }
VerificationDetailCreateParams parameters
type VerificationDetailCreateParamsDirectors ¶
type VerificationDetailCreateParamsDirectors struct { City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DateOfBirth string `url:"date_of_birth,omitempty" json:"date_of_birth,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Street string `url:"street,omitempty" json:"street,omitempty"` }
type VerificationDetailCreateParamsLinks ¶
type VerificationDetailCreateParamsLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type VerificationDetailDirectors ¶
type VerificationDetailDirectors struct { City string `url:"city,omitempty" json:"city,omitempty"` CountryCode string `url:"country_code,omitempty" json:"country_code,omitempty"` DateOfBirth string `url:"date_of_birth,omitempty" json:"date_of_birth,omitempty"` FamilyName string `url:"family_name,omitempty" json:"family_name,omitempty"` GivenName string `url:"given_name,omitempty" json:"given_name,omitempty"` PostalCode string `url:"postal_code,omitempty" json:"postal_code,omitempty"` Street string `url:"street,omitempty" json:"street,omitempty"` }
type VerificationDetailLinks ¶
type VerificationDetailLinks struct {
Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"`
}
type VerificationDetailListPagingIterator ¶
type VerificationDetailListPagingIterator struct {
// contains filtered or unexported fields
}
func (*VerificationDetailListPagingIterator) Next ¶
func (c *VerificationDetailListPagingIterator) Next() bool
func (*VerificationDetailListPagingIterator) Value ¶
func (c *VerificationDetailListPagingIterator) Value(ctx context.Context) (*VerificationDetailListResult, error)
type VerificationDetailListParams ¶
type VerificationDetailListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` Creditor string `url:"creditor,omitempty" json:"creditor,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
VerificationDetailListParams parameters
type VerificationDetailListResult ¶
type VerificationDetailListResult struct { VerificationDetails []VerificationDetail `json:"verification_details"` Meta VerificationDetailListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type VerificationDetailListResultMeta ¶
type VerificationDetailListResultMeta struct { Cursors *VerificationDetailListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type VerificationDetailService ¶
type VerificationDetailService interface { Create(ctx context.Context, p VerificationDetailCreateParams, opts ...RequestOption) (*VerificationDetail, error) List(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) (*VerificationDetailListResult, error) All(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) *VerificationDetailListPagingIterator }
type VerificationDetailServiceImpl ¶
type VerificationDetailServiceImpl struct {
// contains filtered or unexported fields
}
VerificationDetailService manages verification_details
func (*VerificationDetailServiceImpl) All ¶
func (s *VerificationDetailServiceImpl) All(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) *VerificationDetailListPagingIterator
func (*VerificationDetailServiceImpl) Create ¶
func (s *VerificationDetailServiceImpl) Create(ctx context.Context, p VerificationDetailCreateParams, opts ...RequestOption) (*VerificationDetail, error)
Create Creates a new verification detail
func (*VerificationDetailServiceImpl) List ¶
func (s *VerificationDetailServiceImpl) List(ctx context.Context, p VerificationDetailListParams, opts ...RequestOption) (*VerificationDetailListResult, error)
List Returns a list of verification details belonging to a creditor.
type Webhook ¶
type Webhook struct { CreatedAt string `url:"created_at,omitempty" json:"created_at,omitempty"` Id string `url:"id,omitempty" json:"id,omitempty"` IsTest bool `url:"is_test,omitempty" json:"is_test,omitempty"` RequestBody string `url:"request_body,omitempty" json:"request_body,omitempty"` RequestHeaders map[string]interface{} `url:"request_headers,omitempty" json:"request_headers,omitempty"` ResponseBody string `url:"response_body,omitempty" json:"response_body,omitempty"` ResponseBodyTruncated bool `url:"response_body_truncated,omitempty" json:"response_body_truncated,omitempty"` ResponseCode int `url:"response_code,omitempty" json:"response_code,omitempty"` ResponseHeaders map[string]interface{} `url:"response_headers,omitempty" json:"response_headers,omitempty"` ResponseHeadersContentTruncated bool `url:"response_headers_content_truncated,omitempty" json:"response_headers_content_truncated,omitempty"` ResponseHeadersCountTruncated bool `url:"response_headers_count_truncated,omitempty" json:"response_headers_count_truncated,omitempty"` Successful bool `url:"successful,omitempty" json:"successful,omitempty"` Url string `url:"url,omitempty" json:"url,omitempty"` }
Webhook model
type WebhookHandler ¶
type WebhookHandler struct { EventHandler // contains filtered or unexported fields }
WebhookHandler allows you to process incoming events from webhooks.
func NewWebhookHandler ¶
func NewWebhookHandler(secret string, h EventHandler) (*WebhookHandler, error)
NewWebhookHandler instantiates a WebhookHandler which can be mounted as a net/http Handler.
func (*WebhookHandler) ServeHTTP ¶
func (h *WebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP processes incoming webhooks and dispatches events to the corresponsing handlers.
type WebhookListPagingIterator ¶
type WebhookListPagingIterator struct {
// contains filtered or unexported fields
}
func (*WebhookListPagingIterator) Next ¶
func (c *WebhookListPagingIterator) Next() bool
func (*WebhookListPagingIterator) Value ¶
func (c *WebhookListPagingIterator) Value(ctx context.Context) (*WebhookListResult, error)
type WebhookListParams ¶
type WebhookListParams struct { After string `url:"after,omitempty" json:"after,omitempty"` Before string `url:"before,omitempty" json:"before,omitempty"` CreatedAt *WebhookListParamsCreatedAt `url:"created_at,omitempty" json:"created_at,omitempty"` IsTest bool `url:"is_test,omitempty" json:"is_test,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` Successful bool `url:"successful,omitempty" json:"successful,omitempty"` }
WebhookListParams parameters
type WebhookListResult ¶
type WebhookListResult struct { Webhooks []Webhook `json:"webhooks"` Meta WebhookListResultMeta `url:"meta,omitempty" json:"meta,omitempty"` }
type WebhookListResultMeta ¶
type WebhookListResultMeta struct { Cursors *WebhookListResultMetaCursors `url:"cursors,omitempty" json:"cursors,omitempty"` Limit int `url:"limit,omitempty" json:"limit,omitempty"` }
type WebhookService ¶
type WebhookService interface { List(ctx context.Context, p WebhookListParams, opts ...RequestOption) (*WebhookListResult, error) All(ctx context.Context, p WebhookListParams, opts ...RequestOption) *WebhookListPagingIterator Get(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error) Retry(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error) }
type WebhookServiceImpl ¶
type WebhookServiceImpl struct {
// contains filtered or unexported fields
}
WebhookService manages webhooks
func (*WebhookServiceImpl) All ¶
func (s *WebhookServiceImpl) All(ctx context.Context, p WebhookListParams, opts ...RequestOption) *WebhookListPagingIterator
func (*WebhookServiceImpl) Get ¶
func (s *WebhookServiceImpl) Get(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error)
Get Retrieves the details of an existing webhook.
func (*WebhookServiceImpl) List ¶
func (s *WebhookServiceImpl) List(ctx context.Context, p WebhookListParams, opts ...RequestOption) (*WebhookListResult, error)
List Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your webhooks.
func (*WebhookServiceImpl) Retry ¶
func (s *WebhookServiceImpl) Retry(ctx context.Context, identity string, opts ...RequestOption) (*Webhook, error)
Retry Requests for a previous webhook to be sent again
Source Files ¶
- bank_authorisation_service.go
- bank_details_lookup_service.go
- billing_request_flow_service.go
- billing_request_service.go
- billing_request_template_service.go
- block_service.go
- creditor_bank_account_service.go
- creditor_service.go
- currency_exchange_rate_service.go
- customer_bank_account_service.go
- customer_notification_service.go
- customer_service.go
- event_service.go
- export_service.go
- gc.go
- instalment_schedule_service.go
- institution_service.go
- logo_service.go
- mandate_import_entry_service.go
- mandate_import_service.go
- mandate_pdf_service.go
- mandate_service.go
- negative_balance_limit_service.go
- options.go
- paging_iterator.go
- payer_authorisation_service.go
- payer_theme_service.go
- payment_service.go
- payout_item_service.go
- payout_service.go
- redirect_flow_service.go
- refund_service.go
- retries.go
- scenario_simulator_service.go
- scheme_identifier_service.go
- subscription_service.go
- tax_rate_service.go
- testing.go
- transferred_mandate_service.go
- useragent.go
- verification_detail_service.go
- webhook_service.go
- webhooks.go