@connectedxm/admin-sdk 10.5.0 → 10.7.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/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api.ts +585 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +362 -1
- package/dist/api.js +360 -26
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +362 -1
- package/dist/esm/api.js +335 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/docs/AccountsApi.md +64 -0
- package/docs/BasePaymentIntent.md +96 -0
- package/docs/BasePaymentIntentIntegration.md +22 -0
- package/docs/BasePaymentIntentLineItem.md +62 -0
- package/docs/BasePaymentIntentTaxIntegration.md +22 -0
- package/docs/GetAccountPaymentIntents200Response.md +26 -0
- package/docs/GetPaymentIntent200Response.md +24 -0
- package/docs/Organization.md +4 -0
- package/docs/OrganizationPaymentsApi.md +165 -0
- package/docs/OrganizationUpdateInputs.md +4 -0
- package/docs/PaymentIntent.md +116 -0
- package/docs/PaymentIntentSource.md +22 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 10.
|
|
7
|
+
* The version of the OpenAPI document: 10.7.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2086,6 +2086,85 @@ export interface BasePaymentIntegration {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
|
|
2088
2088
|
|
|
2089
|
+
export interface BasePaymentIntent {
|
|
2090
|
+
'id': string;
|
|
2091
|
+
'source': PaymentIntentSource;
|
|
2092
|
+
'integrationId': number;
|
|
2093
|
+
'accountId': string;
|
|
2094
|
+
'description': string;
|
|
2095
|
+
'referenceId': string;
|
|
2096
|
+
'currency': string;
|
|
2097
|
+
'metadata': object;
|
|
2098
|
+
'eventId': string | null;
|
|
2099
|
+
'registrationId': string | null;
|
|
2100
|
+
'sessionId': string | null;
|
|
2101
|
+
'passId': string | null;
|
|
2102
|
+
'passTypeId': string | null;
|
|
2103
|
+
'placeId': string | null;
|
|
2104
|
+
'spaceId': string | null;
|
|
2105
|
+
'couponId': string | null;
|
|
2106
|
+
'invoiceId': string | null;
|
|
2107
|
+
'seriesId': string | null;
|
|
2108
|
+
'address1': string | null;
|
|
2109
|
+
'address2': string | null;
|
|
2110
|
+
'city': string | null;
|
|
2111
|
+
'state': string | null;
|
|
2112
|
+
'country': string | null;
|
|
2113
|
+
'zip': string | null;
|
|
2114
|
+
'locationAddress1': string | null;
|
|
2115
|
+
'locationAddress2': string | null;
|
|
2116
|
+
'locationCity': string | null;
|
|
2117
|
+
'locationState': string | null;
|
|
2118
|
+
'locationCountry': string | null;
|
|
2119
|
+
'locationZip': string | null;
|
|
2120
|
+
'salesTax': number;
|
|
2121
|
+
'salesTaxRate': string | null;
|
|
2122
|
+
'deferredAmount': number | null;
|
|
2123
|
+
'deferredDueDate': string | null;
|
|
2124
|
+
'createdAt': string;
|
|
2125
|
+
'lineItems': Array<BasePaymentIntentLineItem>;
|
|
2126
|
+
'coupon': BaseCoupon | null;
|
|
2127
|
+
'integration': BasePaymentIntentIntegration | null;
|
|
2128
|
+
'taxIntegration': BasePaymentIntentTaxIntegration | null;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
export interface BasePaymentIntentIntegration {
|
|
2133
|
+
'type': PaymentIntegrationType;
|
|
2134
|
+
'connectionId': string | null;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
export interface BasePaymentIntentLineItem {
|
|
2139
|
+
'id': string;
|
|
2140
|
+
'type': PaymentLineItemType;
|
|
2141
|
+
'parent': string | null;
|
|
2142
|
+
'name': string;
|
|
2143
|
+
'quantity': number;
|
|
2144
|
+
'amount': number;
|
|
2145
|
+
'discount': number;
|
|
2146
|
+
'deferred': number;
|
|
2147
|
+
'salesTax': number;
|
|
2148
|
+
'taxCode': string | null;
|
|
2149
|
+
'taxIncluded': boolean;
|
|
2150
|
+
'taxLocation': TaxLocationType;
|
|
2151
|
+
'passId': string | null;
|
|
2152
|
+
'packageId': string | null;
|
|
2153
|
+
'passAddOnId': string | null;
|
|
2154
|
+
'reservationId': string | null;
|
|
2155
|
+
'accessId': string | null;
|
|
2156
|
+
'invoiceId': string | null;
|
|
2157
|
+
'bookingId': string | null;
|
|
2158
|
+
'couponId': string | null;
|
|
2159
|
+
'seriesRegistrationId': string | null;
|
|
2160
|
+
'createdAt': string;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
export interface BasePaymentIntentTaxIntegration {
|
|
2165
|
+
'type': string;
|
|
2166
|
+
'connectionId': string | null;
|
|
2167
|
+
}
|
|
2089
2168
|
export interface BasePaymentLineItem {
|
|
2090
2169
|
'id': string;
|
|
2091
2170
|
'type': PaymentLineItemType;
|
|
@@ -6969,6 +7048,17 @@ export enum GetAccountNotificationPreferences200ResponseStatusEnum {
|
|
|
6969
7048
|
Ok = 'ok'
|
|
6970
7049
|
}
|
|
6971
7050
|
|
|
7051
|
+
export interface GetAccountPaymentIntents200Response {
|
|
7052
|
+
'status': GetAccountPaymentIntents200ResponseStatusEnum;
|
|
7053
|
+
'message': string;
|
|
7054
|
+
'data': Array<PaymentIntent>;
|
|
7055
|
+
'count'?: number;
|
|
7056
|
+
}
|
|
7057
|
+
|
|
7058
|
+
export enum GetAccountPaymentIntents200ResponseStatusEnum {
|
|
7059
|
+
Ok = 'ok'
|
|
7060
|
+
}
|
|
7061
|
+
|
|
6972
7062
|
export interface GetAccountPayments200Response {
|
|
6973
7063
|
'status': GetAccountPayments200ResponseStatusEnum;
|
|
6974
7064
|
'message': string;
|
|
@@ -9490,6 +9580,16 @@ export enum GetPayment200ResponseStatusEnum {
|
|
|
9490
9580
|
Ok = 'ok'
|
|
9491
9581
|
}
|
|
9492
9582
|
|
|
9583
|
+
export interface GetPaymentIntent200Response {
|
|
9584
|
+
'status': GetPaymentIntent200ResponseStatusEnum;
|
|
9585
|
+
'message': string;
|
|
9586
|
+
'data': PaymentIntent;
|
|
9587
|
+
}
|
|
9588
|
+
|
|
9589
|
+
export enum GetPaymentIntent200ResponseStatusEnum {
|
|
9590
|
+
Ok = 'ok'
|
|
9591
|
+
}
|
|
9592
|
+
|
|
9493
9593
|
export interface GetPaymentTaxMetadata200Response {
|
|
9494
9594
|
'status': GetPaymentTaxMetadata200ResponseStatusEnum;
|
|
9495
9595
|
'message': string;
|
|
@@ -11343,6 +11443,8 @@ export interface Organization {
|
|
|
11343
11443
|
'zip': string | null;
|
|
11344
11444
|
'primaryColor': string | null;
|
|
11345
11445
|
'secondaryColor': string | null;
|
|
11446
|
+
'darkPrimaryColor': string | null;
|
|
11447
|
+
'darkSecondaryColor': string | null;
|
|
11346
11448
|
'clientTheme': string | null;
|
|
11347
11449
|
'facebook': string | null;
|
|
11348
11450
|
'twitter': string | null;
|
|
@@ -11696,6 +11798,8 @@ export interface OrganizationUpdateInputs {
|
|
|
11696
11798
|
'zip'?: string | null;
|
|
11697
11799
|
'primaryColor'?: string | null;
|
|
11698
11800
|
'secondaryColor'?: string | null;
|
|
11801
|
+
'darkPrimaryColor'?: string | null;
|
|
11802
|
+
'darkSecondaryColor'?: string | null;
|
|
11699
11803
|
'clientTheme'?: string | null;
|
|
11700
11804
|
'appName'?: string | null;
|
|
11701
11805
|
'logoId'?: string | null;
|
|
@@ -11994,6 +12098,72 @@ export enum PaymentIntegrationType {
|
|
|
11994
12098
|
}
|
|
11995
12099
|
|
|
11996
12100
|
|
|
12101
|
+
export interface PaymentIntent {
|
|
12102
|
+
'id': string;
|
|
12103
|
+
'source': PaymentIntentSource;
|
|
12104
|
+
'integrationId': number;
|
|
12105
|
+
'accountId': string;
|
|
12106
|
+
'description': string;
|
|
12107
|
+
'referenceId': string;
|
|
12108
|
+
'currency': string;
|
|
12109
|
+
'metadata': object;
|
|
12110
|
+
'eventId': string | null;
|
|
12111
|
+
'registrationId': string | null;
|
|
12112
|
+
'sessionId': string | null;
|
|
12113
|
+
'passId': string | null;
|
|
12114
|
+
'passTypeId': string | null;
|
|
12115
|
+
'placeId': string | null;
|
|
12116
|
+
'spaceId': string | null;
|
|
12117
|
+
'couponId': string | null;
|
|
12118
|
+
'invoiceId': string | null;
|
|
12119
|
+
'seriesId': string | null;
|
|
12120
|
+
'address1': string | null;
|
|
12121
|
+
'address2': string | null;
|
|
12122
|
+
'city': string | null;
|
|
12123
|
+
'state': string | null;
|
|
12124
|
+
'country': string | null;
|
|
12125
|
+
'zip': string | null;
|
|
12126
|
+
'locationAddress1': string | null;
|
|
12127
|
+
'locationAddress2': string | null;
|
|
12128
|
+
'locationCity': string | null;
|
|
12129
|
+
'locationState': string | null;
|
|
12130
|
+
'locationCountry': string | null;
|
|
12131
|
+
'locationZip': string | null;
|
|
12132
|
+
'salesTax': number;
|
|
12133
|
+
'salesTaxRate': string | null;
|
|
12134
|
+
'deferredAmount': number | null;
|
|
12135
|
+
'deferredDueDate': string | null;
|
|
12136
|
+
'createdAt': string;
|
|
12137
|
+
'lineItems': Array<BasePaymentIntentLineItem>;
|
|
12138
|
+
'coupon': BaseCoupon | null;
|
|
12139
|
+
'integration': BasePaymentIntentIntegration | null;
|
|
12140
|
+
'taxIntegration': BasePaymentIntentTaxIntegration | null;
|
|
12141
|
+
'account': BaseAccount | null;
|
|
12142
|
+
'event': BaseEvent | null;
|
|
12143
|
+
'session': BaseEventSession | null;
|
|
12144
|
+
'registration': BaseEventRegistration | null;
|
|
12145
|
+
'pass': BaseEventPass | null;
|
|
12146
|
+
'passType': BaseEventPassType | null;
|
|
12147
|
+
'place': BaseBookingPlace | null;
|
|
12148
|
+
'space': BaseBookingSpace | null;
|
|
12149
|
+
'invoice': BaseInvoice | null;
|
|
12150
|
+
'series': BaseSeries | null;
|
|
12151
|
+
}
|
|
12152
|
+
|
|
12153
|
+
|
|
12154
|
+
|
|
12155
|
+
export enum PaymentIntentSource {
|
|
12156
|
+
Registration = 'registration',
|
|
12157
|
+
Invoice = 'invoice',
|
|
12158
|
+
Pass = 'pass',
|
|
12159
|
+
Coupon = 'coupon',
|
|
12160
|
+
Session = 'session',
|
|
12161
|
+
Booking = 'booking',
|
|
12162
|
+
Series = 'series',
|
|
12163
|
+
Exchange = 'exchange'
|
|
12164
|
+
}
|
|
12165
|
+
|
|
12166
|
+
|
|
11997
12167
|
export interface PaymentLineItem {
|
|
11998
12168
|
'id': string;
|
|
11999
12169
|
'type': PaymentLineItemType;
|
|
@@ -15235,6 +15405,66 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15235
15405
|
options: localVarRequestOptions,
|
|
15236
15406
|
};
|
|
15237
15407
|
},
|
|
15408
|
+
/**
|
|
15409
|
+
* Returns a paginated list of unpaid checkout payment intents for the given account; requires the `read accounts` and `read payments` permissions.
|
|
15410
|
+
* @summary List an account\'s payment intents
|
|
15411
|
+
* @param {string} accountId The account identifier
|
|
15412
|
+
* @param {number} [page] Page number
|
|
15413
|
+
* @param {number} [pageSize] Number of items per page
|
|
15414
|
+
* @param {string} [orderBy] Field to order by
|
|
15415
|
+
* @param {string} [search] Search query
|
|
15416
|
+
* @param {*} [options] Override http request option.
|
|
15417
|
+
* @throws {RequiredError}
|
|
15418
|
+
*/
|
|
15419
|
+
getAccountPaymentIntents: async (accountId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15420
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
15421
|
+
assertParamExists('getAccountPaymentIntents', 'accountId', accountId)
|
|
15422
|
+
const localVarPath = `/accounts/{accountId}/payment-intents`
|
|
15423
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
15424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15425
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15426
|
+
let baseOptions;
|
|
15427
|
+
if (configuration) {
|
|
15428
|
+
baseOptions = configuration.baseOptions;
|
|
15429
|
+
}
|
|
15430
|
+
|
|
15431
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15432
|
+
const localVarHeaderParameter = {} as any;
|
|
15433
|
+
const localVarQueryParameter = {} as any;
|
|
15434
|
+
|
|
15435
|
+
// authentication ApiKeyAuth required
|
|
15436
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
15437
|
+
|
|
15438
|
+
// authentication OrganizationId required
|
|
15439
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
15440
|
+
|
|
15441
|
+
if (page !== undefined) {
|
|
15442
|
+
localVarQueryParameter['page'] = page;
|
|
15443
|
+
}
|
|
15444
|
+
|
|
15445
|
+
if (pageSize !== undefined) {
|
|
15446
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
15447
|
+
}
|
|
15448
|
+
|
|
15449
|
+
if (orderBy !== undefined) {
|
|
15450
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
15451
|
+
}
|
|
15452
|
+
|
|
15453
|
+
if (search !== undefined) {
|
|
15454
|
+
localVarQueryParameter['search'] = search;
|
|
15455
|
+
}
|
|
15456
|
+
|
|
15457
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15458
|
+
|
|
15459
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15460
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15461
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15462
|
+
|
|
15463
|
+
return {
|
|
15464
|
+
url: toPathString(localVarUrlObj),
|
|
15465
|
+
options: localVarRequestOptions,
|
|
15466
|
+
};
|
|
15467
|
+
},
|
|
15238
15468
|
/**
|
|
15239
15469
|
* Returns a paginated list of payments made by the given account, searchable by payment ID, account email, or account name; requires the `read accounts` and `read payments` permissions.
|
|
15240
15470
|
* @summary List an account\'s payments
|
|
@@ -15881,6 +16111,23 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
15881
16111
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountNotificationPreferences']?.[localVarOperationServerIndex]?.url;
|
|
15882
16112
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15883
16113
|
},
|
|
16114
|
+
/**
|
|
16115
|
+
* Returns a paginated list of unpaid checkout payment intents for the given account; requires the `read accounts` and `read payments` permissions.
|
|
16116
|
+
* @summary List an account\'s payment intents
|
|
16117
|
+
* @param {string} accountId The account identifier
|
|
16118
|
+
* @param {number} [page] Page number
|
|
16119
|
+
* @param {number} [pageSize] Number of items per page
|
|
16120
|
+
* @param {string} [orderBy] Field to order by
|
|
16121
|
+
* @param {string} [search] Search query
|
|
16122
|
+
* @param {*} [options] Override http request option.
|
|
16123
|
+
* @throws {RequiredError}
|
|
16124
|
+
*/
|
|
16125
|
+
async getAccountPaymentIntents(accountId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountPaymentIntents200Response>> {
|
|
16126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPaymentIntents(accountId, page, pageSize, orderBy, search, options);
|
|
16127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16128
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAccountPaymentIntents']?.[localVarOperationServerIndex]?.url;
|
|
16129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16130
|
+
},
|
|
15884
16131
|
/**
|
|
15885
16132
|
* Returns a paginated list of payments made by the given account, searchable by payment ID, account email, or account name; requires the `read accounts` and `read payments` permissions.
|
|
15886
16133
|
* @summary List an account\'s payments
|
|
@@ -16138,6 +16385,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16138
16385
|
getAccountNotificationPreferences(requestParameters: AccountsApiGetAccountNotificationPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountNotificationPreferences200Response> {
|
|
16139
16386
|
return localVarFp.getAccountNotificationPreferences(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
16140
16387
|
},
|
|
16388
|
+
/**
|
|
16389
|
+
* Returns a paginated list of unpaid checkout payment intents for the given account; requires the `read accounts` and `read payments` permissions.
|
|
16390
|
+
* @summary List an account\'s payment intents
|
|
16391
|
+
* @param {AccountsApiGetAccountPaymentIntentsRequest} requestParameters Request parameters.
|
|
16392
|
+
* @param {*} [options] Override http request option.
|
|
16393
|
+
* @throws {RequiredError}
|
|
16394
|
+
*/
|
|
16395
|
+
getAccountPaymentIntents(requestParameters: AccountsApiGetAccountPaymentIntentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPaymentIntents200Response> {
|
|
16396
|
+
return localVarFp.getAccountPaymentIntents(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
16397
|
+
},
|
|
16141
16398
|
/**
|
|
16142
16399
|
* Returns a paginated list of payments made by the given account, searchable by payment ID, account email, or account name; requires the `read accounts` and `read payments` permissions.
|
|
16143
16400
|
* @summary List an account\'s payments
|
|
@@ -16472,6 +16729,36 @@ export interface AccountsApiGetAccountNotificationPreferencesRequest {
|
|
|
16472
16729
|
readonly accountId: string
|
|
16473
16730
|
}
|
|
16474
16731
|
|
|
16732
|
+
/**
|
|
16733
|
+
* Request parameters for getAccountPaymentIntents operation in AccountsApi.
|
|
16734
|
+
*/
|
|
16735
|
+
export interface AccountsApiGetAccountPaymentIntentsRequest {
|
|
16736
|
+
/**
|
|
16737
|
+
* The account identifier
|
|
16738
|
+
*/
|
|
16739
|
+
readonly accountId: string
|
|
16740
|
+
|
|
16741
|
+
/**
|
|
16742
|
+
* Page number
|
|
16743
|
+
*/
|
|
16744
|
+
readonly page?: number
|
|
16745
|
+
|
|
16746
|
+
/**
|
|
16747
|
+
* Number of items per page
|
|
16748
|
+
*/
|
|
16749
|
+
readonly pageSize?: number
|
|
16750
|
+
|
|
16751
|
+
/**
|
|
16752
|
+
* Field to order by
|
|
16753
|
+
*/
|
|
16754
|
+
readonly orderBy?: string
|
|
16755
|
+
|
|
16756
|
+
/**
|
|
16757
|
+
* Search query
|
|
16758
|
+
*/
|
|
16759
|
+
readonly search?: string
|
|
16760
|
+
}
|
|
16761
|
+
|
|
16475
16762
|
/**
|
|
16476
16763
|
* Request parameters for getAccountPayments operation in AccountsApi.
|
|
16477
16764
|
*/
|
|
@@ -16784,6 +17071,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
16784
17071
|
return AccountsApiFp(this.configuration).getAccountNotificationPreferences(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
16785
17072
|
}
|
|
16786
17073
|
|
|
17074
|
+
/**
|
|
17075
|
+
* Returns a paginated list of unpaid checkout payment intents for the given account; requires the `read accounts` and `read payments` permissions.
|
|
17076
|
+
* @summary List an account\'s payment intents
|
|
17077
|
+
* @param {AccountsApiGetAccountPaymentIntentsRequest} requestParameters Request parameters.
|
|
17078
|
+
* @param {*} [options] Override http request option.
|
|
17079
|
+
* @throws {RequiredError}
|
|
17080
|
+
*/
|
|
17081
|
+
public getAccountPaymentIntents(requestParameters: AccountsApiGetAccountPaymentIntentsRequest, options?: RawAxiosRequestConfig) {
|
|
17082
|
+
return AccountsApiFp(this.configuration).getAccountPaymentIntents(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
17083
|
+
}
|
|
17084
|
+
|
|
16787
17085
|
/**
|
|
16788
17086
|
* Returns a paginated list of payments made by the given account, searchable by payment ID, account email, or account name; requires the `read accounts` and `read payments` permissions.
|
|
16789
17087
|
* @summary List an account\'s payments
|
|
@@ -122474,6 +122772,46 @@ export const OrganizationPaymentsApiAxiosParamCreator = function (configuration?
|
|
|
122474
122772
|
options: localVarRequestOptions,
|
|
122475
122773
|
};
|
|
122476
122774
|
},
|
|
122775
|
+
/**
|
|
122776
|
+
* Permanently removes an unpaid checkout payment intent identified by intentId. For Stripe, cancels an uncaptured PaymentIntent first and refuses if funds were already captured; requires update permission on the payments resource.
|
|
122777
|
+
* @summary Delete a payment intent
|
|
122778
|
+
* @param {string} intentId The intent identifier
|
|
122779
|
+
* @param {*} [options] Override http request option.
|
|
122780
|
+
* @throws {RequiredError}
|
|
122781
|
+
*/
|
|
122782
|
+
deletePaymentIntent: async (intentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
122783
|
+
// verify required parameter 'intentId' is not null or undefined
|
|
122784
|
+
assertParamExists('deletePaymentIntent', 'intentId', intentId)
|
|
122785
|
+
const localVarPath = `/payment-intents/{intentId}`
|
|
122786
|
+
.replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
|
|
122787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122788
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122789
|
+
let baseOptions;
|
|
122790
|
+
if (configuration) {
|
|
122791
|
+
baseOptions = configuration.baseOptions;
|
|
122792
|
+
}
|
|
122793
|
+
|
|
122794
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
122795
|
+
const localVarHeaderParameter = {} as any;
|
|
122796
|
+
const localVarQueryParameter = {} as any;
|
|
122797
|
+
|
|
122798
|
+
// authentication ApiKeyAuth required
|
|
122799
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
122800
|
+
|
|
122801
|
+
// authentication OrganizationId required
|
|
122802
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
122803
|
+
|
|
122804
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
122805
|
+
|
|
122806
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122807
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122808
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
122809
|
+
|
|
122810
|
+
return {
|
|
122811
|
+
url: toPathString(localVarUrlObj),
|
|
122812
|
+
options: localVarRequestOptions,
|
|
122813
|
+
};
|
|
122814
|
+
},
|
|
122477
122815
|
/**
|
|
122478
122816
|
* Returns the details of a single payment integration (e.g. Stripe, Braintree, Authorize.Net, or manual) configured for the organization, identified by integration ID; requires \"read\" permission on \"org\".
|
|
122479
122817
|
* @summary Get an organization payment integration
|
|
@@ -122610,6 +122948,102 @@ export const OrganizationPaymentsApiAxiosParamCreator = function (configuration?
|
|
|
122610
122948
|
options: localVarRequestOptions,
|
|
122611
122949
|
};
|
|
122612
122950
|
},
|
|
122951
|
+
/**
|
|
122952
|
+
* Returns a single unpaid checkout payment intent identified by intent ID; requires \"read\" permission on \"payments\".
|
|
122953
|
+
* @summary Get a payment intent
|
|
122954
|
+
* @param {string} intentId The intent identifier
|
|
122955
|
+
* @param {*} [options] Override http request option.
|
|
122956
|
+
* @throws {RequiredError}
|
|
122957
|
+
*/
|
|
122958
|
+
getPaymentIntent: async (intentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
122959
|
+
// verify required parameter 'intentId' is not null or undefined
|
|
122960
|
+
assertParamExists('getPaymentIntent', 'intentId', intentId)
|
|
122961
|
+
const localVarPath = `/payment-intents/{intentId}`
|
|
122962
|
+
.replace(`{${"intentId"}}`, encodeURIComponent(String(intentId)));
|
|
122963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122965
|
+
let baseOptions;
|
|
122966
|
+
if (configuration) {
|
|
122967
|
+
baseOptions = configuration.baseOptions;
|
|
122968
|
+
}
|
|
122969
|
+
|
|
122970
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
122971
|
+
const localVarHeaderParameter = {} as any;
|
|
122972
|
+
const localVarQueryParameter = {} as any;
|
|
122973
|
+
|
|
122974
|
+
// authentication ApiKeyAuth required
|
|
122975
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
122976
|
+
|
|
122977
|
+
// authentication OrganizationId required
|
|
122978
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
122979
|
+
|
|
122980
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
122981
|
+
|
|
122982
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122984
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
122985
|
+
|
|
122986
|
+
return {
|
|
122987
|
+
url: toPathString(localVarUrlObj),
|
|
122988
|
+
options: localVarRequestOptions,
|
|
122989
|
+
};
|
|
122990
|
+
},
|
|
122991
|
+
/**
|
|
122992
|
+
* Returns a paginated list of unpaid checkout payment intents for the organization, searchable by id, source, description, or account; requires \"read\" permission on \"payments\".
|
|
122993
|
+
* @summary List an organization\'s payment intents
|
|
122994
|
+
* @param {number} [page] Page number
|
|
122995
|
+
* @param {number} [pageSize] Number of items per page
|
|
122996
|
+
* @param {string} [orderBy] Field to order by
|
|
122997
|
+
* @param {string} [search] Search query
|
|
122998
|
+
* @param {*} [options] Override http request option.
|
|
122999
|
+
* @throws {RequiredError}
|
|
123000
|
+
*/
|
|
123001
|
+
getPaymentIntents: async (page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
123002
|
+
const localVarPath = `/payment-intents`;
|
|
123003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123004
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123005
|
+
let baseOptions;
|
|
123006
|
+
if (configuration) {
|
|
123007
|
+
baseOptions = configuration.baseOptions;
|
|
123008
|
+
}
|
|
123009
|
+
|
|
123010
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
123011
|
+
const localVarHeaderParameter = {} as any;
|
|
123012
|
+
const localVarQueryParameter = {} as any;
|
|
123013
|
+
|
|
123014
|
+
// authentication ApiKeyAuth required
|
|
123015
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
123016
|
+
|
|
123017
|
+
// authentication OrganizationId required
|
|
123018
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
123019
|
+
|
|
123020
|
+
if (page !== undefined) {
|
|
123021
|
+
localVarQueryParameter['page'] = page;
|
|
123022
|
+
}
|
|
123023
|
+
|
|
123024
|
+
if (pageSize !== undefined) {
|
|
123025
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
123026
|
+
}
|
|
123027
|
+
|
|
123028
|
+
if (orderBy !== undefined) {
|
|
123029
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
123030
|
+
}
|
|
123031
|
+
|
|
123032
|
+
if (search !== undefined) {
|
|
123033
|
+
localVarQueryParameter['search'] = search;
|
|
123034
|
+
}
|
|
123035
|
+
|
|
123036
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
123037
|
+
|
|
123038
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123039
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123040
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
123041
|
+
|
|
123042
|
+
return {
|
|
123043
|
+
url: toPathString(localVarUrlObj),
|
|
123044
|
+
options: localVarRequestOptions,
|
|
123045
|
+
};
|
|
123046
|
+
},
|
|
122613
123047
|
/**
|
|
122614
123048
|
* Returns tax metadata recorded for a specific payment by fetching it from the tax integration (e.g. Taxjar, Avalara) linked to that payment, or a message if the payment has no associated tax integration; requires \"read\" permission on \"payments\".
|
|
122615
123049
|
* @summary Get a payment\'s tax metadata
|
|
@@ -122916,6 +123350,19 @@ export const OrganizationPaymentsApiFp = function(configuration?: Configuration)
|
|
|
122916
123350
|
const localVarOperationServerBasePath = operationServerMap['OrganizationPaymentsApi.deleteOrganizationPaymentIntegration']?.[localVarOperationServerIndex]?.url;
|
|
122917
123351
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
122918
123352
|
},
|
|
123353
|
+
/**
|
|
123354
|
+
* Permanently removes an unpaid checkout payment intent identified by intentId. For Stripe, cancels an uncaptured PaymentIntent first and refuses if funds were already captured; requires update permission on the payments resource.
|
|
123355
|
+
* @summary Delete a payment intent
|
|
123356
|
+
* @param {string} intentId The intent identifier
|
|
123357
|
+
* @param {*} [options] Override http request option.
|
|
123358
|
+
* @throws {RequiredError}
|
|
123359
|
+
*/
|
|
123360
|
+
async deletePaymentIntent(intentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountInvitations200Response>> {
|
|
123361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentIntent(intentId, options);
|
|
123362
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
123363
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPaymentsApi.deletePaymentIntent']?.[localVarOperationServerIndex]?.url;
|
|
123364
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
123365
|
+
},
|
|
122919
123366
|
/**
|
|
122920
123367
|
* Returns the details of a single payment integration (e.g. Stripe, Braintree, Authorize.Net, or manual) configured for the organization, identified by integration ID; requires \"read\" permission on \"org\".
|
|
122921
123368
|
* @summary Get an organization payment integration
|
|
@@ -122958,6 +123405,35 @@ export const OrganizationPaymentsApiFp = function(configuration?: Configuration)
|
|
|
122958
123405
|
const localVarOperationServerBasePath = operationServerMap['OrganizationPaymentsApi.getPayment']?.[localVarOperationServerIndex]?.url;
|
|
122959
123406
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
122960
123407
|
},
|
|
123408
|
+
/**
|
|
123409
|
+
* Returns a single unpaid checkout payment intent identified by intent ID; requires \"read\" permission on \"payments\".
|
|
123410
|
+
* @summary Get a payment intent
|
|
123411
|
+
* @param {string} intentId The intent identifier
|
|
123412
|
+
* @param {*} [options] Override http request option.
|
|
123413
|
+
* @throws {RequiredError}
|
|
123414
|
+
*/
|
|
123415
|
+
async getPaymentIntent(intentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentIntent200Response>> {
|
|
123416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentIntent(intentId, options);
|
|
123417
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
123418
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPaymentsApi.getPaymentIntent']?.[localVarOperationServerIndex]?.url;
|
|
123419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
123420
|
+
},
|
|
123421
|
+
/**
|
|
123422
|
+
* Returns a paginated list of unpaid checkout payment intents for the organization, searchable by id, source, description, or account; requires \"read\" permission on \"payments\".
|
|
123423
|
+
* @summary List an organization\'s payment intents
|
|
123424
|
+
* @param {number} [page] Page number
|
|
123425
|
+
* @param {number} [pageSize] Number of items per page
|
|
123426
|
+
* @param {string} [orderBy] Field to order by
|
|
123427
|
+
* @param {string} [search] Search query
|
|
123428
|
+
* @param {*} [options] Override http request option.
|
|
123429
|
+
* @throws {RequiredError}
|
|
123430
|
+
*/
|
|
123431
|
+
async getPaymentIntents(page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountPaymentIntents200Response>> {
|
|
123432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentIntents(page, pageSize, orderBy, search, options);
|
|
123433
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
123434
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPaymentsApi.getPaymentIntents']?.[localVarOperationServerIndex]?.url;
|
|
123435
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
123436
|
+
},
|
|
122961
123437
|
/**
|
|
122962
123438
|
* Returns tax metadata recorded for a specific payment by fetching it from the tax integration (e.g. Taxjar, Avalara) linked to that payment, or a message if the payment has no associated tax integration; requires \"read\" permission on \"payments\".
|
|
122963
123439
|
* @summary Get a payment\'s tax metadata
|
|
@@ -123071,6 +123547,16 @@ export const OrganizationPaymentsApiFactory = function (configuration?: Configur
|
|
|
123071
123547
|
deleteOrganizationPaymentIntegration(requestParameters: OrganizationPaymentsApiDeleteOrganizationPaymentIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<SyncAccounts200Response> {
|
|
123072
123548
|
return localVarFp.deleteOrganizationPaymentIntegration(requestParameters.integrationId, options).then((request) => request(axios, basePath));
|
|
123073
123549
|
},
|
|
123550
|
+
/**
|
|
123551
|
+
* Permanently removes an unpaid checkout payment intent identified by intentId. For Stripe, cancels an uncaptured PaymentIntent first and refuses if funds were already captured; requires update permission on the payments resource.
|
|
123552
|
+
* @summary Delete a payment intent
|
|
123553
|
+
* @param {OrganizationPaymentsApiDeletePaymentIntentRequest} requestParameters Request parameters.
|
|
123554
|
+
* @param {*} [options] Override http request option.
|
|
123555
|
+
* @throws {RequiredError}
|
|
123556
|
+
*/
|
|
123557
|
+
deletePaymentIntent(requestParameters: OrganizationPaymentsApiDeletePaymentIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAccountInvitations200Response> {
|
|
123558
|
+
return localVarFp.deletePaymentIntent(requestParameters.intentId, options).then((request) => request(axios, basePath));
|
|
123559
|
+
},
|
|
123074
123560
|
/**
|
|
123075
123561
|
* Returns the details of a single payment integration (e.g. Stripe, Braintree, Authorize.Net, or manual) configured for the organization, identified by integration ID; requires \"read\" permission on \"org\".
|
|
123076
123562
|
* @summary Get an organization payment integration
|
|
@@ -123101,6 +123587,26 @@ export const OrganizationPaymentsApiFactory = function (configuration?: Configur
|
|
|
123101
123587
|
getPayment(requestParameters: OrganizationPaymentsApiGetPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPayment200Response> {
|
|
123102
123588
|
return localVarFp.getPayment(requestParameters.paymentId, options).then((request) => request(axios, basePath));
|
|
123103
123589
|
},
|
|
123590
|
+
/**
|
|
123591
|
+
* Returns a single unpaid checkout payment intent identified by intent ID; requires \"read\" permission on \"payments\".
|
|
123592
|
+
* @summary Get a payment intent
|
|
123593
|
+
* @param {OrganizationPaymentsApiGetPaymentIntentRequest} requestParameters Request parameters.
|
|
123594
|
+
* @param {*} [options] Override http request option.
|
|
123595
|
+
* @throws {RequiredError}
|
|
123596
|
+
*/
|
|
123597
|
+
getPaymentIntent(requestParameters: OrganizationPaymentsApiGetPaymentIntentRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPaymentIntent200Response> {
|
|
123598
|
+
return localVarFp.getPaymentIntent(requestParameters.intentId, options).then((request) => request(axios, basePath));
|
|
123599
|
+
},
|
|
123600
|
+
/**
|
|
123601
|
+
* Returns a paginated list of unpaid checkout payment intents for the organization, searchable by id, source, description, or account; requires \"read\" permission on \"payments\".
|
|
123602
|
+
* @summary List an organization\'s payment intents
|
|
123603
|
+
* @param {OrganizationPaymentsApiGetPaymentIntentsRequest} requestParameters Request parameters.
|
|
123604
|
+
* @param {*} [options] Override http request option.
|
|
123605
|
+
* @throws {RequiredError}
|
|
123606
|
+
*/
|
|
123607
|
+
getPaymentIntents(requestParameters: OrganizationPaymentsApiGetPaymentIntentsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPaymentIntents200Response> {
|
|
123608
|
+
return localVarFp.getPaymentIntents(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
123609
|
+
},
|
|
123104
123610
|
/**
|
|
123105
123611
|
* Returns tax metadata recorded for a specific payment by fetching it from the tax integration (e.g. Taxjar, Avalara) linked to that payment, or a message if the payment has no associated tax integration; requires \"read\" permission on \"payments\".
|
|
123106
123612
|
* @summary Get a payment\'s tax metadata
|
|
@@ -123181,6 +123687,16 @@ export interface OrganizationPaymentsApiDeleteOrganizationPaymentIntegrationRequ
|
|
|
123181
123687
|
readonly integrationId: string
|
|
123182
123688
|
}
|
|
123183
123689
|
|
|
123690
|
+
/**
|
|
123691
|
+
* Request parameters for deletePaymentIntent operation in OrganizationPaymentsApi.
|
|
123692
|
+
*/
|
|
123693
|
+
export interface OrganizationPaymentsApiDeletePaymentIntentRequest {
|
|
123694
|
+
/**
|
|
123695
|
+
* The intent identifier
|
|
123696
|
+
*/
|
|
123697
|
+
readonly intentId: string
|
|
123698
|
+
}
|
|
123699
|
+
|
|
123184
123700
|
/**
|
|
123185
123701
|
* Request parameters for getOrganizationPaymentIntegration operation in OrganizationPaymentsApi.
|
|
123186
123702
|
*/
|
|
@@ -123226,6 +123742,41 @@ export interface OrganizationPaymentsApiGetPaymentRequest {
|
|
|
123226
123742
|
readonly paymentId: string
|
|
123227
123743
|
}
|
|
123228
123744
|
|
|
123745
|
+
/**
|
|
123746
|
+
* Request parameters for getPaymentIntent operation in OrganizationPaymentsApi.
|
|
123747
|
+
*/
|
|
123748
|
+
export interface OrganizationPaymentsApiGetPaymentIntentRequest {
|
|
123749
|
+
/**
|
|
123750
|
+
* The intent identifier
|
|
123751
|
+
*/
|
|
123752
|
+
readonly intentId: string
|
|
123753
|
+
}
|
|
123754
|
+
|
|
123755
|
+
/**
|
|
123756
|
+
* Request parameters for getPaymentIntents operation in OrganizationPaymentsApi.
|
|
123757
|
+
*/
|
|
123758
|
+
export interface OrganizationPaymentsApiGetPaymentIntentsRequest {
|
|
123759
|
+
/**
|
|
123760
|
+
* Page number
|
|
123761
|
+
*/
|
|
123762
|
+
readonly page?: number
|
|
123763
|
+
|
|
123764
|
+
/**
|
|
123765
|
+
* Number of items per page
|
|
123766
|
+
*/
|
|
123767
|
+
readonly pageSize?: number
|
|
123768
|
+
|
|
123769
|
+
/**
|
|
123770
|
+
* Field to order by
|
|
123771
|
+
*/
|
|
123772
|
+
readonly orderBy?: string
|
|
123773
|
+
|
|
123774
|
+
/**
|
|
123775
|
+
* Search query
|
|
123776
|
+
*/
|
|
123777
|
+
readonly search?: string
|
|
123778
|
+
}
|
|
123779
|
+
|
|
123229
123780
|
/**
|
|
123230
123781
|
* Request parameters for getPaymentTaxMetadata operation in OrganizationPaymentsApi.
|
|
123231
123782
|
*/
|
|
@@ -123336,6 +123887,17 @@ export class OrganizationPaymentsApi extends BaseAPI {
|
|
|
123336
123887
|
return OrganizationPaymentsApiFp(this.configuration).deleteOrganizationPaymentIntegration(requestParameters.integrationId, options).then((request) => request(this.axios, this.basePath));
|
|
123337
123888
|
}
|
|
123338
123889
|
|
|
123890
|
+
/**
|
|
123891
|
+
* Permanently removes an unpaid checkout payment intent identified by intentId. For Stripe, cancels an uncaptured PaymentIntent first and refuses if funds were already captured; requires update permission on the payments resource.
|
|
123892
|
+
* @summary Delete a payment intent
|
|
123893
|
+
* @param {OrganizationPaymentsApiDeletePaymentIntentRequest} requestParameters Request parameters.
|
|
123894
|
+
* @param {*} [options] Override http request option.
|
|
123895
|
+
* @throws {RequiredError}
|
|
123896
|
+
*/
|
|
123897
|
+
public deletePaymentIntent(requestParameters: OrganizationPaymentsApiDeletePaymentIntentRequest, options?: RawAxiosRequestConfig) {
|
|
123898
|
+
return OrganizationPaymentsApiFp(this.configuration).deletePaymentIntent(requestParameters.intentId, options).then((request) => request(this.axios, this.basePath));
|
|
123899
|
+
}
|
|
123900
|
+
|
|
123339
123901
|
/**
|
|
123340
123902
|
* Returns the details of a single payment integration (e.g. Stripe, Braintree, Authorize.Net, or manual) configured for the organization, identified by integration ID; requires \"read\" permission on \"org\".
|
|
123341
123903
|
* @summary Get an organization payment integration
|
|
@@ -123369,6 +123931,28 @@ export class OrganizationPaymentsApi extends BaseAPI {
|
|
|
123369
123931
|
return OrganizationPaymentsApiFp(this.configuration).getPayment(requestParameters.paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
123370
123932
|
}
|
|
123371
123933
|
|
|
123934
|
+
/**
|
|
123935
|
+
* Returns a single unpaid checkout payment intent identified by intent ID; requires \"read\" permission on \"payments\".
|
|
123936
|
+
* @summary Get a payment intent
|
|
123937
|
+
* @param {OrganizationPaymentsApiGetPaymentIntentRequest} requestParameters Request parameters.
|
|
123938
|
+
* @param {*} [options] Override http request option.
|
|
123939
|
+
* @throws {RequiredError}
|
|
123940
|
+
*/
|
|
123941
|
+
public getPaymentIntent(requestParameters: OrganizationPaymentsApiGetPaymentIntentRequest, options?: RawAxiosRequestConfig) {
|
|
123942
|
+
return OrganizationPaymentsApiFp(this.configuration).getPaymentIntent(requestParameters.intentId, options).then((request) => request(this.axios, this.basePath));
|
|
123943
|
+
}
|
|
123944
|
+
|
|
123945
|
+
/**
|
|
123946
|
+
* Returns a paginated list of unpaid checkout payment intents for the organization, searchable by id, source, description, or account; requires \"read\" permission on \"payments\".
|
|
123947
|
+
* @summary List an organization\'s payment intents
|
|
123948
|
+
* @param {OrganizationPaymentsApiGetPaymentIntentsRequest} requestParameters Request parameters.
|
|
123949
|
+
* @param {*} [options] Override http request option.
|
|
123950
|
+
* @throws {RequiredError}
|
|
123951
|
+
*/
|
|
123952
|
+
public getPaymentIntents(requestParameters: OrganizationPaymentsApiGetPaymentIntentsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
123953
|
+
return OrganizationPaymentsApiFp(this.configuration).getPaymentIntents(requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
123954
|
+
}
|
|
123955
|
+
|
|
123372
123956
|
/**
|
|
123373
123957
|
* Returns tax metadata recorded for a specific payment by fetching it from the tax integration (e.g. Taxjar, Avalara) linked to that payment, or a message if the payment has no associated tax integration; requires \"read\" permission on \"payments\".
|
|
123374
123958
|
* @summary Get a payment\'s tax metadata
|