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
47 lines
1.1 KiB
Go
47 lines
1.1 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
type V3CreatePaymentServiceUserRequest struct {
|
|
Name string `json:"name"`
|
|
ContactDetails *V3ContactDetailsRequest `json:"contactDetails,omitempty"`
|
|
Address *V3AddressRequest `json:"address,omitempty"`
|
|
BankAccountIDs []string `json:"bankAccountIDs,omitempty"`
|
|
Metadata map[string]string `json:"metadata,omitempty"`
|
|
}
|
|
|
|
func (o *V3CreatePaymentServiceUserRequest) GetName() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Name
|
|
}
|
|
|
|
func (o *V3CreatePaymentServiceUserRequest) GetContactDetails() *V3ContactDetailsRequest {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ContactDetails
|
|
}
|
|
|
|
func (o *V3CreatePaymentServiceUserRequest) GetAddress() *V3AddressRequest {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Address
|
|
}
|
|
|
|
func (o *V3CreatePaymentServiceUserRequest) GetBankAccountIDs() []string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.BankAccountIDs
|
|
}
|
|
|
|
func (o *V3CreatePaymentServiceUserRequest) GetMetadata() map[string]string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Metadata
|
|
}
|