@paysponge/sdk 0.1.67 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/openapi/apis/default-api.d.ts +226 -127
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +225 -126
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +6 -3
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +6 -3
- package/dist/api/generated/openapi/models/index.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-link-request.d.ts +59 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-link-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-link-request.js +52 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-link-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request-shipping.d.ts +75 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request-shipping.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request-shipping.js +70 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request-shipping.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request.d.ts +3 -2
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request.js +5 -2
- package/dist/api/generated/openapi/models/post-api-agents-by-id-link-payment-methods-request.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-amazon-search-request.d.ts +60 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-amazon-search-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/{post-api-checkout-amazon-search-request.js → post-api-amazon-checkout-amazon-search-request.js} +10 -10
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-amazon-search-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request-shipping-address.d.ts +75 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request-shipping-address.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/{post-api-checkout-request-shipping-address.js → post-api-amazon-checkout-request-shipping-address.js} +9 -9
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request-shipping-address.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request.d.ts +88 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request.js +63 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-stream-request.d.ts +64 -0
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-stream-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/{post-api-checkout-stream-request.js → post-api-amazon-checkout-stream-request.js} +12 -12
- package/dist/api/generated/openapi/models/post-api-amazon-checkout-stream-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-checkout-request.d.ts +5 -30
- package/dist/api/generated/openapi/models/post-api-checkout-request.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/post-api-checkout-request.js +9 -18
- package/dist/api/generated/openapi/models/post-api-checkout-request.js.map +1 -1
- package/dist/api/generated/openapi/models/put-api-agent-requests-by-id-approve-request.d.ts +0 -6
- package/dist/api/generated/openapi/models/put-api-agent-requests-by-id-approve-request.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/put-api-agent-requests-by-id-approve-request.js +0 -2
- package/dist/api/generated/openapi/models/put-api-agent-requests-by-id-approve-request.js.map +1 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +43 -0
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +8 -0
- package/dist/tools/executor.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/api/generated/openapi/models/post-api-checkout-amazon-search-request.d.ts +0 -60
- package/dist/api/generated/openapi/models/post-api-checkout-amazon-search-request.d.ts.map +0 -1
- package/dist/api/generated/openapi/models/post-api-checkout-amazon-search-request.js.map +0 -1
- package/dist/api/generated/openapi/models/post-api-checkout-request-shipping-address.d.ts +0 -75
- package/dist/api/generated/openapi/models/post-api-checkout-request-shipping-address.d.ts.map +0 -1
- package/dist/api/generated/openapi/models/post-api-checkout-request-shipping-address.js.map +0 -1
- package/dist/api/generated/openapi/models/post-api-checkout-stream-request.d.ts +0 -64
- package/dist/api/generated/openapi/models/post-api-checkout-stream-request.d.ts.map +0 -1
- package/dist/api/generated/openapi/models/post-api-checkout-stream-request.js.map +0 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { PostApiAgentKeysRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerPersonaRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON, PostApiCardUsageRequestToJSON, PostApiCardsRequestToJSON, PostApiChatMessagesRequestToJSON, PostApiChatRateLimitReportRequestToJSON,
|
|
15
|
+
import { PostApiAgentKeysRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiAmazonCheckoutAmazonSearchRequestToJSON, PostApiAmazonCheckoutRequestToJSON, PostApiAmazonCheckoutStreamRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerPersonaRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON, PostApiCardUsageRequestToJSON, PostApiCardsRequestToJSON, PostApiChatMessagesRequestToJSON, PostApiChatRateLimitReportRequestToJSON, PostApiCheckoutRequestToJSON, PostApiCoinbaseOnrampCallbackRequestToJSON, PostApiCoinbaseOnrampUrlRequestToJSON, PostApiCreditCardsRequestToJSON, PostApiEmailCheckAvailabilityRequestToJSON, PostApiFaucetRequestRequestToJSON, PostApiFlowsRequestToJSON, PostApiHyperliquidRequestToJSON, PostApiInvitesRedeemRequestToJSON, PostApiInvitesRegisterDirectRequestToJSON, PostApiInvitesValidateRequestToJSON, PostApiLinkCliAuthLoginRequestToJSON, PostApiMasterKeysRequestToJSON, PostApiMppFetchRequestToJSON, PostApiMppSessionCloseRequestToJSON, PostApiMppSessionRequestRequestToJSON, PostApiMppSessionStartRequestToJSON, PostApiOauthDeviceApproveRequestToJSON, PostApiOauthDeviceAuthorizationRequestToJSON, PostApiOauthDeviceDenyRequestToJSON, PostApiOauthDeviceTokenRequestToJSON, PostApiOnrampCryptoRequestToJSON, PostApiPaidFetchRequestToJSON, PostApiPaymentLinksRequestToJSON, PostApiPersonaKycInquiryRequestToJSON, PostApiPlansApproveRequestToJSON, PostApiPlansSubmitRequestToJSON, PostApiPolymarketRequestToJSON, PostApiRpcByChainIdRequestToJSON, PostApiSignupBonusClaimRequestToJSON, PostApiSiweGenerateRequestToJSON, PostApiSolanaSignRequestToJSON, PostApiSpendingLimitsRequestToJSON, PostApiSpongeCardCardRequestToJSON, PostApiSpongeCardCardsByCardIdSecretsRequestToJSON, PostApiSpongeCardContractsByContractIdFundRequestToJSON, PostApiSpongeCardContractsByContractIdWithdrawRequestToJSON, PostApiSpongeCardCreateCardRequestToJSON, PostApiSpongeCardCustomerRefreshRequestToJSON, PostApiSpongeCardCustomerRequestToJSON, PostApiSpongeCardFundRequestToJSON, PostApiSpongeCardOnboardRequestToJSON, PostApiSpongeCardTermsRequestToJSON, PostApiSpongeCardWithdrawRequestToJSON, PostApiStripeOnrampSessionRequestToJSON, PostApiTasksRequestToJSON, PostApiTradesProposeRequestToJSON, PostApiTransactionsBridgeRequestToJSON, PostApiTransactionsPrepareRequestToJSON, PostApiTransactionsSwapExecuteRequestToJSON, PostApiTransactionsSwapRequestToJSON, PostApiTransactionsTransferRequestToJSON, PostApiTransfersEvmRequestToJSON, PostApiTransfersSolanaRequestToJSON, PostApiTransfersTempoRequestToJSON, PostApiUsersSyncRequestToJSON, PostApiVirtualCardsRequestToJSON, PostApiWalletsByIdExportKeyRequestToJSON, PostApiWalletsByIdWithdrawRequestToJSON, PostApiWalletsMigrateQuorumRequestToJSON, PostApiWalletsPricesRequestToJSON, PostApiWalletsRequestToJSON, PostApiX402FetchRequestToJSON, PostApiX402PaymentsRequestToJSON, PostOauthAuthorizeCallbackRequestToJSON, PostOauthRegisterRequestToJSON, PostOauthRevokeRequestToJSON, PostOauthTokenRequestToJSON, PutApiAgentRequestsByIdApproveRequestToJSON, PutApiAgentRequestsByIdRespondRequestToJSON, PutApiAgentRequestsPlansByPlanIdRejectRequestToJSON, PutApiAgentsByIdRequestToJSON, PutApiFlowsByIdRequestToJSON, PutApiSpendingLimitsByIdRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -699,12 +699,19 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
699
699
|
await this.deleteApiAllowlistByIdRaw(requestParameters, initOverrides);
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* Creates request options for
|
|
702
|
+
* Creates request options for deleteApiAmazonCheckoutBySessionId without sending the request
|
|
703
703
|
*/
|
|
704
|
-
async
|
|
704
|
+
async deleteApiAmazonCheckoutBySessionIdRequestOpts(requestParameters) {
|
|
705
|
+
if (requestParameters['sessionId'] == null) {
|
|
706
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling deleteApiAmazonCheckoutBySessionId().');
|
|
707
|
+
}
|
|
705
708
|
const queryParameters = {};
|
|
709
|
+
if (requestParameters['agentId'] != null) {
|
|
710
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
711
|
+
}
|
|
706
712
|
const headerParameters = {};
|
|
707
|
-
let urlPath = `/api/
|
|
713
|
+
let urlPath = `/api/amazon-checkout/{sessionId}`;
|
|
714
|
+
urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
708
715
|
return {
|
|
709
716
|
path: urlPath,
|
|
710
717
|
method: 'DELETE',
|
|
@@ -714,23 +721,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
714
721
|
}
|
|
715
722
|
/**
|
|
716
723
|
*/
|
|
717
|
-
async
|
|
718
|
-
const requestOptions = await this.
|
|
724
|
+
async deleteApiAmazonCheckoutBySessionIdRaw(requestParameters, initOverrides) {
|
|
725
|
+
const requestOptions = await this.deleteApiAmazonCheckoutBySessionIdRequestOpts(requestParameters);
|
|
719
726
|
const response = await this.request(requestOptions, initOverrides);
|
|
720
727
|
return new runtime.VoidApiResponse(response);
|
|
721
728
|
}
|
|
722
729
|
/**
|
|
723
730
|
*/
|
|
724
|
-
async
|
|
725
|
-
await this.
|
|
731
|
+
async deleteApiAmazonCheckoutBySessionId(requestParameters, initOverrides) {
|
|
732
|
+
await this.deleteApiAmazonCheckoutBySessionIdRaw(requestParameters, initOverrides);
|
|
726
733
|
}
|
|
727
734
|
/**
|
|
728
|
-
* Creates request options for
|
|
735
|
+
* Creates request options for deleteApiBridgeFiatCustomer without sending the request
|
|
729
736
|
*/
|
|
730
|
-
async
|
|
737
|
+
async deleteApiBridgeFiatCustomerRequestOpts() {
|
|
731
738
|
const queryParameters = {};
|
|
732
739
|
const headerParameters = {};
|
|
733
|
-
let urlPath = `/api/bridge-fiat/customer
|
|
740
|
+
let urlPath = `/api/bridge-fiat/customer`;
|
|
734
741
|
return {
|
|
735
742
|
path: urlPath,
|
|
736
743
|
method: 'DELETE',
|
|
@@ -740,30 +747,23 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
740
747
|
}
|
|
741
748
|
/**
|
|
742
749
|
*/
|
|
743
|
-
async
|
|
744
|
-
const requestOptions = await this.
|
|
750
|
+
async deleteApiBridgeFiatCustomerRaw(initOverrides) {
|
|
751
|
+
const requestOptions = await this.deleteApiBridgeFiatCustomerRequestOpts();
|
|
745
752
|
const response = await this.request(requestOptions, initOverrides);
|
|
746
753
|
return new runtime.VoidApiResponse(response);
|
|
747
754
|
}
|
|
748
755
|
/**
|
|
749
756
|
*/
|
|
750
|
-
async
|
|
751
|
-
await this.
|
|
757
|
+
async deleteApiBridgeFiatCustomer(initOverrides) {
|
|
758
|
+
await this.deleteApiBridgeFiatCustomerRaw(initOverrides);
|
|
752
759
|
}
|
|
753
760
|
/**
|
|
754
|
-
* Creates request options for
|
|
761
|
+
* Creates request options for deleteApiBridgeFiatCustomerSandbox without sending the request
|
|
755
762
|
*/
|
|
756
|
-
async
|
|
757
|
-
if (requestParameters['sessionId'] == null) {
|
|
758
|
-
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling deleteApiCheckoutBySessionId().');
|
|
759
|
-
}
|
|
763
|
+
async deleteApiBridgeFiatCustomerSandboxRequestOpts() {
|
|
760
764
|
const queryParameters = {};
|
|
761
|
-
if (requestParameters['agentId'] != null) {
|
|
762
|
-
queryParameters['agentId'] = requestParameters['agentId'];
|
|
763
|
-
}
|
|
764
765
|
const headerParameters = {};
|
|
765
|
-
let urlPath = `/api/
|
|
766
|
-
urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
766
|
+
let urlPath = `/api/bridge-fiat/customer/sandbox`;
|
|
767
767
|
return {
|
|
768
768
|
path: urlPath,
|
|
769
769
|
method: 'DELETE',
|
|
@@ -773,15 +773,15 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
775
775
|
*/
|
|
776
|
-
async
|
|
777
|
-
const requestOptions = await this.
|
|
776
|
+
async deleteApiBridgeFiatCustomerSandboxRaw(initOverrides) {
|
|
777
|
+
const requestOptions = await this.deleteApiBridgeFiatCustomerSandboxRequestOpts();
|
|
778
778
|
const response = await this.request(requestOptions, initOverrides);
|
|
779
779
|
return new runtime.VoidApiResponse(response);
|
|
780
780
|
}
|
|
781
781
|
/**
|
|
782
782
|
*/
|
|
783
|
-
async
|
|
784
|
-
await this.
|
|
783
|
+
async deleteApiBridgeFiatCustomerSandbox(initOverrides) {
|
|
784
|
+
await this.deleteApiBridgeFiatCustomerSandboxRaw(initOverrides);
|
|
785
785
|
}
|
|
786
786
|
/**
|
|
787
787
|
* Creates request options for deleteApiFlowsById without sending the request
|
|
@@ -1877,6 +1877,74 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1877
1877
|
async getApiAmazonAccounts(initOverrides) {
|
|
1878
1878
|
await this.getApiAmazonAccountsRaw(initOverrides);
|
|
1879
1879
|
}
|
|
1880
|
+
/**
|
|
1881
|
+
* Creates request options for getApiAmazonCheckoutBySessionId without sending the request
|
|
1882
|
+
*/
|
|
1883
|
+
async getApiAmazonCheckoutBySessionIdRequestOpts(requestParameters) {
|
|
1884
|
+
if (requestParameters['sessionId'] == null) {
|
|
1885
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getApiAmazonCheckoutBySessionId().');
|
|
1886
|
+
}
|
|
1887
|
+
const queryParameters = {};
|
|
1888
|
+
if (requestParameters['agentId'] != null) {
|
|
1889
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
1890
|
+
}
|
|
1891
|
+
const headerParameters = {};
|
|
1892
|
+
let urlPath = `/api/amazon-checkout/{sessionId}`;
|
|
1893
|
+
urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
1894
|
+
return {
|
|
1895
|
+
path: urlPath,
|
|
1896
|
+
method: 'GET',
|
|
1897
|
+
headers: headerParameters,
|
|
1898
|
+
query: queryParameters,
|
|
1899
|
+
};
|
|
1900
|
+
}
|
|
1901
|
+
/**
|
|
1902
|
+
*/
|
|
1903
|
+
async getApiAmazonCheckoutBySessionIdRaw(requestParameters, initOverrides) {
|
|
1904
|
+
const requestOptions = await this.getApiAmazonCheckoutBySessionIdRequestOpts(requestParameters);
|
|
1905
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1906
|
+
return new runtime.VoidApiResponse(response);
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
*/
|
|
1910
|
+
async getApiAmazonCheckoutBySessionId(requestParameters, initOverrides) {
|
|
1911
|
+
await this.getApiAmazonCheckoutBySessionIdRaw(requestParameters, initOverrides);
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Creates request options for getApiAmazonCheckoutHistory without sending the request
|
|
1915
|
+
*/
|
|
1916
|
+
async getApiAmazonCheckoutHistoryRequestOpts(requestParameters) {
|
|
1917
|
+
const queryParameters = {};
|
|
1918
|
+
if (requestParameters['agentId'] != null) {
|
|
1919
|
+
queryParameters['agentId'] = requestParameters['agentId'];
|
|
1920
|
+
}
|
|
1921
|
+
if (requestParameters['limit'] != null) {
|
|
1922
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1923
|
+
}
|
|
1924
|
+
if (requestParameters['offset'] != null) {
|
|
1925
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1926
|
+
}
|
|
1927
|
+
const headerParameters = {};
|
|
1928
|
+
let urlPath = `/api/amazon-checkout/history`;
|
|
1929
|
+
return {
|
|
1930
|
+
path: urlPath,
|
|
1931
|
+
method: 'GET',
|
|
1932
|
+
headers: headerParameters,
|
|
1933
|
+
query: queryParameters,
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
*/
|
|
1938
|
+
async getApiAmazonCheckoutHistoryRaw(requestParameters, initOverrides) {
|
|
1939
|
+
const requestOptions = await this.getApiAmazonCheckoutHistoryRequestOpts(requestParameters);
|
|
1940
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1941
|
+
return new runtime.VoidApiResponse(response);
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
*/
|
|
1945
|
+
async getApiAmazonCheckoutHistory(requestParameters = {}, initOverrides) {
|
|
1946
|
+
await this.getApiAmazonCheckoutHistoryRaw(requestParameters, initOverrides);
|
|
1947
|
+
}
|
|
1880
1948
|
/**
|
|
1881
1949
|
* Creates request options for getApiAudit without sending the request
|
|
1882
1950
|
*/
|
|
@@ -2507,41 +2575,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2507
2575
|
async getApiCheckoutBySessionId(requestParameters, initOverrides) {
|
|
2508
2576
|
await this.getApiCheckoutBySessionIdRaw(requestParameters, initOverrides);
|
|
2509
2577
|
}
|
|
2510
|
-
/**
|
|
2511
|
-
* Creates request options for getApiCheckoutHistory without sending the request
|
|
2512
|
-
*/
|
|
2513
|
-
async getApiCheckoutHistoryRequestOpts(requestParameters) {
|
|
2514
|
-
const queryParameters = {};
|
|
2515
|
-
if (requestParameters['agentId'] != null) {
|
|
2516
|
-
queryParameters['agentId'] = requestParameters['agentId'];
|
|
2517
|
-
}
|
|
2518
|
-
if (requestParameters['limit'] != null) {
|
|
2519
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
2520
|
-
}
|
|
2521
|
-
if (requestParameters['offset'] != null) {
|
|
2522
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
2523
|
-
}
|
|
2524
|
-
const headerParameters = {};
|
|
2525
|
-
let urlPath = `/api/checkout/history`;
|
|
2526
|
-
return {
|
|
2527
|
-
path: urlPath,
|
|
2528
|
-
method: 'GET',
|
|
2529
|
-
headers: headerParameters,
|
|
2530
|
-
query: queryParameters,
|
|
2531
|
-
};
|
|
2532
|
-
}
|
|
2533
|
-
/**
|
|
2534
|
-
*/
|
|
2535
|
-
async getApiCheckoutHistoryRaw(requestParameters, initOverrides) {
|
|
2536
|
-
const requestOptions = await this.getApiCheckoutHistoryRequestOpts(requestParameters);
|
|
2537
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2538
|
-
return new runtime.VoidApiResponse(response);
|
|
2539
|
-
}
|
|
2540
|
-
/**
|
|
2541
|
-
*/
|
|
2542
|
-
async getApiCheckoutHistory(requestParameters = {}, initOverrides) {
|
|
2543
|
-
await this.getApiCheckoutHistoryRaw(requestParameters, initOverrides);
|
|
2544
|
-
}
|
|
2545
2578
|
/**
|
|
2546
2579
|
* Creates request options for getApiCoinbaseOnrampSessionBySessionTokenStatus without sending the request
|
|
2547
2580
|
*/
|
|
@@ -5030,6 +5063,41 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5030
5063
|
async postApiAgentsByIdLinkPaymentMethods(requestParameters, initOverrides) {
|
|
5031
5064
|
await this.postApiAgentsByIdLinkPaymentMethodsRaw(requestParameters, initOverrides);
|
|
5032
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* Creates request options for postApiAgentsByIdLinkPaymentMethodsLink without sending the request
|
|
5068
|
+
*/
|
|
5069
|
+
async postApiAgentsByIdLinkPaymentMethodsLinkRequestOpts(requestParameters) {
|
|
5070
|
+
if (requestParameters['id'] == null) {
|
|
5071
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentsByIdLinkPaymentMethodsLink().');
|
|
5072
|
+
}
|
|
5073
|
+
if (requestParameters['postApiAgentsByIdLinkPaymentMethodsLinkRequest'] == null) {
|
|
5074
|
+
throw new runtime.RequiredError('postApiAgentsByIdLinkPaymentMethodsLinkRequest', 'Required parameter "postApiAgentsByIdLinkPaymentMethodsLinkRequest" was null or undefined when calling postApiAgentsByIdLinkPaymentMethodsLink().');
|
|
5075
|
+
}
|
|
5076
|
+
const queryParameters = {};
|
|
5077
|
+
const headerParameters = {};
|
|
5078
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5079
|
+
let urlPath = `/api/agents/{id}/link-payment-methods/link`;
|
|
5080
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5081
|
+
return {
|
|
5082
|
+
path: urlPath,
|
|
5083
|
+
method: 'POST',
|
|
5084
|
+
headers: headerParameters,
|
|
5085
|
+
query: queryParameters,
|
|
5086
|
+
body: PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON(requestParameters['postApiAgentsByIdLinkPaymentMethodsLinkRequest']),
|
|
5087
|
+
};
|
|
5088
|
+
}
|
|
5089
|
+
/**
|
|
5090
|
+
*/
|
|
5091
|
+
async postApiAgentsByIdLinkPaymentMethodsLinkRaw(requestParameters, initOverrides) {
|
|
5092
|
+
const requestOptions = await this.postApiAgentsByIdLinkPaymentMethodsLinkRequestOpts(requestParameters);
|
|
5093
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5094
|
+
return new runtime.VoidApiResponse(response);
|
|
5095
|
+
}
|
|
5096
|
+
/**
|
|
5097
|
+
*/
|
|
5098
|
+
async postApiAgentsByIdLinkPaymentMethodsLink(requestParameters, initOverrides) {
|
|
5099
|
+
await this.postApiAgentsByIdLinkPaymentMethodsLinkRaw(requestParameters, initOverrides);
|
|
5100
|
+
}
|
|
5033
5101
|
/**
|
|
5034
5102
|
* Creates request options for postApiAgentsByIdPaymentMethods without sending the request
|
|
5035
5103
|
*/
|
|
@@ -5460,6 +5528,99 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5460
5528
|
async postApiAllowlist(requestParameters, initOverrides) {
|
|
5461
5529
|
await this.postApiAllowlistRaw(requestParameters, initOverrides);
|
|
5462
5530
|
}
|
|
5531
|
+
/**
|
|
5532
|
+
* Creates request options for postApiAmazonCheckout without sending the request
|
|
5533
|
+
*/
|
|
5534
|
+
async postApiAmazonCheckoutRequestOpts(requestParameters) {
|
|
5535
|
+
if (requestParameters['postApiAmazonCheckoutRequest'] == null) {
|
|
5536
|
+
throw new runtime.RequiredError('postApiAmazonCheckoutRequest', 'Required parameter "postApiAmazonCheckoutRequest" was null or undefined when calling postApiAmazonCheckout().');
|
|
5537
|
+
}
|
|
5538
|
+
const queryParameters = {};
|
|
5539
|
+
const headerParameters = {};
|
|
5540
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5541
|
+
let urlPath = `/api/amazon-checkout/`;
|
|
5542
|
+
return {
|
|
5543
|
+
path: urlPath,
|
|
5544
|
+
method: 'POST',
|
|
5545
|
+
headers: headerParameters,
|
|
5546
|
+
query: queryParameters,
|
|
5547
|
+
body: PostApiAmazonCheckoutRequestToJSON(requestParameters['postApiAmazonCheckoutRequest']),
|
|
5548
|
+
};
|
|
5549
|
+
}
|
|
5550
|
+
/**
|
|
5551
|
+
*/
|
|
5552
|
+
async postApiAmazonCheckoutRaw(requestParameters, initOverrides) {
|
|
5553
|
+
const requestOptions = await this.postApiAmazonCheckoutRequestOpts(requestParameters);
|
|
5554
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5555
|
+
return new runtime.VoidApiResponse(response);
|
|
5556
|
+
}
|
|
5557
|
+
/**
|
|
5558
|
+
*/
|
|
5559
|
+
async postApiAmazonCheckout(requestParameters, initOverrides) {
|
|
5560
|
+
await this.postApiAmazonCheckoutRaw(requestParameters, initOverrides);
|
|
5561
|
+
}
|
|
5562
|
+
/**
|
|
5563
|
+
* Creates request options for postApiAmazonCheckoutAmazonSearch without sending the request
|
|
5564
|
+
*/
|
|
5565
|
+
async postApiAmazonCheckoutAmazonSearchRequestOpts(requestParameters) {
|
|
5566
|
+
if (requestParameters['postApiAmazonCheckoutAmazonSearchRequest'] == null) {
|
|
5567
|
+
throw new runtime.RequiredError('postApiAmazonCheckoutAmazonSearchRequest', 'Required parameter "postApiAmazonCheckoutAmazonSearchRequest" was null or undefined when calling postApiAmazonCheckoutAmazonSearch().');
|
|
5568
|
+
}
|
|
5569
|
+
const queryParameters = {};
|
|
5570
|
+
const headerParameters = {};
|
|
5571
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5572
|
+
let urlPath = `/api/amazon-checkout/amazon-search`;
|
|
5573
|
+
return {
|
|
5574
|
+
path: urlPath,
|
|
5575
|
+
method: 'POST',
|
|
5576
|
+
headers: headerParameters,
|
|
5577
|
+
query: queryParameters,
|
|
5578
|
+
body: PostApiAmazonCheckoutAmazonSearchRequestToJSON(requestParameters['postApiAmazonCheckoutAmazonSearchRequest']),
|
|
5579
|
+
};
|
|
5580
|
+
}
|
|
5581
|
+
/**
|
|
5582
|
+
*/
|
|
5583
|
+
async postApiAmazonCheckoutAmazonSearchRaw(requestParameters, initOverrides) {
|
|
5584
|
+
const requestOptions = await this.postApiAmazonCheckoutAmazonSearchRequestOpts(requestParameters);
|
|
5585
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5586
|
+
return new runtime.VoidApiResponse(response);
|
|
5587
|
+
}
|
|
5588
|
+
/**
|
|
5589
|
+
*/
|
|
5590
|
+
async postApiAmazonCheckoutAmazonSearch(requestParameters, initOverrides) {
|
|
5591
|
+
await this.postApiAmazonCheckoutAmazonSearchRaw(requestParameters, initOverrides);
|
|
5592
|
+
}
|
|
5593
|
+
/**
|
|
5594
|
+
* Creates request options for postApiAmazonCheckoutStream without sending the request
|
|
5595
|
+
*/
|
|
5596
|
+
async postApiAmazonCheckoutStreamRequestOpts(requestParameters) {
|
|
5597
|
+
if (requestParameters['postApiAmazonCheckoutStreamRequest'] == null) {
|
|
5598
|
+
throw new runtime.RequiredError('postApiAmazonCheckoutStreamRequest', 'Required parameter "postApiAmazonCheckoutStreamRequest" was null or undefined when calling postApiAmazonCheckoutStream().');
|
|
5599
|
+
}
|
|
5600
|
+
const queryParameters = {};
|
|
5601
|
+
const headerParameters = {};
|
|
5602
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5603
|
+
let urlPath = `/api/amazon-checkout/stream`;
|
|
5604
|
+
return {
|
|
5605
|
+
path: urlPath,
|
|
5606
|
+
method: 'POST',
|
|
5607
|
+
headers: headerParameters,
|
|
5608
|
+
query: queryParameters,
|
|
5609
|
+
body: PostApiAmazonCheckoutStreamRequestToJSON(requestParameters['postApiAmazonCheckoutStreamRequest']),
|
|
5610
|
+
};
|
|
5611
|
+
}
|
|
5612
|
+
/**
|
|
5613
|
+
*/
|
|
5614
|
+
async postApiAmazonCheckoutStreamRaw(requestParameters, initOverrides) {
|
|
5615
|
+
const requestOptions = await this.postApiAmazonCheckoutStreamRequestOpts(requestParameters);
|
|
5616
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5617
|
+
return new runtime.VoidApiResponse(response);
|
|
5618
|
+
}
|
|
5619
|
+
/**
|
|
5620
|
+
*/
|
|
5621
|
+
async postApiAmazonCheckoutStream(requestParameters, initOverrides) {
|
|
5622
|
+
await this.postApiAmazonCheckoutStreamRaw(requestParameters, initOverrides);
|
|
5623
|
+
}
|
|
5463
5624
|
/**
|
|
5464
5625
|
* Creates request options for postApiBankExternalAccounts without sending the request
|
|
5465
5626
|
*/
|
|
@@ -6134,68 +6295,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
6134
6295
|
async postApiCheckout(requestParameters, initOverrides) {
|
|
6135
6296
|
await this.postApiCheckoutRaw(requestParameters, initOverrides);
|
|
6136
6297
|
}
|
|
6137
|
-
/**
|
|
6138
|
-
* Creates request options for postApiCheckoutAmazonSearch without sending the request
|
|
6139
|
-
*/
|
|
6140
|
-
async postApiCheckoutAmazonSearchRequestOpts(requestParameters) {
|
|
6141
|
-
if (requestParameters['postApiCheckoutAmazonSearchRequest'] == null) {
|
|
6142
|
-
throw new runtime.RequiredError('postApiCheckoutAmazonSearchRequest', 'Required parameter "postApiCheckoutAmazonSearchRequest" was null or undefined when calling postApiCheckoutAmazonSearch().');
|
|
6143
|
-
}
|
|
6144
|
-
const queryParameters = {};
|
|
6145
|
-
const headerParameters = {};
|
|
6146
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
6147
|
-
let urlPath = `/api/checkout/amazon-search`;
|
|
6148
|
-
return {
|
|
6149
|
-
path: urlPath,
|
|
6150
|
-
method: 'POST',
|
|
6151
|
-
headers: headerParameters,
|
|
6152
|
-
query: queryParameters,
|
|
6153
|
-
body: PostApiCheckoutAmazonSearchRequestToJSON(requestParameters['postApiCheckoutAmazonSearchRequest']),
|
|
6154
|
-
};
|
|
6155
|
-
}
|
|
6156
|
-
/**
|
|
6157
|
-
*/
|
|
6158
|
-
async postApiCheckoutAmazonSearchRaw(requestParameters, initOverrides) {
|
|
6159
|
-
const requestOptions = await this.postApiCheckoutAmazonSearchRequestOpts(requestParameters);
|
|
6160
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
6161
|
-
return new runtime.VoidApiResponse(response);
|
|
6162
|
-
}
|
|
6163
|
-
/**
|
|
6164
|
-
*/
|
|
6165
|
-
async postApiCheckoutAmazonSearch(requestParameters, initOverrides) {
|
|
6166
|
-
await this.postApiCheckoutAmazonSearchRaw(requestParameters, initOverrides);
|
|
6167
|
-
}
|
|
6168
|
-
/**
|
|
6169
|
-
* Creates request options for postApiCheckoutStream without sending the request
|
|
6170
|
-
*/
|
|
6171
|
-
async postApiCheckoutStreamRequestOpts(requestParameters) {
|
|
6172
|
-
if (requestParameters['postApiCheckoutStreamRequest'] == null) {
|
|
6173
|
-
throw new runtime.RequiredError('postApiCheckoutStreamRequest', 'Required parameter "postApiCheckoutStreamRequest" was null or undefined when calling postApiCheckoutStream().');
|
|
6174
|
-
}
|
|
6175
|
-
const queryParameters = {};
|
|
6176
|
-
const headerParameters = {};
|
|
6177
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
6178
|
-
let urlPath = `/api/checkout/stream`;
|
|
6179
|
-
return {
|
|
6180
|
-
path: urlPath,
|
|
6181
|
-
method: 'POST',
|
|
6182
|
-
headers: headerParameters,
|
|
6183
|
-
query: queryParameters,
|
|
6184
|
-
body: PostApiCheckoutStreamRequestToJSON(requestParameters['postApiCheckoutStreamRequest']),
|
|
6185
|
-
};
|
|
6186
|
-
}
|
|
6187
|
-
/**
|
|
6188
|
-
*/
|
|
6189
|
-
async postApiCheckoutStreamRaw(requestParameters, initOverrides) {
|
|
6190
|
-
const requestOptions = await this.postApiCheckoutStreamRequestOpts(requestParameters);
|
|
6191
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
6192
|
-
return new runtime.VoidApiResponse(response);
|
|
6193
|
-
}
|
|
6194
|
-
/**
|
|
6195
|
-
*/
|
|
6196
|
-
async postApiCheckoutStream(requestParameters, initOverrides) {
|
|
6197
|
-
await this.postApiCheckoutStreamRaw(requestParameters, initOverrides);
|
|
6198
|
-
}
|
|
6199
6298
|
/**
|
|
6200
6299
|
* Creates request options for postApiCoinbaseOnrampCallback without sending the request
|
|
6201
6300
|
*/
|