@aws-sdk/client-payments 0.0.0-stage → 3.1175.0

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.
Files changed (100) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +222 -2
  3. package/dist-cjs/index.js +972 -0
  4. package/dist-es/Payments.js +27 -0
  5. package/dist-es/PaymentsClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/BatchGetFinancialRecordCommand.js +4 -0
  10. package/dist-es/commands/GetAccountBalanceCommand.js +4 -0
  11. package/dist-es/commands/GetFinancialRecordCommand.js +4 -0
  12. package/dist-es/commands/GetPaymentInstrumentCommand.js +4 -0
  13. package/dist-es/commands/ListFinancialRecordsCommand.js +4 -0
  14. package/dist-es/commands/ListPaymentInstrumentsCommand.js +4 -0
  15. package/dist-es/commands/index.js +6 -0
  16. package/dist-es/endpoint/EndpointParameters.js +11 -0
  17. package/dist-es/endpoint/bdd.js +29 -0
  18. package/dist-es/endpoint/endpointResolver.js +14 -0
  19. package/dist-es/extensionConfiguration.js +1 -0
  20. package/dist-es/index.js +10 -0
  21. package/dist-es/models/PaymentsServiceException.js +9 -0
  22. package/dist-es/models/enums.js +89 -0
  23. package/dist-es/models/errors.js +84 -0
  24. package/dist-es/models/models_0.js +1 -0
  25. package/dist-es/pagination/GetAccountBalancePaginator.js +4 -0
  26. package/dist-es/pagination/Interfaces.js +1 -0
  27. package/dist-es/pagination/ListFinancialRecordsPaginator.js +4 -0
  28. package/dist-es/pagination/ListPaymentInstrumentsPaginator.js +4 -0
  29. package/dist-es/pagination/index.js +4 -0
  30. package/dist-es/runtimeConfig.browser.js +29 -0
  31. package/dist-es/runtimeConfig.js +44 -0
  32. package/dist-es/runtimeConfig.native.js +9 -0
  33. package/dist-es/runtimeConfig.shared.js +40 -0
  34. package/dist-es/runtimeExtensions.js +9 -0
  35. package/dist-es/schemas/schemas_0.js +406 -0
  36. package/dist-types/Payments.d.ts +81 -0
  37. package/dist-types/PaymentsClient.d.ts +193 -0
  38. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  39. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  40. package/dist-types/commandBuilder.d.ts +18 -0
  41. package/dist-types/commands/BatchGetFinancialRecordCommand.d.ts +231 -0
  42. package/dist-types/commands/GetAccountBalanceCommand.d.ts +124 -0
  43. package/dist-types/commands/GetFinancialRecordCommand.d.ts +200 -0
  44. package/dist-types/commands/GetPaymentInstrumentCommand.d.ts +163 -0
  45. package/dist-types/commands/ListFinancialRecordsCommand.d.ts +188 -0
  46. package/dist-types/commands/ListPaymentInstrumentsCommand.d.ts +126 -0
  47. package/dist-types/commands/index.d.ts +6 -0
  48. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  49. package/dist-types/endpoint/bdd.d.ts +2 -0
  50. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  51. package/dist-types/extensionConfiguration.d.ts +9 -0
  52. package/dist-types/index.d.ts +18 -0
  53. package/dist-types/models/PaymentsServiceException.d.ts +15 -0
  54. package/dist-types/models/enums.d.ts +225 -0
  55. package/dist-types/models/errors.d.ts +108 -0
  56. package/dist-types/models/models_0.d.ts +936 -0
  57. package/dist-types/pagination/GetAccountBalancePaginator.d.ts +7 -0
  58. package/dist-types/pagination/Interfaces.d.ts +8 -0
  59. package/dist-types/pagination/ListFinancialRecordsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/ListPaymentInstrumentsPaginator.d.ts +7 -0
  61. package/dist-types/pagination/index.d.ts +4 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  63. package/dist-types/runtimeConfig.d.ts +58 -0
  64. package/dist-types/runtimeConfig.native.d.ts +56 -0
  65. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  66. package/dist-types/runtimeExtensions.d.ts +17 -0
  67. package/dist-types/schemas/schemas_0.d.ts +55 -0
  68. package/dist-types/ts3.4/Payments.d.ts +138 -0
  69. package/dist-types/ts3.4/PaymentsClient.d.ts +136 -0
  70. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  71. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  72. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  73. package/dist-types/ts3.4/commands/BatchGetFinancialRecordCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +39 -0
  75. package/dist-types/ts3.4/commands/GetFinancialRecordCommand.d.ts +39 -0
  76. package/dist-types/ts3.4/commands/GetPaymentInstrumentCommand.d.ts +39 -0
  77. package/dist-types/ts3.4/commands/ListFinancialRecordsCommand.d.ts +39 -0
  78. package/dist-types/ts3.4/commands/ListPaymentInstrumentsCommand.d.ts +39 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  80. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  81. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  82. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  83. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  84. package/dist-types/ts3.4/index.d.ts +13 -0
  85. package/dist-types/ts3.4/models/PaymentsServiceException.d.ts +10 -0
  86. package/dist-types/ts3.4/models/enums.d.ts +111 -0
  87. package/dist-types/ts3.4/models/errors.d.ts +45 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +340 -0
  89. package/dist-types/ts3.4/pagination/GetAccountBalancePaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  91. package/dist-types/ts3.4/pagination/ListFinancialRecordsPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/ListPaymentInstrumentsPaginator.d.ts +11 -0
  93. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  98. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  99. package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
  100. package/package.json +67 -4
