Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePaymentOrderByDedicated(params *CreatePaymentOrderByDedicatedParams, ...) (*CreatePaymentOrderByDedicatedCreated, ...)
- func (a *Client) RefundPaymentOrderByDedicated(params *RefundPaymentOrderByDedicatedParams, ...) (*RefundPaymentOrderByDedicatedOK, *RefundPaymentOrderByDedicatedNoContent, ...)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SyncPaymentOrders(params *SyncPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*SyncPaymentOrdersOK, error)
- type ClientService
- type CreatePaymentOrderByDedicatedBadRequest
- type CreatePaymentOrderByDedicatedConflict
- type CreatePaymentOrderByDedicatedCreated
- type CreatePaymentOrderByDedicatedForbidden
- type CreatePaymentOrderByDedicatedNotFound
- type CreatePaymentOrderByDedicatedParams
- func NewCreatePaymentOrderByDedicatedParams() *CreatePaymentOrderByDedicatedParams
- func NewCreatePaymentOrderByDedicatedParamsWithContext(ctx context.Context) *CreatePaymentOrderByDedicatedParams
- func NewCreatePaymentOrderByDedicatedParamsWithHTTPClient(client *http.Client) *CreatePaymentOrderByDedicatedParams
- func NewCreatePaymentOrderByDedicatedParamsWithTimeout(timeout time.Duration) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) SetBody(body *platformclientmodels.ExternalPaymentOrderCreate)
- func (o *CreatePaymentOrderByDedicatedParams) SetContext(ctx context.Context)
- func (o *CreatePaymentOrderByDedicatedParams) SetHTTPClient(client *http.Client)
- func (o *CreatePaymentOrderByDedicatedParams) SetNamespace(namespace string)
- func (o *CreatePaymentOrderByDedicatedParams) SetTimeout(timeout time.Duration)
- func (o *CreatePaymentOrderByDedicatedParams) WithBody(body *platformclientmodels.ExternalPaymentOrderCreate) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) WithContext(ctx context.Context) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) WithHTTPClient(client *http.Client) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) WithNamespace(namespace string) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) WithTimeout(timeout time.Duration) *CreatePaymentOrderByDedicatedParams
- func (o *CreatePaymentOrderByDedicatedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePaymentOrderByDedicatedReader
- type CreatePaymentOrderByDedicatedUnprocessableEntity
- type RefundPaymentOrderByDedicatedConflict
- type RefundPaymentOrderByDedicatedNoContent
- type RefundPaymentOrderByDedicatedNotFound
- type RefundPaymentOrderByDedicatedOK
- type RefundPaymentOrderByDedicatedParams
- func NewRefundPaymentOrderByDedicatedParams() *RefundPaymentOrderByDedicatedParams
- func NewRefundPaymentOrderByDedicatedParamsWithContext(ctx context.Context) *RefundPaymentOrderByDedicatedParams
- func NewRefundPaymentOrderByDedicatedParamsWithHTTPClient(client *http.Client) *RefundPaymentOrderByDedicatedParams
- func NewRefundPaymentOrderByDedicatedParamsWithTimeout(timeout time.Duration) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) SetBody(body *platformclientmodels.PaymentOrderRefund)
- func (o *RefundPaymentOrderByDedicatedParams) SetContext(ctx context.Context)
- func (o *RefundPaymentOrderByDedicatedParams) SetHTTPClient(client *http.Client)
- func (o *RefundPaymentOrderByDedicatedParams) SetNamespace(namespace string)
- func (o *RefundPaymentOrderByDedicatedParams) SetPaymentOrderNo(paymentOrderNo string)
- func (o *RefundPaymentOrderByDedicatedParams) SetTimeout(timeout time.Duration)
- func (o *RefundPaymentOrderByDedicatedParams) WithBody(body *platformclientmodels.PaymentOrderRefund) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WithContext(ctx context.Context) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WithHTTPClient(client *http.Client) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WithNamespace(namespace string) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WithPaymentOrderNo(paymentOrderNo string) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WithTimeout(timeout time.Duration) *RefundPaymentOrderByDedicatedParams
- func (o *RefundPaymentOrderByDedicatedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RefundPaymentOrderByDedicatedReader
- type RefundPaymentOrderByDedicatedUnprocessableEntity
- type SyncPaymentOrdersOK
- type SyncPaymentOrdersParams
- func NewSyncPaymentOrdersParams() *SyncPaymentOrdersParams
- func NewSyncPaymentOrdersParamsWithContext(ctx context.Context) *SyncPaymentOrdersParams
- func NewSyncPaymentOrdersParamsWithHTTPClient(client *http.Client) *SyncPaymentOrdersParams
- func NewSyncPaymentOrdersParamsWithTimeout(timeout time.Duration) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) SetContext(ctx context.Context)
- func (o *SyncPaymentOrdersParams) SetEnd(end string)
- func (o *SyncPaymentOrdersParams) SetHTTPClient(client *http.Client)
- func (o *SyncPaymentOrdersParams) SetNextEvaluatedKey(nextEvaluatedKey *string)
- func (o *SyncPaymentOrdersParams) SetStart(start string)
- func (o *SyncPaymentOrdersParams) SetTimeout(timeout time.Duration)
- func (o *SyncPaymentOrdersParams) WithContext(ctx context.Context) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WithEnd(end string) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WithHTTPClient(client *http.Client) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WithNextEvaluatedKey(nextEvaluatedKey *string) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WithStart(start string) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WithTimeout(timeout time.Duration) *SyncPaymentOrdersParams
- func (o *SyncPaymentOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SyncPaymentOrdersReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for payment dedicated API
func (*Client) CreatePaymentOrderByDedicated ¶
func (a *Client) CreatePaymentOrderByDedicated(params *CreatePaymentOrderByDedicatedParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePaymentOrderByDedicatedCreated, *CreatePaymentOrderByDedicatedBadRequest, *CreatePaymentOrderByDedicatedForbidden, *CreatePaymentOrderByDedicatedNotFound, *CreatePaymentOrderByDedicatedConflict, *CreatePaymentOrderByDedicatedUnprocessableEntity, error)
CreatePaymentOrderByDedicated creates payment order by dedicated server <p>This API is used to create payment order from non justice service. e.g. from dedicated server, the result contains the payment station url.</p><p><strong>Path Parameter:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Namespace that payment order resides in, should be publisher namespace if it's a Steam like platform that share <br>payment config cross namespaces, otherwise it's the game namespace</td></tr></table><p><strong>Request Body Parameters:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>extOrderNo</td><td>String</td><td>Yes</td><td>External order number, it should be unique in invoker order system</td></tr><tr><td>sku</td><td>String</td><td>No</td><td>Item identity</td></tr><tr><td>targetNamespace</td><td>String</td><td>Yes</td><td>The game namespace</td></tr><tr><td>targetUserId</td><td>String</td><td>Yes</td><td>User id for the order owner in game namespace</td></tr><tr><td>extUserId</td><td>String</td><td>No</td><td>External user id, can be user character id </td></tr><tr><td>price</td><td>int</td><td>Yes</td><td>price which should be greater than 0</td></tr><tr><td>title</td><td>String</td><td>Yes</td><td>Item title</td></tr><tr><td>description</td><td>String</td><td>Yes</td><td>Item description</td></tr><tr><td>currencyCode</td><td>String</td><td>No</td><td>Currency code, default is USD</td></tr><tr><td>currencyNamespace</td><td>String</td><td>No</td><td>Currency namespace, default is publisher namespace</td></tr><tr><td>region</td><td>String</td><td>No</td><td>Country of the user, will get from user info if not present</td></tr><tr><td>language</td><td>String</td><td>No</td><td>Language of the user</td></tr><tr><td>sandbox</td><td>Boolean</td><td>No</td><td>set to true will create sandbox order that not real paid for xsolla/alipay and will not validate <br>price for wxpay.</td></tr><tr><td>returnUrl</td><td>String</td><td>No</td><td>customized return url for redirect once payment finished, leave unset to use configuration in <br>namespace</td></tr><tr><td>notifyUrl</td><td>String</td><td>No</td><td>customized notify url for payment web hook, leave unset to use configuration in namespace</td></tr><tr><td>customParameters</td><td>String</td><td>No</td><td>Custom parameters</td></tr></table></pre><p><strong>Request Body Example:</strong></p><pre><code style='overflow: auto'>{ "extOrderNo": "123456789", "sku": "sku", "targetNamespace": "game1", "targetUserId": "94451623768940d58416ca33ca767ec3", "extUserId": "678", "title": "Frostmourne", "description\": "Here was power. Here was despair", "price": 100, "region": "CN", "language": "zh-CN", "currencyCode": "USD", "currencyNamespace": "accelbyte" }</pre></code><h4>Payment Notification:</h4><p>After user complete the payment, it will send notification to configured web hook, http status code should return 200 or 204 once you resolve notification successfully, otherwise payment system will retry notification in interval</p><p><strong>Payment notification parameter:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>payload</td><td>String</td><td>Yes</td><td>Payment notification payload in json string </td></tr><tr><td>sign</td><td>String</td><td>Yes</td><td>sha1 hex signature for payload and private key</td></tr></table></pre><p><strong>Payment notification parameter Example:</strong></p><pre><code style='overflow: auto'>{
"payload": "{ \"type\": \"payment\", \"nonceStr\": \"34c1dcf3eb58455eb161465bbfc0b590\", \"paymentOrderNo\": \"18081239088\", \"namespace\": \"accelbyte\", \"targetNamespace\": \"game1\", \"targetUserId\": \"94451623768940d58416ca33ca767ec3\", \"extOrderNo\": \"123456789\", \"sku\": \"sku\", \"extUserId\": \"678\", \"price\": 100, \"paymentProvider\": \"XSOLLA\", \"vat\": 0, \"salesTax\": 0, \"paymentProviderFee\": 0, \"paymentMethodFee\": 0, \"currency\": { \"currencyCode\": \"USD\", \"currencySymbol\": \"$\", \"currencyType\": \"REAL\", \"namespace\": \"accelbyte\", \"decimals\": 2 }, \"status\": \"CHARGED\", \"createdTime\": \"2018-07-28T00:39:16.274Z\", \"chargedTime\": \"2018-07-28T00:39:16.274Z\" }", "sign":"e31fb92516cc9faaf50ad70343e1293acec6f3d5" }</pre></code><p><strong>Payment notification payload parameter list:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>type</td><td>String</td><td>Yes</td><td>Notification type: 'payment'</td></tr><tr><td>paymentOrderNo</td><td>String</td><td>Yes</td><td>Payment system generated order number</td></tr><tr><td>extOrderNo</td><td>String</td><td>No</td><td>External order number that passed by invoker</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Namespace that related payment order resides in</td></tr><tr><td>targetNamespace</td><td>String</td><td>Yes</td><td>The game namespace</td></tr><tr><td>targetUserId</td><td>String</td><td>Yes</td><td>The user id in game namespace</td></tr><tr><td>sku</td><td>String</td><td>No</td><td>Item identify, it will return if pass it when create payment</td></tr><tr><td>extUserId</td><td>String</td><td>No</td><td>External user id, can be character id, it will return if pass it when create payment</td></tr><tr><td>price</td><td>int</td><td>Yes</td><td>Price of item</td></tr><tr><td>paymentProvider</td><td>String</td><td>Yes</td><td>Payment provider, allowed values: xsolla/alipay/wxpay/wallet</td></tr><tr><td>vat</td><td>int</td><td>Yes</td><td>Payment order VAT</td></tr><tr><td>salesTax</td><td>int</td><td>Yes</td><td>Payment order sales tax</td></tr><tr><td>paymentProviderFee</td><td>int</td><td>Yes</td><td>Payment provider fee</td></tr><tr><td>paymentMethodFee</td><td>int</td><td>Yes</td><td>Payment method fee</td></tr><tr><td>currency</td><td>Map</td><td>Yes</td><td>Payment order currency info</td></tr><tr><td>status</td><td>String</td><td>Yes</td><td>Payment order status</td></tr><tr><td>statusReason</td><td>String</td><td>No</td><td>Payment order status reason</td></tr><tr><td>createdTime</td><td>Datetime</td><td>No</td><td>The time of the order created</td></tr><tr><td>chargedTime</td><td>Datetime</td><td>No</td><td>The time of the order charged</td></tr><tr><td>customParameters</td><td>Map</td><td>No</td><td>custom parameters, will return if pass it when create payment</td></tr><tr><td>nonceStr</td><td>String</td><td>Yes</td><td>Random string, max length is 32, can be timestamp or uuid</td></tr></table></pre><p><strong>Currency info parameter list:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>currencyCode</td><td>String</td><td>Yes</td><td>Currency Code</td></tr><tr><td>currencySymbol</td><td>String</td><td>Yes</td><td>Currency Symbol</td></tr><tr><td>currencyType</td><td>String</td><td>Yes</td><td>Currency type(REAL/VIRTUAL)</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Currency namespace</td></tr><tr><td>decimals</td><td>int</td><td>Yes</td><td>Currency decimals</td></tr></table></pre><h4>Encryption Rule:</h4><p>Concat payload json string and private key and then do sha1Hex.</p><h4>Other detail info:</h4> <ul><li><i>Token type</i>: client token</li><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=1 (CREATE)</li><li><i>Optional permission(user with this permission will create sandbox order)</i>: resource="SANDBOX", action=1 (CREATE)</li><li>It will be forbidden while the target user is banned: PAYMENT_INITIATE or ORDER_AND_PAYMENT</li><li><b>cross namespace allowed</b></li><li><i>Returns</i>: created payment order info</li></ul>
func (*Client) RefundPaymentOrderByDedicated ¶
func (a *Client) RefundPaymentOrderByDedicated(params *RefundPaymentOrderByDedicatedParams, authInfo runtime.ClientAuthInfoWriter) (*RefundPaymentOrderByDedicatedOK, *RefundPaymentOrderByDedicatedNoContent, *RefundPaymentOrderByDedicatedNotFound, *RefundPaymentOrderByDedicatedConflict, *RefundPaymentOrderByDedicatedUnprocessableEntity, error)
RefundPaymentOrderByDedicated refunds payment order by dedicated server <p>This API is used to refund payment order by paymentOrderNo from non justice service. e.g. dedicated server. <ul><li>if the status field of response json is "REFUNDED", usually wallet paid, it indicates payment order already refunded</li><li>if the status field of response json is "REFUNDING", usually real money paid, platform will send notification to registered notify url once refund successfully</li> </ul></p><p><strong>Path Parameter:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Namespace that payment order resides in</td></tr><tr><td>paymentOrderNo</td><td>String</td><td>Yes</td><td>Payment order number</td></tr></table></pre><p><strong>Request Body Parameters:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>description</td><td>String</td><td>Yes</td><td>Refund description</td></tr></table></pre><p><strong>Request Body Example:</strong></p><pre><code style='overflow: auto'>{ "description": "Repeated item." }</pre></code><h4>Refund Notification:</h4><p>It will send notification to configured web hook after refund successfully, http status code should return 200 or 204 once you resolve notification successfully, otherwise payment system will retry notification in interval</p><p><strong>Refund notification parameter:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>payload</td><td>String</td><td>Yes</td><td>Refund notification payload in json string </td></tr><tr><td>sign</td><td>String</td><td>Yes</td><td>sha1 hex signature for payload and private key</td></tr></table></pre><p><strong>Refund notification Example:</strong></p><pre><code style='overflow: auto'>{
"payload": "{ \"type\": \"payment\", \"nonceStr\": \"34c1dcf3eb58455eb161465bbfc0b590\", \"paymentOrderNo\": \"18081239088\", \"namespace\": \"accelbyte\", \"targetNamespace\": \"game1\", \"targetUserId\": \"94451623768940d58416ca33ca767ec3\", \"extOrderNo\": \"123456789\", \"sku\": \"sku\", \"extUserId\": \"678\", \"price\": 100, \"paymentProvider\": \"XSOLLA\", \"vat\": 0, \"salesTax\": 0, \"paymentProviderFee\": 0, \"paymentMethodFee\": 0, \"currency\": { \"currencyCode\": \"USD\", \"currencySymbol\": \"$\", \"currencyType\": \"REAL\", \"namespace\": \"accelbyte\", \"decimals\": 2 }, \"status\": \"REFUNDED\", \"createdTime\": \"2018-07-28T00:39:16.274Z\", \"chargedTime\": \"2018-07-28T00:39:16.274Z\", \"refundedTime\": \"2018-07-28T00:39:16.274Z\" }", "sign":"e31fb92516cc9faaf50ad70343e1293acec6f3d5" }</pre></code><p><strong>Refund notification payload parameter list:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>type</td><td>String</td><td>Yes</td><td>Notification type: 'payment'</td></tr><tr><td>paymentOrderNo</td><td>String</td><td>Yes</td><td>Payment system generated order number</td></tr><tr><td>extOrderNo</td><td>String</td><td>No</td><td>External order number that passed by invoker</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Namespace that related payment order resides in</td></tr><tr><td>targetNamespace</td><td>String</td><td>Yes</td><td>The game namespace</td></tr><tr><td>targetUserId</td><td>String</td><td>Yes</td><td>The user id in game namespace</td></tr><tr><td>sku</td><td>String</td><td>No</td><td>Item identify, it will return if pass it when create payment</td></tr><tr><td>extUserId</td><td>String</td><td>No</td><td>External user id, can be character id, it will return if pass it when create payment</td></tr><tr><td>price</td><td>int</td><td>Yes</td><td>Price of item</td></tr><tr><td>paymentProvider</td><td>String</td><td>Yes</td><td>Payment provider: xsolla/alipay/wxpay/wallet</td></tr><tr><td>vat</td><td>int</td><td>Yes</td><td>Payment order VAT</td></tr><tr><td>salesTax</td><td>int</td><td>Yes</td><td>Payment order sales tax</td></tr><tr><td>paymentProviderFee</td><td>int</td><td>Yes</td><td>Payment provider fee</td></tr><tr><td>paymentMethodFee</td><td>int</td><td>Yes</td><td>Payment method fee</td></tr><tr><td>currency</td><td>Map</td><td>Yes</td><td>Payment order currency info</td></tr><tr><td>status</td><td>String</td><td>Yes</td><td>Payment order status</td></tr><tr><td>statusReason</td><td>String</td><td>No</td><td>Payment order refund status reason</td></tr><tr><td>createdTime</td><td>Datetime</td><td>No</td><td>The time of the order created</td></tr><tr><td>chargedTime</td><td>Datetime</td><td>No</td><td>The time of the order charged</td></tr><tr><td>refundedTime</td><td>Datetime</td><td>No</td><td>The time of the order refunded</td></tr><tr><td>customParameters</td><td>Map</td><td>No</td><td>custom parameters, will return if pass it when create payment</td></tr><tr><td>nonceStr</td><td>String</td><td>Yes</td><td>Random string, max length is 32, </td></tr></table></pre><p><strong>Currency info parameter list:</strong></p><pre><table><tr><td>Parameter</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>currencyCode</td><td>String</td><td>Yes</td><td>Currency Code</td></tr><tr><td>currencySymbol</td><td>String</td><td>Yes</td><td>Currency Symbol</td></tr><tr><td>currencyType</td><td>String</td><td>Yes</td><td>Currency type(REAL/VIRTUAL)</td></tr><tr><td>namespace</td><td>String</td><td>Yes</td><td>Currency namespace</td></tr><tr><td>decimals</td><td>int</td><td>Yes</td><td>Currency decimals</td></tr></table></pre><h4>Encryption Rule:</h4><p>Concat payload json string and private key and then do sha1Hex.</p><h4>Other detail info:</h4> <ul><li><i>Token type</i>: client token</li><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)</li><li><b>cross namespace allowed</b></li></ul>
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SyncPaymentOrders ¶
func (a *Client) SyncPaymentOrders(params *SyncPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*SyncPaymentOrdersOK, error)
SyncPaymentOrders syncs payment orders
Sync payment orders. If response contains nextEvaluatedKey, please use it as query param in the next call to fetch the next batch, a batch has 1000 elements or less.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:PAYMENT", action=2 (READ)</li><li><i>Returns</i>: sync payment orders</li></ul>
type ClientService ¶
type ClientService interface { CreatePaymentOrderByDedicated(params *CreatePaymentOrderByDedicatedParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePaymentOrderByDedicatedCreated, *CreatePaymentOrderByDedicatedBadRequest, *CreatePaymentOrderByDedicatedForbidden, *CreatePaymentOrderByDedicatedNotFound, *CreatePaymentOrderByDedicatedConflict, *CreatePaymentOrderByDedicatedUnprocessableEntity, error) RefundPaymentOrderByDedicated(params *RefundPaymentOrderByDedicatedParams, authInfo runtime.ClientAuthInfoWriter) (*RefundPaymentOrderByDedicatedOK, *RefundPaymentOrderByDedicatedNoContent, *RefundPaymentOrderByDedicatedNotFound, *RefundPaymentOrderByDedicatedConflict, *RefundPaymentOrderByDedicatedUnprocessableEntity, error) SyncPaymentOrders(params *SyncPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*SyncPaymentOrdersOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new payment dedicated API client.
type CreatePaymentOrderByDedicatedBadRequest ¶
type CreatePaymentOrderByDedicatedBadRequest struct {
Payload *platformclientmodels.ErrorEntity
}
CreatePaymentOrderByDedicatedBadRequest handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33121</td><td>Recurring payment failed with code: [{errorCode}] and message: [{errorMessage}]</td></tr><tr><td>33122</td><td>Subscription not match when create payment order</td></tr></table>
func NewCreatePaymentOrderByDedicatedBadRequest ¶
func NewCreatePaymentOrderByDedicatedBadRequest() *CreatePaymentOrderByDedicatedBadRequest
NewCreatePaymentOrderByDedicatedBadRequest creates a CreatePaymentOrderByDedicatedBadRequest with default headers values
func (*CreatePaymentOrderByDedicatedBadRequest) Error ¶
func (o *CreatePaymentOrderByDedicatedBadRequest) Error() string
func (*CreatePaymentOrderByDedicatedBadRequest) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedBadRequest) GetPayload() *platformclientmodels.ErrorEntity
type CreatePaymentOrderByDedicatedConflict ¶
type CreatePaymentOrderByDedicatedConflict struct {
Payload *platformclientmodels.ErrorEntity
}
CreatePaymentOrderByDedicatedConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20006</td><td>optimistic lock</td></tr><tr><td>33173</td><td>ExtOrderNo [{extOrderNo}] already exists in namespace [{namespace}]</td></tr></table>
func NewCreatePaymentOrderByDedicatedConflict ¶
func NewCreatePaymentOrderByDedicatedConflict() *CreatePaymentOrderByDedicatedConflict
NewCreatePaymentOrderByDedicatedConflict creates a CreatePaymentOrderByDedicatedConflict with default headers values
func (*CreatePaymentOrderByDedicatedConflict) Error ¶
func (o *CreatePaymentOrderByDedicatedConflict) Error() string
func (*CreatePaymentOrderByDedicatedConflict) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedConflict) GetPayload() *platformclientmodels.ErrorEntity
type CreatePaymentOrderByDedicatedCreated ¶
type CreatePaymentOrderByDedicatedCreated struct {
Payload *platformclientmodels.PaymentOrderCreateResult
}
CreatePaymentOrderByDedicatedCreated handles this case with default header values.
successful operation
func NewCreatePaymentOrderByDedicatedCreated ¶
func NewCreatePaymentOrderByDedicatedCreated() *CreatePaymentOrderByDedicatedCreated
NewCreatePaymentOrderByDedicatedCreated creates a CreatePaymentOrderByDedicatedCreated with default headers values
func (*CreatePaymentOrderByDedicatedCreated) Error ¶
func (o *CreatePaymentOrderByDedicatedCreated) Error() string
func (*CreatePaymentOrderByDedicatedCreated) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedCreated) GetPayload() *platformclientmodels.PaymentOrderCreateResult
type CreatePaymentOrderByDedicatedForbidden ¶
type CreatePaymentOrderByDedicatedForbidden struct {
Payload *platformclientmodels.ErrorEntity
}
CreatePaymentOrderByDedicatedForbidden handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20016</td><td>action is banned</td></tr></table>
func NewCreatePaymentOrderByDedicatedForbidden ¶
func NewCreatePaymentOrderByDedicatedForbidden() *CreatePaymentOrderByDedicatedForbidden
NewCreatePaymentOrderByDedicatedForbidden creates a CreatePaymentOrderByDedicatedForbidden with default headers values
func (*CreatePaymentOrderByDedicatedForbidden) Error ¶
func (o *CreatePaymentOrderByDedicatedForbidden) Error() string
func (*CreatePaymentOrderByDedicatedForbidden) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedForbidden) GetPayload() *platformclientmodels.ErrorEntity
type CreatePaymentOrderByDedicatedNotFound ¶
type CreatePaymentOrderByDedicatedNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
CreatePaymentOrderByDedicatedNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr><tr><td>33145</td><td>Recurring token not found</td></tr><tr><td>20008</td><td>user [{userId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewCreatePaymentOrderByDedicatedNotFound ¶
func NewCreatePaymentOrderByDedicatedNotFound() *CreatePaymentOrderByDedicatedNotFound
NewCreatePaymentOrderByDedicatedNotFound creates a CreatePaymentOrderByDedicatedNotFound with default headers values
func (*CreatePaymentOrderByDedicatedNotFound) Error ¶
func (o *CreatePaymentOrderByDedicatedNotFound) Error() string
func (*CreatePaymentOrderByDedicatedNotFound) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedNotFound) GetPayload() *platformclientmodels.ErrorEntity
type CreatePaymentOrderByDedicatedParams ¶
type CreatePaymentOrderByDedicatedParams struct { /*Body*/ Body *platformclientmodels.ExternalPaymentOrderCreate /*Namespace*/ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePaymentOrderByDedicatedParams contains all the parameters to send to the API endpoint for the create payment order by dedicated operation typically these are written to a http.Request
func NewCreatePaymentOrderByDedicatedParams ¶
func NewCreatePaymentOrderByDedicatedParams() *CreatePaymentOrderByDedicatedParams
NewCreatePaymentOrderByDedicatedParams creates a new CreatePaymentOrderByDedicatedParams object with the default values initialized.
func NewCreatePaymentOrderByDedicatedParamsWithContext ¶
func NewCreatePaymentOrderByDedicatedParamsWithContext(ctx context.Context) *CreatePaymentOrderByDedicatedParams
NewCreatePaymentOrderByDedicatedParamsWithContext creates a new CreatePaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a context for a request
func NewCreatePaymentOrderByDedicatedParamsWithHTTPClient ¶
func NewCreatePaymentOrderByDedicatedParamsWithHTTPClient(client *http.Client) *CreatePaymentOrderByDedicatedParams
NewCreatePaymentOrderByDedicatedParamsWithHTTPClient creates a new CreatePaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreatePaymentOrderByDedicatedParamsWithTimeout ¶
func NewCreatePaymentOrderByDedicatedParamsWithTimeout(timeout time.Duration) *CreatePaymentOrderByDedicatedParams
NewCreatePaymentOrderByDedicatedParamsWithTimeout creates a new CreatePaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreatePaymentOrderByDedicatedParams) SetBody ¶
func (o *CreatePaymentOrderByDedicatedParams) SetBody(body *platformclientmodels.ExternalPaymentOrderCreate)
SetBody adds the body to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) SetContext ¶
func (o *CreatePaymentOrderByDedicatedParams) SetContext(ctx context.Context)
SetContext adds the context to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) SetHTTPClient ¶
func (o *CreatePaymentOrderByDedicatedParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) SetNamespace ¶
func (o *CreatePaymentOrderByDedicatedParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) SetTimeout ¶
func (o *CreatePaymentOrderByDedicatedParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WithBody ¶
func (o *CreatePaymentOrderByDedicatedParams) WithBody(body *platformclientmodels.ExternalPaymentOrderCreate) *CreatePaymentOrderByDedicatedParams
WithBody adds the body to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WithContext ¶
func (o *CreatePaymentOrderByDedicatedParams) WithContext(ctx context.Context) *CreatePaymentOrderByDedicatedParams
WithContext adds the context to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WithHTTPClient ¶
func (o *CreatePaymentOrderByDedicatedParams) WithHTTPClient(client *http.Client) *CreatePaymentOrderByDedicatedParams
WithHTTPClient adds the HTTPClient to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WithNamespace ¶
func (o *CreatePaymentOrderByDedicatedParams) WithNamespace(namespace string) *CreatePaymentOrderByDedicatedParams
WithNamespace adds the namespace to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WithTimeout ¶
func (o *CreatePaymentOrderByDedicatedParams) WithTimeout(timeout time.Duration) *CreatePaymentOrderByDedicatedParams
WithTimeout adds the timeout to the create payment order by dedicated params
func (*CreatePaymentOrderByDedicatedParams) WriteToRequest ¶
func (o *CreatePaymentOrderByDedicatedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePaymentOrderByDedicatedReader ¶
type CreatePaymentOrderByDedicatedReader struct {
// contains filtered or unexported fields
}
CreatePaymentOrderByDedicatedReader is a Reader for the CreatePaymentOrderByDedicated structure.
func (*CreatePaymentOrderByDedicatedReader) ReadResponse ¶
func (o *CreatePaymentOrderByDedicatedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePaymentOrderByDedicatedUnprocessableEntity ¶
type CreatePaymentOrderByDedicatedUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
CreatePaymentOrderByDedicatedUnprocessableEntity handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>
func NewCreatePaymentOrderByDedicatedUnprocessableEntity ¶
func NewCreatePaymentOrderByDedicatedUnprocessableEntity() *CreatePaymentOrderByDedicatedUnprocessableEntity
NewCreatePaymentOrderByDedicatedUnprocessableEntity creates a CreatePaymentOrderByDedicatedUnprocessableEntity with default headers values
func (*CreatePaymentOrderByDedicatedUnprocessableEntity) Error ¶
func (o *CreatePaymentOrderByDedicatedUnprocessableEntity) Error() string
func (*CreatePaymentOrderByDedicatedUnprocessableEntity) GetPayload ¶
func (o *CreatePaymentOrderByDedicatedUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
type RefundPaymentOrderByDedicatedConflict ¶
type RefundPaymentOrderByDedicatedConflict struct {
Payload *platformclientmodels.ErrorEntity
}
RefundPaymentOrderByDedicatedConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33172</td><td>Payment order [{paymentOrderNo}] is not refundable</td></tr></table>
func NewRefundPaymentOrderByDedicatedConflict ¶
func NewRefundPaymentOrderByDedicatedConflict() *RefundPaymentOrderByDedicatedConflict
NewRefundPaymentOrderByDedicatedConflict creates a RefundPaymentOrderByDedicatedConflict with default headers values
func (*RefundPaymentOrderByDedicatedConflict) Error ¶
func (o *RefundPaymentOrderByDedicatedConflict) Error() string
func (*RefundPaymentOrderByDedicatedConflict) GetPayload ¶
func (o *RefundPaymentOrderByDedicatedConflict) GetPayload() *platformclientmodels.ErrorEntity
type RefundPaymentOrderByDedicatedNoContent ¶
type RefundPaymentOrderByDedicatedNoContent struct { }
RefundPaymentOrderByDedicatedNoContent handles this case with default header values.
Refund successfully
func NewRefundPaymentOrderByDedicatedNoContent ¶
func NewRefundPaymentOrderByDedicatedNoContent() *RefundPaymentOrderByDedicatedNoContent
NewRefundPaymentOrderByDedicatedNoContent creates a RefundPaymentOrderByDedicatedNoContent with default headers values
func (*RefundPaymentOrderByDedicatedNoContent) Error ¶
func (o *RefundPaymentOrderByDedicatedNoContent) Error() string
type RefundPaymentOrderByDedicatedNotFound ¶
type RefundPaymentOrderByDedicatedNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
RefundPaymentOrderByDedicatedNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr></table>
func NewRefundPaymentOrderByDedicatedNotFound ¶
func NewRefundPaymentOrderByDedicatedNotFound() *RefundPaymentOrderByDedicatedNotFound
NewRefundPaymentOrderByDedicatedNotFound creates a RefundPaymentOrderByDedicatedNotFound with default headers values
func (*RefundPaymentOrderByDedicatedNotFound) Error ¶
func (o *RefundPaymentOrderByDedicatedNotFound) Error() string
func (*RefundPaymentOrderByDedicatedNotFound) GetPayload ¶
func (o *RefundPaymentOrderByDedicatedNotFound) GetPayload() *platformclientmodels.ErrorEntity
type RefundPaymentOrderByDedicatedOK ¶
type RefundPaymentOrderByDedicatedOK struct {
Payload *platformclientmodels.PaymentOrderRefundResult
}
RefundPaymentOrderByDedicatedOK handles this case with default header values.
successful operation
func NewRefundPaymentOrderByDedicatedOK ¶
func NewRefundPaymentOrderByDedicatedOK() *RefundPaymentOrderByDedicatedOK
NewRefundPaymentOrderByDedicatedOK creates a RefundPaymentOrderByDedicatedOK with default headers values
func (*RefundPaymentOrderByDedicatedOK) Error ¶
func (o *RefundPaymentOrderByDedicatedOK) Error() string
func (*RefundPaymentOrderByDedicatedOK) GetPayload ¶
func (o *RefundPaymentOrderByDedicatedOK) GetPayload() *platformclientmodels.PaymentOrderRefundResult
type RefundPaymentOrderByDedicatedParams ¶
type RefundPaymentOrderByDedicatedParams struct { /*Body*/ Body *platformclientmodels.PaymentOrderRefund /*Namespace*/ Namespace string /*PaymentOrderNo*/ PaymentOrderNo string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RefundPaymentOrderByDedicatedParams contains all the parameters to send to the API endpoint for the refund payment order by dedicated operation typically these are written to a http.Request
func NewRefundPaymentOrderByDedicatedParams ¶
func NewRefundPaymentOrderByDedicatedParams() *RefundPaymentOrderByDedicatedParams
NewRefundPaymentOrderByDedicatedParams creates a new RefundPaymentOrderByDedicatedParams object with the default values initialized.
func NewRefundPaymentOrderByDedicatedParamsWithContext ¶
func NewRefundPaymentOrderByDedicatedParamsWithContext(ctx context.Context) *RefundPaymentOrderByDedicatedParams
NewRefundPaymentOrderByDedicatedParamsWithContext creates a new RefundPaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a context for a request
func NewRefundPaymentOrderByDedicatedParamsWithHTTPClient ¶
func NewRefundPaymentOrderByDedicatedParamsWithHTTPClient(client *http.Client) *RefundPaymentOrderByDedicatedParams
NewRefundPaymentOrderByDedicatedParamsWithHTTPClient creates a new RefundPaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRefundPaymentOrderByDedicatedParamsWithTimeout ¶
func NewRefundPaymentOrderByDedicatedParamsWithTimeout(timeout time.Duration) *RefundPaymentOrderByDedicatedParams
NewRefundPaymentOrderByDedicatedParamsWithTimeout creates a new RefundPaymentOrderByDedicatedParams object with the default values initialized, and the ability to set a timeout on a request
func (*RefundPaymentOrderByDedicatedParams) SetBody ¶
func (o *RefundPaymentOrderByDedicatedParams) SetBody(body *platformclientmodels.PaymentOrderRefund)
SetBody adds the body to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) SetContext ¶
func (o *RefundPaymentOrderByDedicatedParams) SetContext(ctx context.Context)
SetContext adds the context to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) SetHTTPClient ¶
func (o *RefundPaymentOrderByDedicatedParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) SetNamespace ¶
func (o *RefundPaymentOrderByDedicatedParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) SetPaymentOrderNo ¶
func (o *RefundPaymentOrderByDedicatedParams) SetPaymentOrderNo(paymentOrderNo string)
SetPaymentOrderNo adds the paymentOrderNo to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) SetTimeout ¶
func (o *RefundPaymentOrderByDedicatedParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithBody ¶
func (o *RefundPaymentOrderByDedicatedParams) WithBody(body *platformclientmodels.PaymentOrderRefund) *RefundPaymentOrderByDedicatedParams
WithBody adds the body to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithContext ¶
func (o *RefundPaymentOrderByDedicatedParams) WithContext(ctx context.Context) *RefundPaymentOrderByDedicatedParams
WithContext adds the context to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithHTTPClient ¶
func (o *RefundPaymentOrderByDedicatedParams) WithHTTPClient(client *http.Client) *RefundPaymentOrderByDedicatedParams
WithHTTPClient adds the HTTPClient to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithNamespace ¶
func (o *RefundPaymentOrderByDedicatedParams) WithNamespace(namespace string) *RefundPaymentOrderByDedicatedParams
WithNamespace adds the namespace to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithPaymentOrderNo ¶
func (o *RefundPaymentOrderByDedicatedParams) WithPaymentOrderNo(paymentOrderNo string) *RefundPaymentOrderByDedicatedParams
WithPaymentOrderNo adds the paymentOrderNo to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WithTimeout ¶
func (o *RefundPaymentOrderByDedicatedParams) WithTimeout(timeout time.Duration) *RefundPaymentOrderByDedicatedParams
WithTimeout adds the timeout to the refund payment order by dedicated params
func (*RefundPaymentOrderByDedicatedParams) WriteToRequest ¶
func (o *RefundPaymentOrderByDedicatedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RefundPaymentOrderByDedicatedReader ¶
type RefundPaymentOrderByDedicatedReader struct {
// contains filtered or unexported fields
}
RefundPaymentOrderByDedicatedReader is a Reader for the RefundPaymentOrderByDedicated structure.
func (*RefundPaymentOrderByDedicatedReader) ReadResponse ¶
func (o *RefundPaymentOrderByDedicatedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RefundPaymentOrderByDedicatedUnprocessableEntity ¶
type RefundPaymentOrderByDedicatedUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
RefundPaymentOrderByDedicatedUnprocessableEntity handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>
func NewRefundPaymentOrderByDedicatedUnprocessableEntity ¶
func NewRefundPaymentOrderByDedicatedUnprocessableEntity() *RefundPaymentOrderByDedicatedUnprocessableEntity
NewRefundPaymentOrderByDedicatedUnprocessableEntity creates a RefundPaymentOrderByDedicatedUnprocessableEntity with default headers values
func (*RefundPaymentOrderByDedicatedUnprocessableEntity) Error ¶
func (o *RefundPaymentOrderByDedicatedUnprocessableEntity) Error() string
func (*RefundPaymentOrderByDedicatedUnprocessableEntity) GetPayload ¶
func (o *RefundPaymentOrderByDedicatedUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
type SyncPaymentOrdersOK ¶
type SyncPaymentOrdersOK struct {
Payload *platformclientmodels.PaymentOrderSyncResult
}
SyncPaymentOrdersOK handles this case with default header values.
successful operation
func NewSyncPaymentOrdersOK ¶
func NewSyncPaymentOrdersOK() *SyncPaymentOrdersOK
NewSyncPaymentOrdersOK creates a SyncPaymentOrdersOK with default headers values
func (*SyncPaymentOrdersOK) Error ¶
func (o *SyncPaymentOrdersOK) Error() string
func (*SyncPaymentOrdersOK) GetPayload ¶
func (o *SyncPaymentOrdersOK) GetPayload() *platformclientmodels.PaymentOrderSyncResult
type SyncPaymentOrdersParams ¶
type SyncPaymentOrdersParams struct { /*End exclude ISODateTimeFormat no millis like yyyy-MM-dd'T'HH:mm:ssZZ */ End string /*NextEvaluatedKey*/ NextEvaluatedKey *string /*Start include ISODateTimeFormat no millis like yyyy-MM-dd'T'HH:mm:ssZZ */ Start string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SyncPaymentOrdersParams contains all the parameters to send to the API endpoint for the sync payment orders operation typically these are written to a http.Request
func NewSyncPaymentOrdersParams ¶
func NewSyncPaymentOrdersParams() *SyncPaymentOrdersParams
NewSyncPaymentOrdersParams creates a new SyncPaymentOrdersParams object with the default values initialized.
func NewSyncPaymentOrdersParamsWithContext ¶
func NewSyncPaymentOrdersParamsWithContext(ctx context.Context) *SyncPaymentOrdersParams
NewSyncPaymentOrdersParamsWithContext creates a new SyncPaymentOrdersParams object with the default values initialized, and the ability to set a context for a request
func NewSyncPaymentOrdersParamsWithHTTPClient ¶
func NewSyncPaymentOrdersParamsWithHTTPClient(client *http.Client) *SyncPaymentOrdersParams
NewSyncPaymentOrdersParamsWithHTTPClient creates a new SyncPaymentOrdersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSyncPaymentOrdersParamsWithTimeout ¶
func NewSyncPaymentOrdersParamsWithTimeout(timeout time.Duration) *SyncPaymentOrdersParams
NewSyncPaymentOrdersParamsWithTimeout creates a new SyncPaymentOrdersParams object with the default values initialized, and the ability to set a timeout on a request
func (*SyncPaymentOrdersParams) SetContext ¶
func (o *SyncPaymentOrdersParams) SetContext(ctx context.Context)
SetContext adds the context to the sync payment orders params
func (*SyncPaymentOrdersParams) SetEnd ¶
func (o *SyncPaymentOrdersParams) SetEnd(end string)
SetEnd adds the end to the sync payment orders params
func (*SyncPaymentOrdersParams) SetHTTPClient ¶
func (o *SyncPaymentOrdersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the sync payment orders params
func (*SyncPaymentOrdersParams) SetNextEvaluatedKey ¶
func (o *SyncPaymentOrdersParams) SetNextEvaluatedKey(nextEvaluatedKey *string)
SetNextEvaluatedKey adds the nextEvaluatedKey to the sync payment orders params
func (*SyncPaymentOrdersParams) SetStart ¶
func (o *SyncPaymentOrdersParams) SetStart(start string)
SetStart adds the start to the sync payment orders params
func (*SyncPaymentOrdersParams) SetTimeout ¶
func (o *SyncPaymentOrdersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the sync payment orders params
func (*SyncPaymentOrdersParams) WithContext ¶
func (o *SyncPaymentOrdersParams) WithContext(ctx context.Context) *SyncPaymentOrdersParams
WithContext adds the context to the sync payment orders params
func (*SyncPaymentOrdersParams) WithEnd ¶
func (o *SyncPaymentOrdersParams) WithEnd(end string) *SyncPaymentOrdersParams
WithEnd adds the end to the sync payment orders params
func (*SyncPaymentOrdersParams) WithHTTPClient ¶
func (o *SyncPaymentOrdersParams) WithHTTPClient(client *http.Client) *SyncPaymentOrdersParams
WithHTTPClient adds the HTTPClient to the sync payment orders params
func (*SyncPaymentOrdersParams) WithNextEvaluatedKey ¶
func (o *SyncPaymentOrdersParams) WithNextEvaluatedKey(nextEvaluatedKey *string) *SyncPaymentOrdersParams
WithNextEvaluatedKey adds the nextEvaluatedKey to the sync payment orders params
func (*SyncPaymentOrdersParams) WithStart ¶
func (o *SyncPaymentOrdersParams) WithStart(start string) *SyncPaymentOrdersParams
WithStart adds the start to the sync payment orders params
func (*SyncPaymentOrdersParams) WithTimeout ¶
func (o *SyncPaymentOrdersParams) WithTimeout(timeout time.Duration) *SyncPaymentOrdersParams
WithTimeout adds the timeout to the sync payment orders params
func (*SyncPaymentOrdersParams) WriteToRequest ¶
func (o *SyncPaymentOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SyncPaymentOrdersReader ¶
type SyncPaymentOrdersReader struct {
// contains filtered or unexported fields
}
SyncPaymentOrdersReader is a Reader for the SyncPaymentOrders structure.
func (*SyncPaymentOrdersReader) ReadResponse ¶
func (o *SyncPaymentOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.