@aws-sdk/client-payments 0.0.0-stage → 3.1174.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.
- package/LICENSE +201 -0
- package/README.md +222 -2
- package/dist-cjs/index.js +972 -0
- package/dist-es/Payments.js +27 -0
- package/dist-es/PaymentsClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/BatchGetFinancialRecordCommand.js +4 -0
- package/dist-es/commands/GetAccountBalanceCommand.js +4 -0
- package/dist-es/commands/GetFinancialRecordCommand.js +4 -0
- package/dist-es/commands/GetPaymentInstrumentCommand.js +4 -0
- package/dist-es/commands/ListFinancialRecordsCommand.js +4 -0
- package/dist-es/commands/ListPaymentInstrumentsCommand.js +4 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/PaymentsServiceException.js +9 -0
- package/dist-es/models/enums.js +89 -0
- package/dist-es/models/errors.js +84 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetAccountBalancePaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListFinancialRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListPaymentInstrumentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +406 -0
- package/dist-types/Payments.d.ts +81 -0
- package/dist-types/PaymentsClient.d.ts +193 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/BatchGetFinancialRecordCommand.d.ts +231 -0
- package/dist-types/commands/GetAccountBalanceCommand.d.ts +124 -0
- package/dist-types/commands/GetFinancialRecordCommand.d.ts +200 -0
- package/dist-types/commands/GetPaymentInstrumentCommand.d.ts +163 -0
- package/dist-types/commands/ListFinancialRecordsCommand.d.ts +188 -0
- package/dist-types/commands/ListPaymentInstrumentsCommand.d.ts +126 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/PaymentsServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +225 -0
- package/dist-types/models/errors.d.ts +108 -0
- package/dist-types/models/models_0.d.ts +936 -0
- package/dist-types/pagination/GetAccountBalancePaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListFinancialRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPaymentInstrumentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/Payments.d.ts +138 -0
- package/dist-types/ts3.4/PaymentsClient.d.ts +136 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/BatchGetFinancialRecordCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetFinancialRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetPaymentInstrumentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFinancialRecordsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPaymentInstrumentsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/PaymentsServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +111 -0
- package/dist-types/ts3.4/models/errors.d.ts +45 -0
- package/dist-types/ts3.4/models/models_0.d.ts +340 -0
- package/dist-types/ts3.4/pagination/GetAccountBalancePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListFinancialRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPaymentInstrumentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
- package/package.json +67 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { PaymentsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: PaymentsHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): PaymentsHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: PaymentsHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type PaymentsClientResolvedConfig } from "../PaymentsClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface PaymentsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface PaymentsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<PaymentsClientResolvedConfig, HandlerExecutionContext, PaymentsHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultPaymentsHttpAuthSchemeParametersProvider: (config: PaymentsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<PaymentsHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface PaymentsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<PaymentsHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultPaymentsHttpAuthSchemeProvider: PaymentsHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: PaymentsHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: PaymentsHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { PaymentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PaymentsClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, PaymentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PaymentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { BatchGetFinancialRecordRequest, BatchGetFinancialRecordResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link BatchGetFinancialRecordCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface BatchGetFinancialRecordCommandInput extends BatchGetFinancialRecordRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link BatchGetFinancialRecordCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface BatchGetFinancialRecordCommandOutput extends BatchGetFinancialRecordResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const BatchGetFinancialRecordCommand_base: {
|
|
22
|
+
new (input: BatchGetFinancialRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFinancialRecordCommandInput, BatchGetFinancialRecordCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: BatchGetFinancialRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchGetFinancialRecordCommandInput, BatchGetFinancialRecordCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves up to 100 financial records in one request, including the details that are specific to each record's type. Identify each record by its ID or by its invoice ID. Results can be partial: each key that you request appears once in the response, either as a record in <code>financialRecords</code> or as an error in <code>errors</code>. A key that matches no record on your account is returned in <code>errors</code> and doesn't fail the request. This operation provides strongly consistent reads.</p> <p>To use this operation, you must have Amazon Web Services Identity and Access Management (IAM) permission for both <code>payments:BatchGetFinancialRecord</code> and <code>payments:GetPaymentStatus</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, BatchGetFinancialRecordCommand } from "@aws-sdk/client-payments"; // ES Modules import
|
|
32
|
+
* // const { PaymentsClient, BatchGetFinancialRecordCommand } = 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 = { // BatchGetFinancialRecordRequest
|
|
37
|
+
* keys: [ // FinancialRecordKeyList // required
|
|
38
|
+
* { // FinancialRecordKey Union: only one key present
|
|
39
|
+
* identifier: "STRING_VALUE",
|
|
40
|
+
* invoiceIdentifier: "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* };
|
|
44
|
+
* const command = new BatchGetFinancialRecordCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // BatchGetFinancialRecordResponse
|
|
47
|
+
* // financialRecords: [ // FinancialRecordList // required
|
|
48
|
+
* // { // FinancialRecord
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // type: "INVOICE" || "CREDIT_MEMO", // required
|
|
51
|
+
* // businessUnit: { // BusinessUnit
|
|
52
|
+
* // merchantOfRecord: "STRING_VALUE", // required
|
|
53
|
+
* // lineOfBusiness: "AWS_CLOUD_SERVICES" || "PROSERVE_MARKETING_AND_TRAINING" || "AWS_MARKETPLACE",
|
|
54
|
+
* // },
|
|
55
|
+
* // amount: { // CurrencyAmount
|
|
56
|
+
* // value: "STRING_VALUE", // required
|
|
57
|
+
* // currency: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // balances: { // Balances
|
|
60
|
+
* // outstanding: {
|
|
61
|
+
* // value: "STRING_VALUE", // required
|
|
62
|
+
* // currency: "STRING_VALUE", // required
|
|
63
|
+
* // },
|
|
64
|
+
* // processing: {
|
|
65
|
+
* // value: "STRING_VALUE", // required
|
|
66
|
+
* // currency: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // settled: {
|
|
69
|
+
* // value: "STRING_VALUE", // required
|
|
70
|
+
* // currency: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // canceled: {
|
|
73
|
+
* // value: "STRING_VALUE", // required
|
|
74
|
+
* // currency: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
77
|
+
* // settlementStatus: "OPEN" || "CLOSED", // required
|
|
78
|
+
* // status: "OUTSTANDING" || "PROCESSING" || "SETTLED" || "CANCELED", // required
|
|
79
|
+
* // issuedAt: new Date("TIMESTAMP"), // required
|
|
80
|
+
* // closedAt: new Date("TIMESTAMP"),
|
|
81
|
+
* // details: { // FinancialRecordDetails Union: only one key present
|
|
82
|
+
* // invoiceDetails: { // InvoiceDetails
|
|
83
|
+
* // invoiceId: "STRING_VALUE", // required
|
|
84
|
+
* // dueStatus: "DUE" || "PAST_DUE",
|
|
85
|
+
* // billingPeriod: { // BillingPeriod
|
|
86
|
+
* // startDate: new Date("TIMESTAMP"), // required
|
|
87
|
+
* // endDate: new Date("TIMESTAMP"), // required
|
|
88
|
+
* // },
|
|
89
|
+
* // dueDate: new Date("TIMESTAMP"), // required
|
|
90
|
+
* // paymentTerms: "STRING_VALUE",
|
|
91
|
+
* // invoiceFrequency: "ONE_TIME" || "RECURRING", // required
|
|
92
|
+
* // },
|
|
93
|
+
* // creditMemoDetails: { // CreditMemoDetails
|
|
94
|
+
* // invoiceId: "STRING_VALUE", // required
|
|
95
|
+
* // billingPeriod: {
|
|
96
|
+
* // startDate: new Date("TIMESTAMP"), // required
|
|
97
|
+
* // endDate: new Date("TIMESTAMP"), // required
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // },
|
|
101
|
+
* // },
|
|
102
|
+
* // ],
|
|
103
|
+
* // errors: [ // FinancialRecordErrorList // required
|
|
104
|
+
* // { // FinancialRecordError
|
|
105
|
+
* // key: { // FinancialRecordKey Union: only one key present
|
|
106
|
+
* // identifier: "STRING_VALUE",
|
|
107
|
+
* // invoiceIdentifier: "STRING_VALUE",
|
|
108
|
+
* // },
|
|
109
|
+
* // code: "NOT_FOUND" || "INTERNAL_ERROR", // required
|
|
110
|
+
* // message: "STRING_VALUE", // required
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param BatchGetFinancialRecordCommandInput - {@link BatchGetFinancialRecordCommandInput}
|
|
118
|
+
* @returns {@link BatchGetFinancialRecordCommandOutput}
|
|
119
|
+
* @see {@link BatchGetFinancialRecordCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link BatchGetFinancialRecordCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link PaymentsClientResolvedConfig | config} for PaymentsClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
124
|
+
* <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>
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link InternalServerException} (server fault)
|
|
127
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
130
|
+
* <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ValidationException} (client fault)
|
|
133
|
+
* <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link PaymentsServiceException}
|
|
136
|
+
* <p>Base exception class for all service exceptions from Payments service.</p>
|
|
137
|
+
*
|
|
138
|
+
*
|
|
139
|
+
* @example Invoke BatchGetFinancialRecord
|
|
140
|
+
* ```javascript
|
|
141
|
+
* //
|
|
142
|
+
* const input = {
|
|
143
|
+
* keys: [
|
|
144
|
+
* {
|
|
145
|
+
* identifier: "INV-1234-5678-9012-3456"
|
|
146
|
+
* },
|
|
147
|
+
* {
|
|
148
|
+
* invoiceIdentifier: "999999999999"
|
|
149
|
+
* }
|
|
150
|
+
* ]
|
|
151
|
+
* };
|
|
152
|
+
* const command = new BatchGetFinancialRecordCommand(input);
|
|
153
|
+
* const response = await client.send(command);
|
|
154
|
+
* /* response is
|
|
155
|
+
* {
|
|
156
|
+
* errors: [
|
|
157
|
+
* {
|
|
158
|
+
* code: "NOT_FOUND",
|
|
159
|
+
* key: {
|
|
160
|
+
* invoiceIdentifier: "999999999999"
|
|
161
|
+
* },
|
|
162
|
+
* message: "The requested resource was not found"
|
|
163
|
+
* }
|
|
164
|
+
* ],
|
|
165
|
+
* financialRecords: [
|
|
166
|
+
* {
|
|
167
|
+
* amount: {
|
|
168
|
+
* currency: "USD",
|
|
169
|
+
* value: "1000.24"
|
|
170
|
+
* },
|
|
171
|
+
* balances: {
|
|
172
|
+
* canceled: {
|
|
173
|
+
* currency: "USD",
|
|
174
|
+
* value: "0.0"
|
|
175
|
+
* },
|
|
176
|
+
* outstanding: {
|
|
177
|
+
* currency: "USD",
|
|
178
|
+
* value: "0.0"
|
|
179
|
+
* },
|
|
180
|
+
* processing: {
|
|
181
|
+
* currency: "USD",
|
|
182
|
+
* value: "0.0"
|
|
183
|
+
* },
|
|
184
|
+
* settled: {
|
|
185
|
+
* currency: "USD",
|
|
186
|
+
* value: "1000.24"
|
|
187
|
+
* }
|
|
188
|
+
* },
|
|
189
|
+
* businessUnit: {
|
|
190
|
+
* lineOfBusiness: "AWS_CLOUD_SERVICES",
|
|
191
|
+
* merchantOfRecord: "Amazon Web Services, Inc."
|
|
192
|
+
* },
|
|
193
|
+
* closedAt: 1736208000,
|
|
194
|
+
* details: {
|
|
195
|
+
* invoiceDetails: {
|
|
196
|
+
* billingPeriod: {
|
|
197
|
+
* endDate: 1735689600,
|
|
198
|
+
* startDate: 1733011200
|
|
199
|
+
* },
|
|
200
|
+
* dueDate: 1738281600,
|
|
201
|
+
* invoiceFrequency: "RECURRING",
|
|
202
|
+
* invoiceId: "536462537364",
|
|
203
|
+
* paymentTerms: "Net30"
|
|
204
|
+
* }
|
|
205
|
+
* },
|
|
206
|
+
* id: "INV-1234-5678-9012-3456",
|
|
207
|
+
* issuedAt: 1735689600,
|
|
208
|
+
* settlementStatus: "CLOSED",
|
|
209
|
+
* status: "SETTLED",
|
|
210
|
+
* type: "INVOICE"
|
|
211
|
+
* }
|
|
212
|
+
* ]
|
|
213
|
+
* }
|
|
214
|
+
* *\/
|
|
215
|
+
* ```
|
|
216
|
+
*
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export declare class BatchGetFinancialRecordCommand extends BatchGetFinancialRecordCommand_base {
|
|
220
|
+
/** @internal type navigation helper, not in runtime. */
|
|
221
|
+
protected static __types: {
|
|
222
|
+
api: {
|
|
223
|
+
input: BatchGetFinancialRecordRequest;
|
|
224
|
+
output: BatchGetFinancialRecordResponse;
|
|
225
|
+
};
|
|
226
|
+
sdk: {
|
|
227
|
+
input: BatchGetFinancialRecordCommandInput;
|
|
228
|
+
output: BatchGetFinancialRecordCommandOutput;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetAccountBalanceRequest, GetAccountBalanceResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetAccountBalanceCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetAccountBalanceCommandInput extends GetAccountBalanceRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetAccountBalanceCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetAccountBalanceCommandOutput extends GetAccountBalanceResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetAccountBalanceCommand_base: {
|
|
22
|
+
new (input: GetAccountBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetAccountBalanceCommandInput, GetAccountBalanceCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetAccountBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetAccountBalanceCommandInput, GetAccountBalanceCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves one balance of your account, selected by balance type, as one amount for each merchant of record and currency. Each amount is the sum of the outstanding balances of your invoices or credit memos that have the status <code>OUTSTANDING</code>. Amounts are never added together across merchants of record or currencies. This operation is eventually consistent. 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 both <code>payments:GetAccountBalance</code> and <code>payments:GetPaymentStatus</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, GetAccountBalanceCommand } from "@aws-sdk/client-payments"; // ES Modules import
|
|
32
|
+
* // const { PaymentsClient, GetAccountBalanceCommand } = 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 = { // GetAccountBalanceRequest
|
|
37
|
+
* balanceType: "INVOICES_DUE" || "INVOICES_PAST_DUE" || "OUTSTANDING_CREDIT_MEMOS", // required
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetAccountBalanceCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetAccountBalanceResponse
|
|
44
|
+
* // accountBalances: [ // AccountBalanceList // required
|
|
45
|
+
* // { // AccountBalance
|
|
46
|
+
* // amount: { // CurrencyAmount
|
|
47
|
+
* // value: "STRING_VALUE", // required
|
|
48
|
+
* // currency: "STRING_VALUE", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // merchantOfRecord: "STRING_VALUE", // required
|
|
51
|
+
* // },
|
|
52
|
+
* // ],
|
|
53
|
+
* // nextToken: "STRING_VALUE",
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetAccountBalanceCommandInput - {@link GetAccountBalanceCommandInput}
|
|
59
|
+
* @returns {@link GetAccountBalanceCommandOutput}
|
|
60
|
+
* @see {@link GetAccountBalanceCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetAccountBalanceCommandOutput} 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 GetAccountBalance
|
|
81
|
+
* ```javascript
|
|
82
|
+
* //
|
|
83
|
+
* const input = {
|
|
84
|
+
* balanceType: "INVOICES_PAST_DUE"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new GetAccountBalanceCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response is
|
|
89
|
+
* {
|
|
90
|
+
* accountBalances: [
|
|
91
|
+
* {
|
|
92
|
+
* amount: {
|
|
93
|
+
* currency: "USD",
|
|
94
|
+
* value: "1250.00"
|
|
95
|
+
* },
|
|
96
|
+
* merchantOfRecord: "Amazon Web Services, Inc."
|
|
97
|
+
* },
|
|
98
|
+
* {
|
|
99
|
+
* amount: {
|
|
100
|
+
* currency: "INR",
|
|
101
|
+
* value: "430.75"
|
|
102
|
+
* },
|
|
103
|
+
* merchantOfRecord: "Amazon Web Services India Private Limited"
|
|
104
|
+
* }
|
|
105
|
+
* ]
|
|
106
|
+
* }
|
|
107
|
+
* *\/
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class GetAccountBalanceCommand extends GetAccountBalanceCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: GetAccountBalanceRequest;
|
|
117
|
+
output: GetAccountBalanceResponse;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: GetAccountBalanceCommandInput;
|
|
121
|
+
output: GetAccountBalanceCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|