@@ -0,0 +1,126 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListPaymentInstrumentsRequest, ListPaymentInstrumentsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListPaymentInstrumentsCommand}.
11
+ */
12
+ export interface ListPaymentInstrumentsCommandInput extends ListPaymentInstrumentsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListPaymentInstrumentsCommand}.
18
+ */
19
+ export interface ListPaymentInstrumentsCommandOutput extends ListPaymentInstrumentsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListPaymentInstrumentsCommand_base: {
22
+ new (input: ListPaymentInstrumentsCommandInput): import("@smithy/core/client").CommandImpl<ListPaymentInstrumentsCommandInput, ListPaymentInstrumentsCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListPaymentInstrumentsCommandInput]): import("@smithy/core/client").CommandImpl<ListPaymentInstrumentsCommandInput, ListPaymentInstrumentsCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists the payment instruments on your account. This operation returns summaries. To get the details that are specific to an instrument's payment method, use <code>GetPaymentInstrument</code>. Results are paginated. Use <code>nextToken</code> to retrieve more results.</p> <p>To use this operation, you must have Amazon Web Services Identity and Access Management (IAM) permission for <code>payments:ListPaymentInstruments</code>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { PaymentsClient, ListPaymentInstrumentsCommand } from "@aws-sdk/client-payments"; // ES Modules import
32
+ * // const { PaymentsClient, ListPaymentInstrumentsCommand } = require("@aws-sdk/client-payments"); // CommonJS import
33
+ * // import type { PaymentsClientConfig } from "@aws-sdk/client-payments";
34
+ * const config = {}; // type is PaymentsClientConfig
35
+ * const client = new PaymentsClient(config);
36
+ * const input = { // ListPaymentInstrumentsRequest
37
+ * nextToken: "STRING_VALUE",
38
+ * maxResults: Number("int"),
39
+ * };
40
+ * const command = new ListPaymentInstrumentsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListPaymentInstrumentsResponse
43
+ * // paymentInstrumentSummaries: [ // PaymentInstrumentSummaryList // required
44
+ * // { // PaymentInstrumentSummary
45
+ * // id: "STRING_VALUE", // required
46
+ * // arn: "STRING_VALUE", // required
47
+ * // paymentMethod: "CARD" || "US_ACH_BANK_ACCOUNT" || "SEPA_BANK_ACCOUNT" || "UK_BACS_BANK_ACCOUNT" || "IN_NET_BANKING" || "CN_BANK_REDIRECT" || "UPI" || "PIX" || "PAY_BY_INVOICE", // required
48
+ * // status: "ACTIVE" || "PENDING_SETUP" || "SETUP_IN_PROGRESS" || "INVALID", // required
49
+ * // createdAt: new Date("TIMESTAMP"),
50
+ * // updatedAt: new Date("TIMESTAMP"),
51
+ * // },
52
+ * // ],
53
+ * // nextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListPaymentInstrumentsCommandInput - {@link ListPaymentInstrumentsCommandInput}
59
+ * @returns {@link ListPaymentInstrumentsCommandOutput}
60
+ * @see {@link ListPaymentInstrumentsCommandInput} for command's `input` shape.
61
+ * @see {@link ListPaymentInstrumentsCommandOutput} for command's `response` shape.
62
+ * @see {@link PaymentsClientResolvedConfig | config} for PaymentsClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>The request is denied because you don't have sufficient access to perform this operation. Verify that you have the required permissions and try again. This error is also returned, instead of <code>ResourceNotFoundException</code>, when you aren't authorized for the resource, so the response doesn't reveal whether the resource exists.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
75
+ *
76
+ * @throws {@link PaymentsServiceException}
77
+ * <p>Base exception class for all service exceptions from Payments service.</p>
78
+ *
79
+ *
80
+ * @example Invoke ListPaymentInstruments
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * maxResults: 5
85
+ * };
86
+ * const command = new ListPaymentInstrumentsCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * {
90
+ * paymentInstrumentSummaries: [
91
+ * {
92
+ * arn: "arn:aws:payments::123456789012:payment-instrument:1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
93
+ * createdAt: 1735689600,
94
+ * id: "1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
95
+ * paymentMethod: "CARD",
96
+ * status: "ACTIVE",
97
+ * updatedAt: 1738368000
98
+ * },
99
+ * {
100
+ * arn: "arn:aws:payments::123456789012:payment-instrument:2b3c4d5e-6f7a-8b9c-0d1e-444455556666",
101
+ * createdAt: 1727740800,
102
+ * id: "2b3c4d5e-6f7a-8b9c-0d1e-444455556666",
103
+ * paymentMethod: "US_ACH_BANK_ACCOUNT",
104
+ * status: "ACTIVE",
105
+ * updatedAt: 1727740800
106
+ * }
107
+ * ]
108
+ * }
109
+ * *\/
110
+ * ```
111
+ *
112
+ * @public
113
+ */
114
+ export declare class ListPaymentInstrumentsCommand extends ListPaymentInstrumentsCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: ListPaymentInstrumentsRequest;
119
+ output: ListPaymentInstrumentsResponse;
120
+ };
121
+ sdk: {
122
+ input: ListPaymentInstrumentsCommandInput;
123
+ output: ListPaymentInstrumentsCommandOutput;
124
+ };
125
+ };
126
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./BatchGetFinancialRecordCommand";
2
+ export * from "./GetAccountBalanceCommand";
3
+ export * from "./GetFinancialRecordCommand";
4
+ export * from "./GetPaymentInstrumentCommand";
5
+ export * from "./ListFinancialRecordsCommand";
6
+ export * from "./ListPaymentInstrumentsCommand";
@@ -0,0 +1,44 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
7
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
8
+ region?: string | undefined | Provider<string | undefined>;
9
+ }
10
+ /**
11
+ * @public
12
+ */
13
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
14
+ defaultSigningName: string;
15
+ };
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
20
+ /**
21
+ * @internal
22
+ */
23
+ export declare const commonParams: {
24
+ readonly UseFIPS: {
25
+ readonly type: "builtInParams";
26
+ readonly name: "useFipsEndpoint";
27
+ };
28
+ readonly Endpoint: {
29
+ readonly type: "builtInParams";
30
+ readonly name: "endpoint";
31
+ };
32
+ readonly Region: {
33
+ readonly type: "builtInParams";
34
+ readonly name: "region";
35
+ };
36
+ };
37
+ /**
38
+ * @internal
39
+ */
40
+ export interface EndpointParameters extends __EndpointParameters {
41
+ UseFIPS?: boolean | undefined;
42
+ Endpoint?: string | undefined;
43
+ Region?: string | undefined;
44
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface PaymentsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * <p>Amazon Web Services Payments manages how money moves between you and Amazon Web Services. It holds the payment instruments you use to pay Amazon Web Services and to receive money from Amazon Web Services, such as cards and bank accounts. It collects payment for your Amazon Web Services invoices, applies your payments and credit memos to them, and returns refunds.</p> <p>A payment instrument is a channel that moves money between you and Amazon Web Services, and its payment method is the kind of instrument, such as a card or a bank account. A financial record is an invoice or credit memo. It shows how much of its amount is outstanding, processing, settled, and canceled as Amazon Web Services applies payments and credits.</p> <p>With the Amazon Web Services Payments API, you can read your financial records and account balances, and read your payment instruments and their status.</p> <p>The Amazon Web Services Payments API provides the following endpoint:</p> <p> <code>https://payments.us-east-1.api.aws</code> </p>
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export * from "./PaymentsClient";
7
+ export * from "./Payments";
8
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { PaymentsExtensionConfiguration } from "./extensionConfiguration";
11
+ export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./schemas/schemas_0";
15
+ export * from "./models/enums";
16
+ export * from "./models/errors";
17
+ export * from "./models/models_0";
18
+ export { PaymentsServiceException } from "./models/PaymentsServiceException";
@@ -0,0 +1,15 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from Payments service.
8
+ */
9
+ export declare class PaymentsServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(options: __ServiceExceptionOptions);
15
+ }
@@ -0,0 +1,225 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccessDeniedExceptionReason: {
6
+ readonly INVALID_ACCOUNT_STATE: "INVALID_ACCOUNT_STATE";
7
+ readonly NOT_AUTHORIZED: "NOT_AUTHORIZED";
8
+ readonly OTHER: "OTHER";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const BatchErrorCode: {
19
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
20
+ readonly NOT_FOUND: "NOT_FOUND";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type BatchErrorCode = (typeof BatchErrorCode)[keyof typeof BatchErrorCode];
26
+ /**
27
+ * @public
28
+ * @enum
29
+ */
30
+ export declare const LineOfBusiness: {
31
+ readonly AWS_CLOUD_SERVICES: "AWS_CLOUD_SERVICES";
32
+ readonly AWS_MARKETPLACE: "AWS_MARKETPLACE";
33
+ readonly PROSERVE_MARKETING_AND_TRAINING: "PROSERVE_MARKETING_AND_TRAINING";
34
+ };
35
+ /**
36
+ * @public
37
+ */
38
+ export type LineOfBusiness = (typeof LineOfBusiness)[keyof typeof LineOfBusiness];
39
+ /**
40
+ * @public
41
+ * @enum
42
+ */
43
+ export declare const DueStatus: {
44
+ readonly DUE: "DUE";
45
+ readonly PAST_DUE: "PAST_DUE";
46
+ };
47
+ /**
48
+ * @public
49
+ */
50
+ export type DueStatus = (typeof DueStatus)[keyof typeof DueStatus];
51
+ /**
52
+ * @public
53
+ * @enum
54
+ */
55
+ export declare const InvoiceFrequency: {
56
+ readonly ONE_TIME: "ONE_TIME";
57
+ readonly RECURRING: "RECURRING";
58
+ };
59
+ /**
60
+ * @public
61
+ */
62
+ export type InvoiceFrequency = (typeof InvoiceFrequency)[keyof typeof InvoiceFrequency];
63
+ /**
64
+ * @public
65
+ * @enum
66
+ */
67
+ export declare const SettlementStatus: {
68
+ readonly CLOSED: "CLOSED";
69
+ readonly OPEN: "OPEN";
70
+ };
71
+ /**
72
+ * @public
73
+ */
74
+ export type SettlementStatus = (typeof SettlementStatus)[keyof typeof SettlementStatus];
75
+ /**
76
+ * @public
77
+ * @enum
78
+ */
79
+ export declare const FinancialRecordStatus: {
80
+ readonly CANCELED: "CANCELED";
81
+ readonly OUTSTANDING: "OUTSTANDING";
82
+ readonly PROCESSING: "PROCESSING";
83
+ readonly SETTLED: "SETTLED";
84
+ };
85
+ /**
86
+ * @public
87
+ */
88
+ export type FinancialRecordStatus = (typeof FinancialRecordStatus)[keyof typeof FinancialRecordStatus];
89
+ /**
90
+ * @public
91
+ * @enum
92
+ */
93
+ export declare const FinancialRecordType: {
94
+ readonly CREDIT_MEMO: "CREDIT_MEMO";
95
+ readonly INVOICE: "INVOICE";
96
+ };
97
+ /**
98
+ * @public
99
+ */
100
+ export type FinancialRecordType = (typeof FinancialRecordType)[keyof typeof FinancialRecordType];
101
+ /**
102
+ * @public
103
+ * @enum
104
+ */
105
+ export declare const ValidationExceptionReason: {
106
+ readonly CANNOT_PARSE: "CANNOT_PARSE";
107
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
108
+ readonly INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN";
109
+ readonly OTHER: "OTHER";
110
+ readonly UNSUPPORTED_ACTION: "UNSUPPORTED_ACTION";
111
+ };
112
+ /**
113
+ * @public
114
+ */
115
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
116
+ /**
117
+ * @public
118
+ * @enum
119
+ */
120
+ export declare const BalanceType: {
121
+ readonly INVOICES_DUE: "INVOICES_DUE";
122
+ readonly INVOICES_PAST_DUE: "INVOICES_PAST_DUE";
123
+ readonly OUTSTANDING_CREDIT_MEMOS: "OUTSTANDING_CREDIT_MEMOS";
124
+ };
125
+ /**
126
+ * @public
127
+ */
128
+ export type BalanceType = (typeof BalanceType)[keyof typeof BalanceType];
129
+ /**
130
+ * @public
131
+ * @enum
132
+ */
133
+ export declare const CardBrand: {
134
+ readonly AMEX: "AMEX";
135
+ readonly CHINA_UNIONPAY: "CHINA_UNIONPAY";
136
+ readonly DISCOVER: "DISCOVER";
137
+ readonly JCB: "JCB";
138
+ readonly MASTERCARD: "MASTERCARD";
139
+ readonly RUPAY: "RUPAY";
140
+ readonly VISA: "VISA";
141
+ };
142
+ /**
143
+ * @public
144
+ */
145
+ export type CardBrand = (typeof CardBrand)[keyof typeof CardBrand];
146
+ /**
147
+ * @public
148
+ * @enum
149
+ */
150
+ export declare const CardType: {
151
+ readonly CREDIT: "CREDIT";
152
+ readonly DEBIT: "DEBIT";
153
+ };
154
+ /**
155
+ * @public
156
+ */
157
+ export type CardType = (typeof CardType)[keyof typeof CardType];
158
+ /**
159
+ * @public
160
+ * @enum
161
+ */
162
+ export declare const BankAccountType: {
163
+ readonly CHECKING: "CHECKING";
164
+ readonly SAVINGS: "SAVINGS";
165
+ };
166
+ /**
167
+ * @public
168
+ */
169
+ export type BankAccountType = (typeof BankAccountType)[keyof typeof BankAccountType];
170
+ /**
171
+ * @public
172
+ * @enum
173
+ */
174
+ export declare const PaymentMethod: {
175
+ readonly CARD: "CARD";
176
+ readonly CN_BANK_REDIRECT: "CN_BANK_REDIRECT";
177
+ readonly IN_NET_BANKING: "IN_NET_BANKING";
178
+ readonly PAY_BY_INVOICE: "PAY_BY_INVOICE";
179
+ readonly PIX: "PIX";
180
+ readonly SEPA_BANK_ACCOUNT: "SEPA_BANK_ACCOUNT";
181
+ readonly UK_BACS_BANK_ACCOUNT: "UK_BACS_BANK_ACCOUNT";
182
+ readonly UPI: "UPI";
183
+ readonly US_ACH_BANK_ACCOUNT: "US_ACH_BANK_ACCOUNT";
184
+ };
185
+ /**
186
+ * @public
187
+ */
188
+ export type PaymentMethod = (typeof PaymentMethod)[keyof typeof PaymentMethod];
189
+ /**
190
+ * @public
191
+ * @enum
192
+ */
193
+ export declare const PaymentInstrumentStatus: {
194
+ readonly ACTIVE: "ACTIVE";
195
+ readonly INVALID: "INVALID";
196
+ readonly PENDING_SETUP: "PENDING_SETUP";
197
+ readonly SETUP_IN_PROGRESS: "SETUP_IN_PROGRESS";
198
+ };
199
+ /**
200
+ * @public
201
+ */
202
+ export type PaymentInstrumentStatus = (typeof PaymentInstrumentStatus)[keyof typeof PaymentInstrumentStatus];
203
+ /**
204
+ * @public
205
+ * @enum
206
+ */
207
+ export declare const FinancialRecordSortField: {
208
+ readonly ISSUED_AT: "ISSUED_AT";
209
+ };
210
+ /**
211
+ * @public
212
+ */
213
+ export type FinancialRecordSortField = (typeof FinancialRecordSortField)[keyof typeof FinancialRecordSortField];
214
+ /**
215
+ * @public
216
+ * @enum
217
+ */
218
+ export declare const SortOrder: {
219
+ readonly ASCENDING: "ASCENDING";
220
+ readonly DESCENDING: "DESCENDING";
221
+ };
222
+ /**
223
+ * @public
224
+ */
225
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
@@ -0,0 +1,108 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import type { AccessDeniedExceptionReason, ValidationExceptionReason } from "./enums";
3
+ import type { ValidationExceptionField } from "./models_0";
4
+ import { PaymentsServiceException as __BaseException } from "./PaymentsServiceException";
5
+ /**
6
+ * <p>The request is denied because you don't have sufficient access to perform this operation. Verify that you have the required permissions and try again. This error is also returned, instead of <code>ResourceNotFoundException</code>, when you aren't authorized for the resource, so the response doesn't reveal whether the resource exists.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ static readonly shapeId: string;
11
+ readonly name: "AccessDeniedException";
12
+ readonly $fault: "client";
13
+ /**
14
+ * <p>The reason that access was denied. The following values are valid:</p> <ul> <li> <p> <code>NOT_AUTHORIZED</code> – Your IAM policies don't allow this action.</p> </li> <li> <p> <code>INVALID_ACCOUNT_STATE</code> – Your Amazon Web Services account isn't in a state that allows this action, for example because registration isn't complete or the account is suspended.</p> </li> <li> <p> <code>OTHER</code> – Access was denied for another reason.</p> </li> </ul>
15
+ * @public
16
+ */
17
+ reason?: AccessDeniedExceptionReason | undefined;
18
+ /**
19
+ * @internal
20
+ */
21
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
22
+ }
23
+ /**
24
+ * <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
25
+ * @public
26
+ */
27
+ export declare class InternalServerException extends __BaseException {
28
+ static readonly shapeId: string;
29
+ readonly name: "InternalServerException";
30
+ readonly $fault: "server";
31
+ $retryable: {};
32
+ /**
33
+ * <p>The suggested number of seconds to wait before retrying the request.</p>
34
+ * @public
35
+ */
36
+ retryAfterSeconds?: number | undefined;
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
44
+ * @public
45
+ */
46
+ export declare class ThrottlingException extends __BaseException {
47
+ static readonly shapeId: string;
48
+ readonly name: "ThrottlingException";
49
+ readonly $fault: "client";
50
+ $retryable: {
51
+ throttling: boolean;
52
+ };
53
+ /**
54
+ * <p>The suggested number of seconds to wait before retrying the request.</p>
55
+ * @public
56
+ */
57
+ retryAfterSeconds?: number | undefined;
58
+ /**
59
+ * @internal
60
+ */
61
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
62
+ }
63
+ /**
64
+ * <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
65
+ * @public
66
+ */
67
+ export declare class ValidationException extends __BaseException {
68
+ static readonly shapeId: string;
69
+ readonly name: "ValidationException";
70
+ readonly $fault: "client";
71
+ /**
72
+ * <p>The reason that validation failed. The following values are valid:</p> <ul> <li> <p> <code>CANNOT_PARSE</code> – The request body couldn't be parsed, or a value isn't of the expected type.</p> </li> <li> <p> <code>FIELD_VALIDATION_FAILED</code> – One or more members failed validation. <code>fieldList</code> names them.</p> </li> <li> <p> <code>INVALID_PAGINATION_TOKEN</code> – The <code>nextToken</code> is malformed or expired, or doesn't match the original request. Start again from the first page.</p> </li> <li> <p> <code>UNSUPPORTED_ACTION</code> – The request is well formed, but the action isn't supported for your account, Region, or resource.</p> </li> <li> <p> <code>OTHER</code> – The request isn't valid for another reason.</p> </li> </ul>
73
+ * @public
74
+ */
75
+ reason: ValidationExceptionReason | undefined;
76
+ /**
77
+ * <p>The request members that failed validation. This member is populated when <code>reason</code> is <code>FIELD_VALIDATION_FAILED</code>.</p>
78
+ * @public
79
+ */
80
+ fieldList?: ValidationExceptionField[] | undefined;
81
+ /**
82
+ * @internal
83
+ */
84
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
85
+ }
86
+ /**
87
+ * <p>The requested resource couldn't be found. Verify that the resource ID is correct. This error is returned only when you're authorized for the resource.</p>
88
+ * @public
89
+ */
90
+ export declare class ResourceNotFoundException extends __BaseException {
91
+ static readonly shapeId: string;
92
+ readonly name: "ResourceNotFoundException";
93
+ readonly $fault: "client";
94
+ /**
95
+ * <p>The ID of the resource that wasn't found.</p>
96
+ * @public
97
+ */
98
+ resourceId?: string | undefined;
99
+ /**
100
+ * <p>The type of the resource that wasn't found.</p>
101
+ * @public
102
+ */
103
+ resourceType?: string | undefined;
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
108
+ }