Files
payments/pkg/client/models/operations/v3listpaymentserviceusers.go
Paul NicolasandGitHub 979b040d94 feat(psu): add payment service user entity (#424)
* 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
2025-04-29 10:24:09 +02:00

67 lines
1.8 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/payments/pkg/client/models/components"
)
type V3ListPaymentServiceUsersRequest struct {
// The number of items to return
PageSize *int64 `queryParam:"style=form,explode=true,name=pageSize"`
// Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
//
Cursor *string `queryParam:"style=form,explode=true,name=cursor"`
RequestBody map[string]any `request:"mediaType=application/json"`
}
func (o *V3ListPaymentServiceUsersRequest) GetPageSize() *int64 {
if o == nil {
return nil
}
return o.PageSize
}
func (o *V3ListPaymentServiceUsersRequest) GetCursor() *string {
if o == nil {
return nil
}
return o.Cursor
}
func (o *V3ListPaymentServiceUsersRequest) GetRequestBody() map[string]any {
if o == nil {
return nil
}
return o.RequestBody
}
type V3ListPaymentServiceUsersResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// OK
V3PaymentServiceUsersCursorResponse *components.V3PaymentServiceUsersCursorResponse
// Error
V3ErrorResponse *components.V3ErrorResponse
}
func (o *V3ListPaymentServiceUsersResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}
func (o *V3ListPaymentServiceUsersResponse) GetV3PaymentServiceUsersCursorResponse() *components.V3PaymentServiceUsersCursorResponse {
if o == nil {
return nil
}
return o.V3PaymentServiceUsersCursorResponse
}
func (o *V3ListPaymentServiceUsersResponse) GetV3ErrorResponse() *components.V3ErrorResponse {
if o == nil {
return nil
}
return o.V3ErrorResponse
}