mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* chore(storage): remove errors.Wrap deprecated * feat: add psu models * feat(storage): add psu migrations and functions * feat(*): add payment service users entity * feat(tests): update sdks and add psu integration tests * feat(validation): add validation on email and phone number
66 lines
2.1 KiB
Go
66 lines
2.1 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"github.com/formancehq/payments/pkg/client/models/components"
|
|
)
|
|
|
|
type V3ForwardPaymentServiceUserBankAccountRequest struct {
|
|
// The payment service user ID
|
|
PaymentServiceUserID string `pathParam:"style=simple,explode=false,name=paymentServiceUserID"`
|
|
// The bank account ID
|
|
BankAccountID string `pathParam:"style=simple,explode=false,name=bankAccountID"`
|
|
V3ForwardPaymentServiceUserBankAccountRequest *components.V3ForwardPaymentServiceUserBankAccountRequest `request:"mediaType=application/json"`
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountRequest) GetPaymentServiceUserID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.PaymentServiceUserID
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountRequest) GetBankAccountID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.BankAccountID
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountRequest) GetV3ForwardPaymentServiceUserBankAccountRequest() *components.V3ForwardPaymentServiceUserBankAccountRequest {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.V3ForwardPaymentServiceUserBankAccountRequest
|
|
}
|
|
|
|
type V3ForwardPaymentServiceUserBankAccountResponse struct {
|
|
HTTPMeta components.HTTPMetadata `json:"-"`
|
|
// Accepted
|
|
V3ForwardPaymentServiceUserBankAccountResponse *components.V3ForwardPaymentServiceUserBankAccountResponse
|
|
// Error
|
|
V3ErrorResponse *components.V3ErrorResponse
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountResponse) GetHTTPMeta() components.HTTPMetadata {
|
|
if o == nil {
|
|
return components.HTTPMetadata{}
|
|
}
|
|
return o.HTTPMeta
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountResponse) GetV3ForwardPaymentServiceUserBankAccountResponse() *components.V3ForwardPaymentServiceUserBankAccountResponse {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.V3ForwardPaymentServiceUserBankAccountResponse
|
|
}
|
|
|
|
func (o *V3ForwardPaymentServiceUserBankAccountResponse) GetV3ErrorResponse() *components.V3ErrorResponse {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.V3ErrorResponse
|
|
}
|