@seekora-ai/admin-api 1.1.93 → 1.1.94
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/README.md +25 -4
- package/api.ts +1676 -18
- package/dist/api.d.ts +1157 -19
- package/dist/api.js +958 -26
- package/dist/esm/api.d.ts +1157 -19
- package/dist/esm/api.js +940 -16
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.94.tgz +0 -0
- package/seekora-ai-admin-api-1.1.93.tgz +0 -0
package/api.ts
CHANGED
|
@@ -14093,6 +14093,100 @@ export interface DataTypesCreateAnalyticsRuleRequest {
|
|
|
14093
14093
|
*/
|
|
14094
14094
|
'store_id'?: number;
|
|
14095
14095
|
}
|
|
14096
|
+
/**
|
|
14097
|
+
*
|
|
14098
|
+
* @export
|
|
14099
|
+
* @interface DataTypesCreateCustomPlanRequest
|
|
14100
|
+
*/
|
|
14101
|
+
export interface DataTypesCreateCustomPlanRequest {
|
|
14102
|
+
/**
|
|
14103
|
+
*
|
|
14104
|
+
* @type {string}
|
|
14105
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14106
|
+
*/
|
|
14107
|
+
'billing_type': DataTypesCreateCustomPlanRequestBillingTypeEnum;
|
|
14108
|
+
/**
|
|
14109
|
+
*
|
|
14110
|
+
* @type {number}
|
|
14111
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14112
|
+
*/
|
|
14113
|
+
'bonus_credits'?: number;
|
|
14114
|
+
/**
|
|
14115
|
+
*
|
|
14116
|
+
* @type {string}
|
|
14117
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14118
|
+
*/
|
|
14119
|
+
'currency': DataTypesCreateCustomPlanRequestCurrencyEnum;
|
|
14120
|
+
/**
|
|
14121
|
+
*
|
|
14122
|
+
* @type {string}
|
|
14123
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14124
|
+
*/
|
|
14125
|
+
'description'?: string;
|
|
14126
|
+
/**
|
|
14127
|
+
*
|
|
14128
|
+
* @type {string}
|
|
14129
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14130
|
+
*/
|
|
14131
|
+
'highlights'?: string;
|
|
14132
|
+
/**
|
|
14133
|
+
*
|
|
14134
|
+
* @type {string}
|
|
14135
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14136
|
+
*/
|
|
14137
|
+
'notes'?: string;
|
|
14138
|
+
/**
|
|
14139
|
+
*
|
|
14140
|
+
* @type {number}
|
|
14141
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14142
|
+
*/
|
|
14143
|
+
'org_id': number;
|
|
14144
|
+
/**
|
|
14145
|
+
*
|
|
14146
|
+
* @type {string}
|
|
14147
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14148
|
+
*/
|
|
14149
|
+
'plan_features': string;
|
|
14150
|
+
/**
|
|
14151
|
+
*
|
|
14152
|
+
* @type {string}
|
|
14153
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14154
|
+
*/
|
|
14155
|
+
'plan_name': string;
|
|
14156
|
+
/**
|
|
14157
|
+
*
|
|
14158
|
+
* @type {number}
|
|
14159
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14160
|
+
*/
|
|
14161
|
+
'price': number;
|
|
14162
|
+
/**
|
|
14163
|
+
*
|
|
14164
|
+
* @type {number}
|
|
14165
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14166
|
+
*/
|
|
14167
|
+
'total_credits': number;
|
|
14168
|
+
/**
|
|
14169
|
+
*
|
|
14170
|
+
* @type {number}
|
|
14171
|
+
* @memberof DataTypesCreateCustomPlanRequest
|
|
14172
|
+
*/
|
|
14173
|
+
'trial_days'?: number;
|
|
14174
|
+
}
|
|
14175
|
+
|
|
14176
|
+
export const DataTypesCreateCustomPlanRequestBillingTypeEnum = {
|
|
14177
|
+
Monthly: 'monthly',
|
|
14178
|
+
Annual: 'annual',
|
|
14179
|
+
OneTime: 'one-time'
|
|
14180
|
+
} as const;
|
|
14181
|
+
|
|
14182
|
+
export type DataTypesCreateCustomPlanRequestBillingTypeEnum = typeof DataTypesCreateCustomPlanRequestBillingTypeEnum[keyof typeof DataTypesCreateCustomPlanRequestBillingTypeEnum];
|
|
14183
|
+
export const DataTypesCreateCustomPlanRequestCurrencyEnum = {
|
|
14184
|
+
Usd: 'USD',
|
|
14185
|
+
Inr: 'INR'
|
|
14186
|
+
} as const;
|
|
14187
|
+
|
|
14188
|
+
export type DataTypesCreateCustomPlanRequestCurrencyEnum = typeof DataTypesCreateCustomPlanRequestCurrencyEnum[keyof typeof DataTypesCreateCustomPlanRequestCurrencyEnum];
|
|
14189
|
+
|
|
14096
14190
|
/**
|
|
14097
14191
|
*
|
|
14098
14192
|
* @export
|
|
@@ -15838,6 +15932,176 @@ export interface DataTypesCurrentPlanInfo {
|
|
|
15838
15932
|
*/
|
|
15839
15933
|
'subscription_id'?: string;
|
|
15840
15934
|
}
|
|
15935
|
+
/**
|
|
15936
|
+
*
|
|
15937
|
+
* @export
|
|
15938
|
+
* @interface DataTypesCustomPlanListResponse
|
|
15939
|
+
*/
|
|
15940
|
+
export interface DataTypesCustomPlanListResponse {
|
|
15941
|
+
/**
|
|
15942
|
+
*
|
|
15943
|
+
* @type {Array<DataTypesCustomPlanResponse>}
|
|
15944
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15945
|
+
*/
|
|
15946
|
+
'data'?: Array<DataTypesCustomPlanResponse>;
|
|
15947
|
+
/**
|
|
15948
|
+
*
|
|
15949
|
+
* @type {string}
|
|
15950
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15951
|
+
*/
|
|
15952
|
+
'message'?: string;
|
|
15953
|
+
/**
|
|
15954
|
+
*
|
|
15955
|
+
* @type {number}
|
|
15956
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15957
|
+
*/
|
|
15958
|
+
'page'?: number;
|
|
15959
|
+
/**
|
|
15960
|
+
*
|
|
15961
|
+
* @type {number}
|
|
15962
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15963
|
+
*/
|
|
15964
|
+
'page_size'?: number;
|
|
15965
|
+
/**
|
|
15966
|
+
*
|
|
15967
|
+
* @type {number}
|
|
15968
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15969
|
+
*/
|
|
15970
|
+
'status'?: number;
|
|
15971
|
+
/**
|
|
15972
|
+
*
|
|
15973
|
+
* @type {number}
|
|
15974
|
+
* @memberof DataTypesCustomPlanListResponse
|
|
15975
|
+
*/
|
|
15976
|
+
'total'?: number;
|
|
15977
|
+
}
|
|
15978
|
+
/**
|
|
15979
|
+
*
|
|
15980
|
+
* @export
|
|
15981
|
+
* @interface DataTypesCustomPlanResponse
|
|
15982
|
+
*/
|
|
15983
|
+
export interface DataTypesCustomPlanResponse {
|
|
15984
|
+
/**
|
|
15985
|
+
*
|
|
15986
|
+
* @type {string}
|
|
15987
|
+
* @memberof DataTypesCustomPlanResponse
|
|
15988
|
+
*/
|
|
15989
|
+
'billing_type'?: string;
|
|
15990
|
+
/**
|
|
15991
|
+
*
|
|
15992
|
+
* @type {number}
|
|
15993
|
+
* @memberof DataTypesCustomPlanResponse
|
|
15994
|
+
*/
|
|
15995
|
+
'bonus_credits'?: number;
|
|
15996
|
+
/**
|
|
15997
|
+
*
|
|
15998
|
+
* @type {string}
|
|
15999
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16000
|
+
*/
|
|
16001
|
+
'created_at'?: string;
|
|
16002
|
+
/**
|
|
16003
|
+
*
|
|
16004
|
+
* @type {number}
|
|
16005
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16006
|
+
*/
|
|
16007
|
+
'created_by_user_id'?: number;
|
|
16008
|
+
/**
|
|
16009
|
+
*
|
|
16010
|
+
* @type {string}
|
|
16011
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16012
|
+
*/
|
|
16013
|
+
'currency'?: string;
|
|
16014
|
+
/**
|
|
16015
|
+
*
|
|
16016
|
+
* @type {string}
|
|
16017
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16018
|
+
*/
|
|
16019
|
+
'description'?: string;
|
|
16020
|
+
/**
|
|
16021
|
+
*
|
|
16022
|
+
* @type {string}
|
|
16023
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16024
|
+
*/
|
|
16025
|
+
'highlights'?: string;
|
|
16026
|
+
/**
|
|
16027
|
+
*
|
|
16028
|
+
* @type {boolean}
|
|
16029
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16030
|
+
*/
|
|
16031
|
+
'is_active'?: boolean;
|
|
16032
|
+
/**
|
|
16033
|
+
*
|
|
16034
|
+
* @type {boolean}
|
|
16035
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16036
|
+
*/
|
|
16037
|
+
'is_custom'?: boolean;
|
|
16038
|
+
/**
|
|
16039
|
+
*
|
|
16040
|
+
* @type {string}
|
|
16041
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16042
|
+
*/
|
|
16043
|
+
'modified_at'?: string;
|
|
16044
|
+
/**
|
|
16045
|
+
*
|
|
16046
|
+
* @type {string}
|
|
16047
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16048
|
+
*/
|
|
16049
|
+
'notes'?: string;
|
|
16050
|
+
/**
|
|
16051
|
+
*
|
|
16052
|
+
* @type {number}
|
|
16053
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16054
|
+
*/
|
|
16055
|
+
'org_id'?: number;
|
|
16056
|
+
/**
|
|
16057
|
+
*
|
|
16058
|
+
* @type {string}
|
|
16059
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16060
|
+
*/
|
|
16061
|
+
'org_name'?: string;
|
|
16062
|
+
/**
|
|
16063
|
+
*
|
|
16064
|
+
* @type {Array<DataTypesPaymentLinkResponse>}
|
|
16065
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16066
|
+
*/
|
|
16067
|
+
'payment_links'?: Array<DataTypesPaymentLinkResponse>;
|
|
16068
|
+
/**
|
|
16069
|
+
*
|
|
16070
|
+
* @type {string}
|
|
16071
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16072
|
+
*/
|
|
16073
|
+
'plan_features'?: string;
|
|
16074
|
+
/**
|
|
16075
|
+
*
|
|
16076
|
+
* @type {number}
|
|
16077
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16078
|
+
*/
|
|
16079
|
+
'plan_id'?: number;
|
|
16080
|
+
/**
|
|
16081
|
+
*
|
|
16082
|
+
* @type {string}
|
|
16083
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16084
|
+
*/
|
|
16085
|
+
'plan_name'?: string;
|
|
16086
|
+
/**
|
|
16087
|
+
*
|
|
16088
|
+
* @type {number}
|
|
16089
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16090
|
+
*/
|
|
16091
|
+
'price'?: number;
|
|
16092
|
+
/**
|
|
16093
|
+
*
|
|
16094
|
+
* @type {number}
|
|
16095
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16096
|
+
*/
|
|
16097
|
+
'total_credits'?: number;
|
|
16098
|
+
/**
|
|
16099
|
+
*
|
|
16100
|
+
* @type {number}
|
|
16101
|
+
* @memberof DataTypesCustomPlanResponse
|
|
16102
|
+
*/
|
|
16103
|
+
'trial_days'?: number;
|
|
16104
|
+
}
|
|
15841
16105
|
/**
|
|
15842
16106
|
*
|
|
15843
16107
|
* @export
|
|
@@ -19041,6 +19305,37 @@ export interface DataTypesGenerateInvoiceReceiptResponse {
|
|
|
19041
19305
|
*/
|
|
19042
19306
|
'success'?: boolean;
|
|
19043
19307
|
}
|
|
19308
|
+
/**
|
|
19309
|
+
*
|
|
19310
|
+
* @export
|
|
19311
|
+
* @interface DataTypesGeneratePaymentLinkRequest
|
|
19312
|
+
*/
|
|
19313
|
+
export interface DataTypesGeneratePaymentLinkRequest {
|
|
19314
|
+
/**
|
|
19315
|
+
*
|
|
19316
|
+
* @type {string}
|
|
19317
|
+
* @memberof DataTypesGeneratePaymentLinkRequest
|
|
19318
|
+
*/
|
|
19319
|
+
'description'?: string;
|
|
19320
|
+
/**
|
|
19321
|
+
*
|
|
19322
|
+
* @type {number}
|
|
19323
|
+
* @memberof DataTypesGeneratePaymentLinkRequest
|
|
19324
|
+
*/
|
|
19325
|
+
'expires_in_days': number;
|
|
19326
|
+
/**
|
|
19327
|
+
*
|
|
19328
|
+
* @type {string}
|
|
19329
|
+
* @memberof DataTypesGeneratePaymentLinkRequest
|
|
19330
|
+
*/
|
|
19331
|
+
'gateway'?: string;
|
|
19332
|
+
/**
|
|
19333
|
+
*
|
|
19334
|
+
* @type {boolean}
|
|
19335
|
+
* @memberof DataTypesGeneratePaymentLinkRequest
|
|
19336
|
+
*/
|
|
19337
|
+
'notify_org'?: boolean;
|
|
19338
|
+
}
|
|
19044
19339
|
/**
|
|
19045
19340
|
*
|
|
19046
19341
|
* @export
|
|
@@ -22863,6 +23158,65 @@ export interface DataTypesManualCreditAdjustmentRequest {
|
|
|
22863
23158
|
*/
|
|
22864
23159
|
'store_id': number;
|
|
22865
23160
|
}
|
|
23161
|
+
/**
|
|
23162
|
+
*
|
|
23163
|
+
* @export
|
|
23164
|
+
* @interface DataTypesMarkPaidRequest
|
|
23165
|
+
*/
|
|
23166
|
+
export interface DataTypesMarkPaidRequest {
|
|
23167
|
+
/**
|
|
23168
|
+
*
|
|
23169
|
+
* @type {number}
|
|
23170
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23171
|
+
*/
|
|
23172
|
+
'amount': number;
|
|
23173
|
+
/**
|
|
23174
|
+
*
|
|
23175
|
+
* @type {string}
|
|
23176
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23177
|
+
*/
|
|
23178
|
+
'currency': DataTypesMarkPaidRequestCurrencyEnum;
|
|
23179
|
+
/**
|
|
23180
|
+
*
|
|
23181
|
+
* @type {string}
|
|
23182
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23183
|
+
*/
|
|
23184
|
+
'notes'?: string;
|
|
23185
|
+
/**
|
|
23186
|
+
* YYYY-MM-DD format
|
|
23187
|
+
* @type {string}
|
|
23188
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23189
|
+
*/
|
|
23190
|
+
'payment_date': string;
|
|
23191
|
+
/**
|
|
23192
|
+
*
|
|
23193
|
+
* @type {string}
|
|
23194
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23195
|
+
*/
|
|
23196
|
+
'payment_method': DataTypesMarkPaidRequestPaymentMethodEnum;
|
|
23197
|
+
/**
|
|
23198
|
+
*
|
|
23199
|
+
* @type {string}
|
|
23200
|
+
* @memberof DataTypesMarkPaidRequest
|
|
23201
|
+
*/
|
|
23202
|
+
'reference_number'?: string;
|
|
23203
|
+
}
|
|
23204
|
+
|
|
23205
|
+
export const DataTypesMarkPaidRequestCurrencyEnum = {
|
|
23206
|
+
Usd: 'USD',
|
|
23207
|
+
Inr: 'INR'
|
|
23208
|
+
} as const;
|
|
23209
|
+
|
|
23210
|
+
export type DataTypesMarkPaidRequestCurrencyEnum = typeof DataTypesMarkPaidRequestCurrencyEnum[keyof typeof DataTypesMarkPaidRequestCurrencyEnum];
|
|
23211
|
+
export const DataTypesMarkPaidRequestPaymentMethodEnum = {
|
|
23212
|
+
WireTransfer: 'wire_transfer',
|
|
23213
|
+
BankTransfer: 'bank_transfer',
|
|
23214
|
+
Check: 'check',
|
|
23215
|
+
Other: 'other'
|
|
23216
|
+
} as const;
|
|
23217
|
+
|
|
23218
|
+
export type DataTypesMarkPaidRequestPaymentMethodEnum = typeof DataTypesMarkPaidRequestPaymentMethodEnum[keyof typeof DataTypesMarkPaidRequestPaymentMethodEnum];
|
|
23219
|
+
|
|
22866
23220
|
/**
|
|
22867
23221
|
*
|
|
22868
23222
|
* @export
|
|
@@ -24780,6 +25134,25 @@ export const DataTypesNotificationType = {
|
|
|
24780
25134
|
export type DataTypesNotificationType = typeof DataTypesNotificationType[keyof typeof DataTypesNotificationType];
|
|
24781
25135
|
|
|
24782
25136
|
|
|
25137
|
+
/**
|
|
25138
|
+
*
|
|
25139
|
+
* @export
|
|
25140
|
+
* @interface DataTypesNotifyOrgRequest
|
|
25141
|
+
*/
|
|
25142
|
+
export interface DataTypesNotifyOrgRequest {
|
|
25143
|
+
/**
|
|
25144
|
+
*
|
|
25145
|
+
* @type {string}
|
|
25146
|
+
* @memberof DataTypesNotifyOrgRequest
|
|
25147
|
+
*/
|
|
25148
|
+
'message'?: string;
|
|
25149
|
+
/**
|
|
25150
|
+
*
|
|
25151
|
+
* @type {string}
|
|
25152
|
+
* @memberof DataTypesNotifyOrgRequest
|
|
25153
|
+
*/
|
|
25154
|
+
'subject'?: string;
|
|
25155
|
+
}
|
|
24783
25156
|
/**
|
|
24784
25157
|
*
|
|
24785
25158
|
* @export
|
|
@@ -24929,6 +25302,97 @@ export interface DataTypesOfficialSearchResult {
|
|
|
24929
25302
|
*/
|
|
24930
25303
|
'score'?: number;
|
|
24931
25304
|
}
|
|
25305
|
+
/**
|
|
25306
|
+
*
|
|
25307
|
+
* @export
|
|
25308
|
+
* @interface DataTypesOfflinePaymentResponse
|
|
25309
|
+
*/
|
|
25310
|
+
export interface DataTypesOfflinePaymentResponse {
|
|
25311
|
+
/**
|
|
25312
|
+
*
|
|
25313
|
+
* @type {number}
|
|
25314
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25315
|
+
*/
|
|
25316
|
+
'amount'?: number;
|
|
25317
|
+
/**
|
|
25318
|
+
*
|
|
25319
|
+
* @type {string}
|
|
25320
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25321
|
+
*/
|
|
25322
|
+
'created_at'?: string;
|
|
25323
|
+
/**
|
|
25324
|
+
*
|
|
25325
|
+
* @type {string}
|
|
25326
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25327
|
+
*/
|
|
25328
|
+
'currency'?: string;
|
|
25329
|
+
/**
|
|
25330
|
+
*
|
|
25331
|
+
* @type {number}
|
|
25332
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25333
|
+
*/
|
|
25334
|
+
'id'?: number;
|
|
25335
|
+
/**
|
|
25336
|
+
*
|
|
25337
|
+
* @type {string}
|
|
25338
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25339
|
+
*/
|
|
25340
|
+
'notes'?: string;
|
|
25341
|
+
/**
|
|
25342
|
+
*
|
|
25343
|
+
* @type {number}
|
|
25344
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25345
|
+
*/
|
|
25346
|
+
'org_id'?: number;
|
|
25347
|
+
/**
|
|
25348
|
+
* YYYY-MM-DD format
|
|
25349
|
+
* @type {string}
|
|
25350
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25351
|
+
*/
|
|
25352
|
+
'payment_date'?: string;
|
|
25353
|
+
/**
|
|
25354
|
+
*
|
|
25355
|
+
* @type {string}
|
|
25356
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25357
|
+
*/
|
|
25358
|
+
'payment_method'?: string;
|
|
25359
|
+
/**
|
|
25360
|
+
*
|
|
25361
|
+
* @type {number}
|
|
25362
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25363
|
+
*/
|
|
25364
|
+
'plan_id'?: number;
|
|
25365
|
+
/**
|
|
25366
|
+
*
|
|
25367
|
+
* @type {string}
|
|
25368
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25369
|
+
*/
|
|
25370
|
+
'reference_number'?: string;
|
|
25371
|
+
/**
|
|
25372
|
+
*
|
|
25373
|
+
* @type {string}
|
|
25374
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25375
|
+
*/
|
|
25376
|
+
'status'?: string;
|
|
25377
|
+
/**
|
|
25378
|
+
*
|
|
25379
|
+
* @type {number}
|
|
25380
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25381
|
+
*/
|
|
25382
|
+
'subscription_id'?: number;
|
|
25383
|
+
/**
|
|
25384
|
+
*
|
|
25385
|
+
* @type {string}
|
|
25386
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25387
|
+
*/
|
|
25388
|
+
'verified_at'?: string;
|
|
25389
|
+
/**
|
|
25390
|
+
*
|
|
25391
|
+
* @type {number}
|
|
25392
|
+
* @memberof DataTypesOfflinePaymentResponse
|
|
25393
|
+
*/
|
|
25394
|
+
'verified_by_user_id'?: number;
|
|
25395
|
+
}
|
|
24932
25396
|
/**
|
|
24933
25397
|
*
|
|
24934
25398
|
* @export
|
|
@@ -26488,6 +26952,164 @@ export interface DataTypesPayment {
|
|
|
26488
26952
|
*/
|
|
26489
26953
|
'transactionId'?: string;
|
|
26490
26954
|
}
|
|
26955
|
+
/**
|
|
26956
|
+
*
|
|
26957
|
+
* @export
|
|
26958
|
+
* @interface DataTypesPaymentLinkListResponse
|
|
26959
|
+
*/
|
|
26960
|
+
export interface DataTypesPaymentLinkListResponse {
|
|
26961
|
+
/**
|
|
26962
|
+
*
|
|
26963
|
+
* @type {Array<DataTypesPaymentLinkResponse>}
|
|
26964
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26965
|
+
*/
|
|
26966
|
+
'data'?: Array<DataTypesPaymentLinkResponse>;
|
|
26967
|
+
/**
|
|
26968
|
+
*
|
|
26969
|
+
* @type {string}
|
|
26970
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26971
|
+
*/
|
|
26972
|
+
'message'?: string;
|
|
26973
|
+
/**
|
|
26974
|
+
*
|
|
26975
|
+
* @type {number}
|
|
26976
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26977
|
+
*/
|
|
26978
|
+
'page'?: number;
|
|
26979
|
+
/**
|
|
26980
|
+
*
|
|
26981
|
+
* @type {number}
|
|
26982
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26983
|
+
*/
|
|
26984
|
+
'page_size'?: number;
|
|
26985
|
+
/**
|
|
26986
|
+
*
|
|
26987
|
+
* @type {number}
|
|
26988
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26989
|
+
*/
|
|
26990
|
+
'status'?: number;
|
|
26991
|
+
/**
|
|
26992
|
+
*
|
|
26993
|
+
* @type {number}
|
|
26994
|
+
* @memberof DataTypesPaymentLinkListResponse
|
|
26995
|
+
*/
|
|
26996
|
+
'total'?: number;
|
|
26997
|
+
}
|
|
26998
|
+
/**
|
|
26999
|
+
*
|
|
27000
|
+
* @export
|
|
27001
|
+
* @interface DataTypesPaymentLinkResponse
|
|
27002
|
+
*/
|
|
27003
|
+
export interface DataTypesPaymentLinkResponse {
|
|
27004
|
+
/**
|
|
27005
|
+
*
|
|
27006
|
+
* @type {number}
|
|
27007
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27008
|
+
*/
|
|
27009
|
+
'amount'?: number;
|
|
27010
|
+
/**
|
|
27011
|
+
*
|
|
27012
|
+
* @type {string}
|
|
27013
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27014
|
+
*/
|
|
27015
|
+
'created_at'?: string;
|
|
27016
|
+
/**
|
|
27017
|
+
*
|
|
27018
|
+
* @type {number}
|
|
27019
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27020
|
+
*/
|
|
27021
|
+
'created_by_user_id'?: number;
|
|
27022
|
+
/**
|
|
27023
|
+
*
|
|
27024
|
+
* @type {string}
|
|
27025
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27026
|
+
*/
|
|
27027
|
+
'currency'?: string;
|
|
27028
|
+
/**
|
|
27029
|
+
*
|
|
27030
|
+
* @type {string}
|
|
27031
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27032
|
+
*/
|
|
27033
|
+
'expires_at'?: string;
|
|
27034
|
+
/**
|
|
27035
|
+
*
|
|
27036
|
+
* @type {string}
|
|
27037
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27038
|
+
*/
|
|
27039
|
+
'gateway'?: string;
|
|
27040
|
+
/**
|
|
27041
|
+
*
|
|
27042
|
+
* @type {string}
|
|
27043
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27044
|
+
*/
|
|
27045
|
+
'gateway_data'?: string;
|
|
27046
|
+
/**
|
|
27047
|
+
*
|
|
27048
|
+
* @type {string}
|
|
27049
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27050
|
+
*/
|
|
27051
|
+
'gateway_link_id'?: string;
|
|
27052
|
+
/**
|
|
27053
|
+
*
|
|
27054
|
+
* @type {string}
|
|
27055
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27056
|
+
*/
|
|
27057
|
+
'gateway_link_url'?: string;
|
|
27058
|
+
/**
|
|
27059
|
+
*
|
|
27060
|
+
* @type {number}
|
|
27061
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27062
|
+
*/
|
|
27063
|
+
'id'?: number;
|
|
27064
|
+
/**
|
|
27065
|
+
*
|
|
27066
|
+
* @type {string}
|
|
27067
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27068
|
+
*/
|
|
27069
|
+
'notes'?: string;
|
|
27070
|
+
/**
|
|
27071
|
+
*
|
|
27072
|
+
* @type {number}
|
|
27073
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27074
|
+
*/
|
|
27075
|
+
'order_id'?: number;
|
|
27076
|
+
/**
|
|
27077
|
+
*
|
|
27078
|
+
* @type {number}
|
|
27079
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27080
|
+
*/
|
|
27081
|
+
'org_id'?: number;
|
|
27082
|
+
/**
|
|
27083
|
+
*
|
|
27084
|
+
* @type {string}
|
|
27085
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27086
|
+
*/
|
|
27087
|
+
'paid_at'?: string;
|
|
27088
|
+
/**
|
|
27089
|
+
*
|
|
27090
|
+
* @type {number}
|
|
27091
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27092
|
+
*/
|
|
27093
|
+
'plan_id'?: number;
|
|
27094
|
+
/**
|
|
27095
|
+
*
|
|
27096
|
+
* @type {string}
|
|
27097
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27098
|
+
*/
|
|
27099
|
+
'short_url'?: string;
|
|
27100
|
+
/**
|
|
27101
|
+
*
|
|
27102
|
+
* @type {string}
|
|
27103
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27104
|
+
*/
|
|
27105
|
+
'status'?: string;
|
|
27106
|
+
/**
|
|
27107
|
+
*
|
|
27108
|
+
* @type {string}
|
|
27109
|
+
* @memberof DataTypesPaymentLinkResponse
|
|
27110
|
+
*/
|
|
27111
|
+
'updated_at'?: string;
|
|
27112
|
+
}
|
|
26491
27113
|
/**
|
|
26492
27114
|
*
|
|
26493
27115
|
* @export
|
|
@@ -32738,6 +33360,67 @@ export interface DataTypesUpdateAnalyticsRuleRequest {
|
|
|
32738
33360
|
*/
|
|
32739
33361
|
'rule_config'?: DataTypesRuleConfig;
|
|
32740
33362
|
}
|
|
33363
|
+
/**
|
|
33364
|
+
*
|
|
33365
|
+
* @export
|
|
33366
|
+
* @interface DataTypesUpdateCustomPlanRequest
|
|
33367
|
+
*/
|
|
33368
|
+
export interface DataTypesUpdateCustomPlanRequest {
|
|
33369
|
+
/**
|
|
33370
|
+
*
|
|
33371
|
+
* @type {number}
|
|
33372
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33373
|
+
*/
|
|
33374
|
+
'bonus_credits'?: number;
|
|
33375
|
+
/**
|
|
33376
|
+
*
|
|
33377
|
+
* @type {string}
|
|
33378
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33379
|
+
*/
|
|
33380
|
+
'description'?: string;
|
|
33381
|
+
/**
|
|
33382
|
+
*
|
|
33383
|
+
* @type {string}
|
|
33384
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33385
|
+
*/
|
|
33386
|
+
'highlights'?: string;
|
|
33387
|
+
/**
|
|
33388
|
+
*
|
|
33389
|
+
* @type {boolean}
|
|
33390
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33391
|
+
*/
|
|
33392
|
+
'is_active'?: boolean;
|
|
33393
|
+
/**
|
|
33394
|
+
*
|
|
33395
|
+
* @type {string}
|
|
33396
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33397
|
+
*/
|
|
33398
|
+
'notes'?: string;
|
|
33399
|
+
/**
|
|
33400
|
+
*
|
|
33401
|
+
* @type {string}
|
|
33402
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33403
|
+
*/
|
|
33404
|
+
'plan_features'?: string;
|
|
33405
|
+
/**
|
|
33406
|
+
*
|
|
33407
|
+
* @type {string}
|
|
33408
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33409
|
+
*/
|
|
33410
|
+
'plan_name'?: string;
|
|
33411
|
+
/**
|
|
33412
|
+
*
|
|
33413
|
+
* @type {number}
|
|
33414
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33415
|
+
*/
|
|
33416
|
+
'price'?: number;
|
|
33417
|
+
/**
|
|
33418
|
+
*
|
|
33419
|
+
* @type {number}
|
|
33420
|
+
* @memberof DataTypesUpdateCustomPlanRequest
|
|
33421
|
+
*/
|
|
33422
|
+
'total_credits'?: number;
|
|
33423
|
+
}
|
|
32741
33424
|
/**
|
|
32742
33425
|
*
|
|
32743
33426
|
* @export
|
|
@@ -53966,6 +54649,978 @@ export class AutomatedRefundManagementApi extends BaseAPI {
|
|
|
53966
54649
|
|
|
53967
54650
|
|
|
53968
54651
|
|
|
54652
|
+
/**
|
|
54653
|
+
* BackofficeCustomPlansApi - axios parameter creator
|
|
54654
|
+
* @export
|
|
54655
|
+
*/
|
|
54656
|
+
export const BackofficeCustomPlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
54657
|
+
return {
|
|
54658
|
+
/**
|
|
54659
|
+
* Returns a paginated, filterable list of custom enterprise plans
|
|
54660
|
+
* @summary List custom plans
|
|
54661
|
+
* @param {number} [page] Page number
|
|
54662
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
54663
|
+
* @param {number} [orgId] Filter by organization ID
|
|
54664
|
+
* @param {string} [status] Filter by status (active, inactive, all)
|
|
54665
|
+
* @param {string} [search] Search by plan name or org name
|
|
54666
|
+
* @param {*} [options] Override http request option.
|
|
54667
|
+
* @throws {RequiredError}
|
|
54668
|
+
*/
|
|
54669
|
+
backofficePlansCustomGet: async (page?: number, pageSize?: number, orgId?: number, status?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54670
|
+
const localVarPath = `/backoffice/plans/custom`;
|
|
54671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54672
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54673
|
+
let baseOptions;
|
|
54674
|
+
if (configuration) {
|
|
54675
|
+
baseOptions = configuration.baseOptions;
|
|
54676
|
+
}
|
|
54677
|
+
|
|
54678
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54679
|
+
const localVarHeaderParameter = {} as any;
|
|
54680
|
+
const localVarQueryParameter = {} as any;
|
|
54681
|
+
|
|
54682
|
+
// authentication ApiKeyAuth required
|
|
54683
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54684
|
+
|
|
54685
|
+
if (page !== undefined) {
|
|
54686
|
+
localVarQueryParameter['page'] = page;
|
|
54687
|
+
}
|
|
54688
|
+
|
|
54689
|
+
if (pageSize !== undefined) {
|
|
54690
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
54691
|
+
}
|
|
54692
|
+
|
|
54693
|
+
if (orgId !== undefined) {
|
|
54694
|
+
localVarQueryParameter['org_id'] = orgId;
|
|
54695
|
+
}
|
|
54696
|
+
|
|
54697
|
+
if (status !== undefined) {
|
|
54698
|
+
localVarQueryParameter['status'] = status;
|
|
54699
|
+
}
|
|
54700
|
+
|
|
54701
|
+
if (search !== undefined) {
|
|
54702
|
+
localVarQueryParameter['search'] = search;
|
|
54703
|
+
}
|
|
54704
|
+
|
|
54705
|
+
|
|
54706
|
+
|
|
54707
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54709
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54710
|
+
|
|
54711
|
+
return {
|
|
54712
|
+
url: toPathString(localVarUrlObj),
|
|
54713
|
+
options: localVarRequestOptions,
|
|
54714
|
+
};
|
|
54715
|
+
},
|
|
54716
|
+
/**
|
|
54717
|
+
* Deactivates a custom enterprise plan by setting is_active to false
|
|
54718
|
+
* @summary Soft-delete a custom plan
|
|
54719
|
+
* @param {number} id Custom plan ID
|
|
54720
|
+
* @param {*} [options] Override http request option.
|
|
54721
|
+
* @throws {RequiredError}
|
|
54722
|
+
*/
|
|
54723
|
+
backofficePlansCustomIdDelete: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54724
|
+
// verify required parameter 'id' is not null or undefined
|
|
54725
|
+
assertParamExists('backofficePlansCustomIdDelete', 'id', id)
|
|
54726
|
+
const localVarPath = `/backoffice/plans/custom/{id}`
|
|
54727
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54728
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54729
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54730
|
+
let baseOptions;
|
|
54731
|
+
if (configuration) {
|
|
54732
|
+
baseOptions = configuration.baseOptions;
|
|
54733
|
+
}
|
|
54734
|
+
|
|
54735
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
54736
|
+
const localVarHeaderParameter = {} as any;
|
|
54737
|
+
const localVarQueryParameter = {} as any;
|
|
54738
|
+
|
|
54739
|
+
// authentication ApiKeyAuth required
|
|
54740
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54741
|
+
|
|
54742
|
+
|
|
54743
|
+
|
|
54744
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54745
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54746
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54747
|
+
|
|
54748
|
+
return {
|
|
54749
|
+
url: toPathString(localVarUrlObj),
|
|
54750
|
+
options: localVarRequestOptions,
|
|
54751
|
+
};
|
|
54752
|
+
},
|
|
54753
|
+
/**
|
|
54754
|
+
* Retrieves a single custom enterprise plan by its ID
|
|
54755
|
+
* @summary Get a custom plan by ID
|
|
54756
|
+
* @param {number} id Custom plan ID
|
|
54757
|
+
* @param {*} [options] Override http request option.
|
|
54758
|
+
* @throws {RequiredError}
|
|
54759
|
+
*/
|
|
54760
|
+
backofficePlansCustomIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54761
|
+
// verify required parameter 'id' is not null or undefined
|
|
54762
|
+
assertParamExists('backofficePlansCustomIdGet', 'id', id)
|
|
54763
|
+
const localVarPath = `/backoffice/plans/custom/{id}`
|
|
54764
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54766
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54767
|
+
let baseOptions;
|
|
54768
|
+
if (configuration) {
|
|
54769
|
+
baseOptions = configuration.baseOptions;
|
|
54770
|
+
}
|
|
54771
|
+
|
|
54772
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54773
|
+
const localVarHeaderParameter = {} as any;
|
|
54774
|
+
const localVarQueryParameter = {} as any;
|
|
54775
|
+
|
|
54776
|
+
// authentication ApiKeyAuth required
|
|
54777
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54778
|
+
|
|
54779
|
+
|
|
54780
|
+
|
|
54781
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54783
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54784
|
+
|
|
54785
|
+
return {
|
|
54786
|
+
url: toPathString(localVarUrlObj),
|
|
54787
|
+
options: localVarRequestOptions,
|
|
54788
|
+
};
|
|
54789
|
+
},
|
|
54790
|
+
/**
|
|
54791
|
+
* Records a manual/offline payment for a custom plan, creates subscription and allocates credits
|
|
54792
|
+
* @summary Mark a custom plan as paid (offline payment)
|
|
54793
|
+
* @param {number} id Custom plan ID
|
|
54794
|
+
* @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
|
|
54795
|
+
* @param {*} [options] Override http request option.
|
|
54796
|
+
* @throws {RequiredError}
|
|
54797
|
+
*/
|
|
54798
|
+
backofficePlansCustomIdMarkPaidPost: async (id: number, dataTypesMarkPaidRequest: DataTypesMarkPaidRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54799
|
+
// verify required parameter 'id' is not null or undefined
|
|
54800
|
+
assertParamExists('backofficePlansCustomIdMarkPaidPost', 'id', id)
|
|
54801
|
+
// verify required parameter 'dataTypesMarkPaidRequest' is not null or undefined
|
|
54802
|
+
assertParamExists('backofficePlansCustomIdMarkPaidPost', 'dataTypesMarkPaidRequest', dataTypesMarkPaidRequest)
|
|
54803
|
+
const localVarPath = `/backoffice/plans/custom/{id}/mark-paid`
|
|
54804
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54807
|
+
let baseOptions;
|
|
54808
|
+
if (configuration) {
|
|
54809
|
+
baseOptions = configuration.baseOptions;
|
|
54810
|
+
}
|
|
54811
|
+
|
|
54812
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54813
|
+
const localVarHeaderParameter = {} as any;
|
|
54814
|
+
const localVarQueryParameter = {} as any;
|
|
54815
|
+
|
|
54816
|
+
// authentication ApiKeyAuth required
|
|
54817
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54818
|
+
|
|
54819
|
+
|
|
54820
|
+
|
|
54821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54822
|
+
|
|
54823
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54825
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54826
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesMarkPaidRequest, localVarRequestOptions, configuration)
|
|
54827
|
+
|
|
54828
|
+
return {
|
|
54829
|
+
url: toPathString(localVarUrlObj),
|
|
54830
|
+
options: localVarRequestOptions,
|
|
54831
|
+
};
|
|
54832
|
+
},
|
|
54833
|
+
/**
|
|
54834
|
+
* Sends a notification to the organization regarding their custom plan
|
|
54835
|
+
* @summary Send notification to org about custom plan
|
|
54836
|
+
* @param {number} id Custom plan ID
|
|
54837
|
+
* @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
|
|
54838
|
+
* @param {*} [options] Override http request option.
|
|
54839
|
+
* @throws {RequiredError}
|
|
54840
|
+
*/
|
|
54841
|
+
backofficePlansCustomIdNotifyPost: async (id: number, dataTypesNotifyOrgRequest?: DataTypesNotifyOrgRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54842
|
+
// verify required parameter 'id' is not null or undefined
|
|
54843
|
+
assertParamExists('backofficePlansCustomIdNotifyPost', 'id', id)
|
|
54844
|
+
const localVarPath = `/backoffice/plans/custom/{id}/notify`
|
|
54845
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54848
|
+
let baseOptions;
|
|
54849
|
+
if (configuration) {
|
|
54850
|
+
baseOptions = configuration.baseOptions;
|
|
54851
|
+
}
|
|
54852
|
+
|
|
54853
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54854
|
+
const localVarHeaderParameter = {} as any;
|
|
54855
|
+
const localVarQueryParameter = {} as any;
|
|
54856
|
+
|
|
54857
|
+
// authentication ApiKeyAuth required
|
|
54858
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54859
|
+
|
|
54860
|
+
|
|
54861
|
+
|
|
54862
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54863
|
+
|
|
54864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54866
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54867
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesNotifyOrgRequest, localVarRequestOptions, configuration)
|
|
54868
|
+
|
|
54869
|
+
return {
|
|
54870
|
+
url: toPathString(localVarUrlObj),
|
|
54871
|
+
options: localVarRequestOptions,
|
|
54872
|
+
};
|
|
54873
|
+
},
|
|
54874
|
+
/**
|
|
54875
|
+
* Creates a payment link via the specified gateway for a custom plan
|
|
54876
|
+
* @summary Generate a payment link for a custom plan
|
|
54877
|
+
* @param {number} id Custom plan ID
|
|
54878
|
+
* @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
|
|
54879
|
+
* @param {*} [options] Override http request option.
|
|
54880
|
+
* @throws {RequiredError}
|
|
54881
|
+
*/
|
|
54882
|
+
backofficePlansCustomIdPaymentLinkPost: async (id: number, dataTypesGeneratePaymentLinkRequest: DataTypesGeneratePaymentLinkRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54883
|
+
// verify required parameter 'id' is not null or undefined
|
|
54884
|
+
assertParamExists('backofficePlansCustomIdPaymentLinkPost', 'id', id)
|
|
54885
|
+
// verify required parameter 'dataTypesGeneratePaymentLinkRequest' is not null or undefined
|
|
54886
|
+
assertParamExists('backofficePlansCustomIdPaymentLinkPost', 'dataTypesGeneratePaymentLinkRequest', dataTypesGeneratePaymentLinkRequest)
|
|
54887
|
+
const localVarPath = `/backoffice/plans/custom/{id}/payment-link`
|
|
54888
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54889
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54890
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54891
|
+
let baseOptions;
|
|
54892
|
+
if (configuration) {
|
|
54893
|
+
baseOptions = configuration.baseOptions;
|
|
54894
|
+
}
|
|
54895
|
+
|
|
54896
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54897
|
+
const localVarHeaderParameter = {} as any;
|
|
54898
|
+
const localVarQueryParameter = {} as any;
|
|
54899
|
+
|
|
54900
|
+
// authentication ApiKeyAuth required
|
|
54901
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54902
|
+
|
|
54903
|
+
|
|
54904
|
+
|
|
54905
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54906
|
+
|
|
54907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54909
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54910
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGeneratePaymentLinkRequest, localVarRequestOptions, configuration)
|
|
54911
|
+
|
|
54912
|
+
return {
|
|
54913
|
+
url: toPathString(localVarUrlObj),
|
|
54914
|
+
options: localVarRequestOptions,
|
|
54915
|
+
};
|
|
54916
|
+
},
|
|
54917
|
+
/**
|
|
54918
|
+
* Updates the specified fields of a custom enterprise plan
|
|
54919
|
+
* @summary Update a custom plan
|
|
54920
|
+
* @param {number} id Custom plan ID
|
|
54921
|
+
* @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
|
|
54922
|
+
* @param {*} [options] Override http request option.
|
|
54923
|
+
* @throws {RequiredError}
|
|
54924
|
+
*/
|
|
54925
|
+
backofficePlansCustomIdPut: async (id: number, dataTypesUpdateCustomPlanRequest: DataTypesUpdateCustomPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54926
|
+
// verify required parameter 'id' is not null or undefined
|
|
54927
|
+
assertParamExists('backofficePlansCustomIdPut', 'id', id)
|
|
54928
|
+
// verify required parameter 'dataTypesUpdateCustomPlanRequest' is not null or undefined
|
|
54929
|
+
assertParamExists('backofficePlansCustomIdPut', 'dataTypesUpdateCustomPlanRequest', dataTypesUpdateCustomPlanRequest)
|
|
54930
|
+
const localVarPath = `/backoffice/plans/custom/{id}`
|
|
54931
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
54932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54934
|
+
let baseOptions;
|
|
54935
|
+
if (configuration) {
|
|
54936
|
+
baseOptions = configuration.baseOptions;
|
|
54937
|
+
}
|
|
54938
|
+
|
|
54939
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
54940
|
+
const localVarHeaderParameter = {} as any;
|
|
54941
|
+
const localVarQueryParameter = {} as any;
|
|
54942
|
+
|
|
54943
|
+
// authentication ApiKeyAuth required
|
|
54944
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54945
|
+
|
|
54946
|
+
|
|
54947
|
+
|
|
54948
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54949
|
+
|
|
54950
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54952
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54953
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateCustomPlanRequest, localVarRequestOptions, configuration)
|
|
54954
|
+
|
|
54955
|
+
return {
|
|
54956
|
+
url: toPathString(localVarUrlObj),
|
|
54957
|
+
options: localVarRequestOptions,
|
|
54958
|
+
};
|
|
54959
|
+
},
|
|
54960
|
+
/**
|
|
54961
|
+
* Creates a new custom enterprise plan for a specific organization
|
|
54962
|
+
* @summary Create a custom enterprise plan
|
|
54963
|
+
* @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
|
|
54964
|
+
* @param {*} [options] Override http request option.
|
|
54965
|
+
* @throws {RequiredError}
|
|
54966
|
+
*/
|
|
54967
|
+
backofficePlansCustomPost: async (dataTypesCreateCustomPlanRequest: DataTypesCreateCustomPlanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54968
|
+
// verify required parameter 'dataTypesCreateCustomPlanRequest' is not null or undefined
|
|
54969
|
+
assertParamExists('backofficePlansCustomPost', 'dataTypesCreateCustomPlanRequest', dataTypesCreateCustomPlanRequest)
|
|
54970
|
+
const localVarPath = `/backoffice/plans/custom`;
|
|
54971
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54972
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54973
|
+
let baseOptions;
|
|
54974
|
+
if (configuration) {
|
|
54975
|
+
baseOptions = configuration.baseOptions;
|
|
54976
|
+
}
|
|
54977
|
+
|
|
54978
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54979
|
+
const localVarHeaderParameter = {} as any;
|
|
54980
|
+
const localVarQueryParameter = {} as any;
|
|
54981
|
+
|
|
54982
|
+
// authentication ApiKeyAuth required
|
|
54983
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
54984
|
+
|
|
54985
|
+
|
|
54986
|
+
|
|
54987
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54988
|
+
|
|
54989
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54991
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54992
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateCustomPlanRequest, localVarRequestOptions, configuration)
|
|
54993
|
+
|
|
54994
|
+
return {
|
|
54995
|
+
url: toPathString(localVarUrlObj),
|
|
54996
|
+
options: localVarRequestOptions,
|
|
54997
|
+
};
|
|
54998
|
+
},
|
|
54999
|
+
}
|
|
55000
|
+
};
|
|
55001
|
+
|
|
55002
|
+
/**
|
|
55003
|
+
* BackofficeCustomPlansApi - functional programming interface
|
|
55004
|
+
* @export
|
|
55005
|
+
*/
|
|
55006
|
+
export const BackofficeCustomPlansApiFp = function(configuration?: Configuration) {
|
|
55007
|
+
const localVarAxiosParamCreator = BackofficeCustomPlansApiAxiosParamCreator(configuration)
|
|
55008
|
+
return {
|
|
55009
|
+
/**
|
|
55010
|
+
* Returns a paginated, filterable list of custom enterprise plans
|
|
55011
|
+
* @summary List custom plans
|
|
55012
|
+
* @param {number} [page] Page number
|
|
55013
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55014
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55015
|
+
* @param {string} [status] Filter by status (active, inactive, all)
|
|
55016
|
+
* @param {string} [search] Search by plan name or org name
|
|
55017
|
+
* @param {*} [options] Override http request option.
|
|
55018
|
+
* @throws {RequiredError}
|
|
55019
|
+
*/
|
|
55020
|
+
async backofficePlansCustomGet(page?: number, pageSize?: number, orgId?: number, status?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomPlanListResponse>> {
|
|
55021
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomGet(page, pageSize, orgId, status, search, options);
|
|
55022
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55023
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomGet']?.[localVarOperationServerIndex]?.url;
|
|
55024
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55025
|
+
},
|
|
55026
|
+
/**
|
|
55027
|
+
* Deactivates a custom enterprise plan by setting is_active to false
|
|
55028
|
+
* @summary Soft-delete a custom plan
|
|
55029
|
+
* @param {number} id Custom plan ID
|
|
55030
|
+
* @param {*} [options] Override http request option.
|
|
55031
|
+
* @throws {RequiredError}
|
|
55032
|
+
*/
|
|
55033
|
+
async backofficePlansCustomIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
55034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdDelete(id, options);
|
|
55035
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55036
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
55037
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55038
|
+
},
|
|
55039
|
+
/**
|
|
55040
|
+
* Retrieves a single custom enterprise plan by its ID
|
|
55041
|
+
* @summary Get a custom plan by ID
|
|
55042
|
+
* @param {number} id Custom plan ID
|
|
55043
|
+
* @param {*} [options] Override http request option.
|
|
55044
|
+
* @throws {RequiredError}
|
|
55045
|
+
*/
|
|
55046
|
+
async backofficePlansCustomIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomPlanResponse>> {
|
|
55047
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdGet(id, options);
|
|
55048
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55049
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdGet']?.[localVarOperationServerIndex]?.url;
|
|
55050
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55051
|
+
},
|
|
55052
|
+
/**
|
|
55053
|
+
* Records a manual/offline payment for a custom plan, creates subscription and allocates credits
|
|
55054
|
+
* @summary Mark a custom plan as paid (offline payment)
|
|
55055
|
+
* @param {number} id Custom plan ID
|
|
55056
|
+
* @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
|
|
55057
|
+
* @param {*} [options] Override http request option.
|
|
55058
|
+
* @throws {RequiredError}
|
|
55059
|
+
*/
|
|
55060
|
+
async backofficePlansCustomIdMarkPaidPost(id: number, dataTypesMarkPaidRequest: DataTypesMarkPaidRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfflinePaymentResponse>> {
|
|
55061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options);
|
|
55062
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55063
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdMarkPaidPost']?.[localVarOperationServerIndex]?.url;
|
|
55064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55065
|
+
},
|
|
55066
|
+
/**
|
|
55067
|
+
* Sends a notification to the organization regarding their custom plan
|
|
55068
|
+
* @summary Send notification to org about custom plan
|
|
55069
|
+
* @param {number} id Custom plan ID
|
|
55070
|
+
* @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
|
|
55071
|
+
* @param {*} [options] Override http request option.
|
|
55072
|
+
* @throws {RequiredError}
|
|
55073
|
+
*/
|
|
55074
|
+
async backofficePlansCustomIdNotifyPost(id: number, dataTypesNotifyOrgRequest?: DataTypesNotifyOrgRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
55075
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options);
|
|
55076
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55077
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdNotifyPost']?.[localVarOperationServerIndex]?.url;
|
|
55078
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55079
|
+
},
|
|
55080
|
+
/**
|
|
55081
|
+
* Creates a payment link via the specified gateway for a custom plan
|
|
55082
|
+
* @summary Generate a payment link for a custom plan
|
|
55083
|
+
* @param {number} id Custom plan ID
|
|
55084
|
+
* @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
|
|
55085
|
+
* @param {*} [options] Override http request option.
|
|
55086
|
+
* @throws {RequiredError}
|
|
55087
|
+
*/
|
|
55088
|
+
async backofficePlansCustomIdPaymentLinkPost(id: number, dataTypesGeneratePaymentLinkRequest: DataTypesGeneratePaymentLinkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentLinkResponse>> {
|
|
55089
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options);
|
|
55090
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55091
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdPaymentLinkPost']?.[localVarOperationServerIndex]?.url;
|
|
55092
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55093
|
+
},
|
|
55094
|
+
/**
|
|
55095
|
+
* Updates the specified fields of a custom enterprise plan
|
|
55096
|
+
* @summary Update a custom plan
|
|
55097
|
+
* @param {number} id Custom plan ID
|
|
55098
|
+
* @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
|
|
55099
|
+
* @param {*} [options] Override http request option.
|
|
55100
|
+
* @throws {RequiredError}
|
|
55101
|
+
*/
|
|
55102
|
+
async backofficePlansCustomIdPut(id: number, dataTypesUpdateCustomPlanRequest: DataTypesUpdateCustomPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomPlanResponse>> {
|
|
55103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options);
|
|
55104
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55105
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomIdPut']?.[localVarOperationServerIndex]?.url;
|
|
55106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55107
|
+
},
|
|
55108
|
+
/**
|
|
55109
|
+
* Creates a new custom enterprise plan for a specific organization
|
|
55110
|
+
* @summary Create a custom enterprise plan
|
|
55111
|
+
* @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
|
|
55112
|
+
* @param {*} [options] Override http request option.
|
|
55113
|
+
* @throws {RequiredError}
|
|
55114
|
+
*/
|
|
55115
|
+
async backofficePlansCustomPost(dataTypesCreateCustomPlanRequest: DataTypesCreateCustomPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCustomPlanResponse>> {
|
|
55116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options);
|
|
55117
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55118
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficeCustomPlansApi.backofficePlansCustomPost']?.[localVarOperationServerIndex]?.url;
|
|
55119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55120
|
+
},
|
|
55121
|
+
}
|
|
55122
|
+
};
|
|
55123
|
+
|
|
55124
|
+
/**
|
|
55125
|
+
* BackofficeCustomPlansApi - factory interface
|
|
55126
|
+
* @export
|
|
55127
|
+
*/
|
|
55128
|
+
export const BackofficeCustomPlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
55129
|
+
const localVarFp = BackofficeCustomPlansApiFp(configuration)
|
|
55130
|
+
return {
|
|
55131
|
+
/**
|
|
55132
|
+
* Returns a paginated, filterable list of custom enterprise plans
|
|
55133
|
+
* @summary List custom plans
|
|
55134
|
+
* @param {number} [page] Page number
|
|
55135
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55136
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55137
|
+
* @param {string} [status] Filter by status (active, inactive, all)
|
|
55138
|
+
* @param {string} [search] Search by plan name or org name
|
|
55139
|
+
* @param {*} [options] Override http request option.
|
|
55140
|
+
* @throws {RequiredError}
|
|
55141
|
+
*/
|
|
55142
|
+
backofficePlansCustomGet(page?: number, pageSize?: number, orgId?: number, status?: string, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomPlanListResponse> {
|
|
55143
|
+
return localVarFp.backofficePlansCustomGet(page, pageSize, orgId, status, search, options).then((request) => request(axios, basePath));
|
|
55144
|
+
},
|
|
55145
|
+
/**
|
|
55146
|
+
* Deactivates a custom enterprise plan by setting is_active to false
|
|
55147
|
+
* @summary Soft-delete a custom plan
|
|
55148
|
+
* @param {number} id Custom plan ID
|
|
55149
|
+
* @param {*} [options] Override http request option.
|
|
55150
|
+
* @throws {RequiredError}
|
|
55151
|
+
*/
|
|
55152
|
+
backofficePlansCustomIdDelete(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
55153
|
+
return localVarFp.backofficePlansCustomIdDelete(id, options).then((request) => request(axios, basePath));
|
|
55154
|
+
},
|
|
55155
|
+
/**
|
|
55156
|
+
* Retrieves a single custom enterprise plan by its ID
|
|
55157
|
+
* @summary Get a custom plan by ID
|
|
55158
|
+
* @param {number} id Custom plan ID
|
|
55159
|
+
* @param {*} [options] Override http request option.
|
|
55160
|
+
* @throws {RequiredError}
|
|
55161
|
+
*/
|
|
55162
|
+
backofficePlansCustomIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomPlanResponse> {
|
|
55163
|
+
return localVarFp.backofficePlansCustomIdGet(id, options).then((request) => request(axios, basePath));
|
|
55164
|
+
},
|
|
55165
|
+
/**
|
|
55166
|
+
* Records a manual/offline payment for a custom plan, creates subscription and allocates credits
|
|
55167
|
+
* @summary Mark a custom plan as paid (offline payment)
|
|
55168
|
+
* @param {number} id Custom plan ID
|
|
55169
|
+
* @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
|
|
55170
|
+
* @param {*} [options] Override http request option.
|
|
55171
|
+
* @throws {RequiredError}
|
|
55172
|
+
*/
|
|
55173
|
+
backofficePlansCustomIdMarkPaidPost(id: number, dataTypesMarkPaidRequest: DataTypesMarkPaidRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfflinePaymentResponse> {
|
|
55174
|
+
return localVarFp.backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options).then((request) => request(axios, basePath));
|
|
55175
|
+
},
|
|
55176
|
+
/**
|
|
55177
|
+
* Sends a notification to the organization regarding their custom plan
|
|
55178
|
+
* @summary Send notification to org about custom plan
|
|
55179
|
+
* @param {number} id Custom plan ID
|
|
55180
|
+
* @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
|
|
55181
|
+
* @param {*} [options] Override http request option.
|
|
55182
|
+
* @throws {RequiredError}
|
|
55183
|
+
*/
|
|
55184
|
+
backofficePlansCustomIdNotifyPost(id: number, dataTypesNotifyOrgRequest?: DataTypesNotifyOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
55185
|
+
return localVarFp.backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options).then((request) => request(axios, basePath));
|
|
55186
|
+
},
|
|
55187
|
+
/**
|
|
55188
|
+
* Creates a payment link via the specified gateway for a custom plan
|
|
55189
|
+
* @summary Generate a payment link for a custom plan
|
|
55190
|
+
* @param {number} id Custom plan ID
|
|
55191
|
+
* @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
|
|
55192
|
+
* @param {*} [options] Override http request option.
|
|
55193
|
+
* @throws {RequiredError}
|
|
55194
|
+
*/
|
|
55195
|
+
backofficePlansCustomIdPaymentLinkPost(id: number, dataTypesGeneratePaymentLinkRequest: DataTypesGeneratePaymentLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentLinkResponse> {
|
|
55196
|
+
return localVarFp.backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options).then((request) => request(axios, basePath));
|
|
55197
|
+
},
|
|
55198
|
+
/**
|
|
55199
|
+
* Updates the specified fields of a custom enterprise plan
|
|
55200
|
+
* @summary Update a custom plan
|
|
55201
|
+
* @param {number} id Custom plan ID
|
|
55202
|
+
* @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
|
|
55203
|
+
* @param {*} [options] Override http request option.
|
|
55204
|
+
* @throws {RequiredError}
|
|
55205
|
+
*/
|
|
55206
|
+
backofficePlansCustomIdPut(id: number, dataTypesUpdateCustomPlanRequest: DataTypesUpdateCustomPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomPlanResponse> {
|
|
55207
|
+
return localVarFp.backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options).then((request) => request(axios, basePath));
|
|
55208
|
+
},
|
|
55209
|
+
/**
|
|
55210
|
+
* Creates a new custom enterprise plan for a specific organization
|
|
55211
|
+
* @summary Create a custom enterprise plan
|
|
55212
|
+
* @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
|
|
55213
|
+
* @param {*} [options] Override http request option.
|
|
55214
|
+
* @throws {RequiredError}
|
|
55215
|
+
*/
|
|
55216
|
+
backofficePlansCustomPost(dataTypesCreateCustomPlanRequest: DataTypesCreateCustomPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCustomPlanResponse> {
|
|
55217
|
+
return localVarFp.backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options).then((request) => request(axios, basePath));
|
|
55218
|
+
},
|
|
55219
|
+
};
|
|
55220
|
+
};
|
|
55221
|
+
|
|
55222
|
+
/**
|
|
55223
|
+
* BackofficeCustomPlansApi - object-oriented interface
|
|
55224
|
+
* @export
|
|
55225
|
+
* @class BackofficeCustomPlansApi
|
|
55226
|
+
* @extends {BaseAPI}
|
|
55227
|
+
*/
|
|
55228
|
+
export class BackofficeCustomPlansApi extends BaseAPI {
|
|
55229
|
+
/**
|
|
55230
|
+
* Returns a paginated, filterable list of custom enterprise plans
|
|
55231
|
+
* @summary List custom plans
|
|
55232
|
+
* @param {number} [page] Page number
|
|
55233
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55234
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55235
|
+
* @param {string} [status] Filter by status (active, inactive, all)
|
|
55236
|
+
* @param {string} [search] Search by plan name or org name
|
|
55237
|
+
* @param {*} [options] Override http request option.
|
|
55238
|
+
* @throws {RequiredError}
|
|
55239
|
+
* @memberof BackofficeCustomPlansApi
|
|
55240
|
+
*/
|
|
55241
|
+
public backofficePlansCustomGet(page?: number, pageSize?: number, orgId?: number, status?: string, search?: string, options?: RawAxiosRequestConfig) {
|
|
55242
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomGet(page, pageSize, orgId, status, search, options).then((request) => request(this.axios, this.basePath));
|
|
55243
|
+
}
|
|
55244
|
+
|
|
55245
|
+
/**
|
|
55246
|
+
* Deactivates a custom enterprise plan by setting is_active to false
|
|
55247
|
+
* @summary Soft-delete a custom plan
|
|
55248
|
+
* @param {number} id Custom plan ID
|
|
55249
|
+
* @param {*} [options] Override http request option.
|
|
55250
|
+
* @throws {RequiredError}
|
|
55251
|
+
* @memberof BackofficeCustomPlansApi
|
|
55252
|
+
*/
|
|
55253
|
+
public backofficePlansCustomIdDelete(id: number, options?: RawAxiosRequestConfig) {
|
|
55254
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
55255
|
+
}
|
|
55256
|
+
|
|
55257
|
+
/**
|
|
55258
|
+
* Retrieves a single custom enterprise plan by its ID
|
|
55259
|
+
* @summary Get a custom plan by ID
|
|
55260
|
+
* @param {number} id Custom plan ID
|
|
55261
|
+
* @param {*} [options] Override http request option.
|
|
55262
|
+
* @throws {RequiredError}
|
|
55263
|
+
* @memberof BackofficeCustomPlansApi
|
|
55264
|
+
*/
|
|
55265
|
+
public backofficePlansCustomIdGet(id: number, options?: RawAxiosRequestConfig) {
|
|
55266
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
55267
|
+
}
|
|
55268
|
+
|
|
55269
|
+
/**
|
|
55270
|
+
* Records a manual/offline payment for a custom plan, creates subscription and allocates credits
|
|
55271
|
+
* @summary Mark a custom plan as paid (offline payment)
|
|
55272
|
+
* @param {number} id Custom plan ID
|
|
55273
|
+
* @param {DataTypesMarkPaidRequest} dataTypesMarkPaidRequest Offline payment details
|
|
55274
|
+
* @param {*} [options] Override http request option.
|
|
55275
|
+
* @throws {RequiredError}
|
|
55276
|
+
* @memberof BackofficeCustomPlansApi
|
|
55277
|
+
*/
|
|
55278
|
+
public backofficePlansCustomIdMarkPaidPost(id: number, dataTypesMarkPaidRequest: DataTypesMarkPaidRequest, options?: RawAxiosRequestConfig) {
|
|
55279
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdMarkPaidPost(id, dataTypesMarkPaidRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55280
|
+
}
|
|
55281
|
+
|
|
55282
|
+
/**
|
|
55283
|
+
* Sends a notification to the organization regarding their custom plan
|
|
55284
|
+
* @summary Send notification to org about custom plan
|
|
55285
|
+
* @param {number} id Custom plan ID
|
|
55286
|
+
* @param {DataTypesNotifyOrgRequest} [dataTypesNotifyOrgRequest] Notification options
|
|
55287
|
+
* @param {*} [options] Override http request option.
|
|
55288
|
+
* @throws {RequiredError}
|
|
55289
|
+
* @memberof BackofficeCustomPlansApi
|
|
55290
|
+
*/
|
|
55291
|
+
public backofficePlansCustomIdNotifyPost(id: number, dataTypesNotifyOrgRequest?: DataTypesNotifyOrgRequest, options?: RawAxiosRequestConfig) {
|
|
55292
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdNotifyPost(id, dataTypesNotifyOrgRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55293
|
+
}
|
|
55294
|
+
|
|
55295
|
+
/**
|
|
55296
|
+
* Creates a payment link via the specified gateway for a custom plan
|
|
55297
|
+
* @summary Generate a payment link for a custom plan
|
|
55298
|
+
* @param {number} id Custom plan ID
|
|
55299
|
+
* @param {DataTypesGeneratePaymentLinkRequest} dataTypesGeneratePaymentLinkRequest Payment link options
|
|
55300
|
+
* @param {*} [options] Override http request option.
|
|
55301
|
+
* @throws {RequiredError}
|
|
55302
|
+
* @memberof BackofficeCustomPlansApi
|
|
55303
|
+
*/
|
|
55304
|
+
public backofficePlansCustomIdPaymentLinkPost(id: number, dataTypesGeneratePaymentLinkRequest: DataTypesGeneratePaymentLinkRequest, options?: RawAxiosRequestConfig) {
|
|
55305
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdPaymentLinkPost(id, dataTypesGeneratePaymentLinkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55306
|
+
}
|
|
55307
|
+
|
|
55308
|
+
/**
|
|
55309
|
+
* Updates the specified fields of a custom enterprise plan
|
|
55310
|
+
* @summary Update a custom plan
|
|
55311
|
+
* @param {number} id Custom plan ID
|
|
55312
|
+
* @param {DataTypesUpdateCustomPlanRequest} dataTypesUpdateCustomPlanRequest Fields to update
|
|
55313
|
+
* @param {*} [options] Override http request option.
|
|
55314
|
+
* @throws {RequiredError}
|
|
55315
|
+
* @memberof BackofficeCustomPlansApi
|
|
55316
|
+
*/
|
|
55317
|
+
public backofficePlansCustomIdPut(id: number, dataTypesUpdateCustomPlanRequest: DataTypesUpdateCustomPlanRequest, options?: RawAxiosRequestConfig) {
|
|
55318
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomIdPut(id, dataTypesUpdateCustomPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55319
|
+
}
|
|
55320
|
+
|
|
55321
|
+
/**
|
|
55322
|
+
* Creates a new custom enterprise plan for a specific organization
|
|
55323
|
+
* @summary Create a custom enterprise plan
|
|
55324
|
+
* @param {DataTypesCreateCustomPlanRequest} dataTypesCreateCustomPlanRequest Custom plan details
|
|
55325
|
+
* @param {*} [options] Override http request option.
|
|
55326
|
+
* @throws {RequiredError}
|
|
55327
|
+
* @memberof BackofficeCustomPlansApi
|
|
55328
|
+
*/
|
|
55329
|
+
public backofficePlansCustomPost(dataTypesCreateCustomPlanRequest: DataTypesCreateCustomPlanRequest, options?: RawAxiosRequestConfig) {
|
|
55330
|
+
return BackofficeCustomPlansApiFp(this.configuration).backofficePlansCustomPost(dataTypesCreateCustomPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55331
|
+
}
|
|
55332
|
+
}
|
|
55333
|
+
|
|
55334
|
+
|
|
55335
|
+
|
|
55336
|
+
/**
|
|
55337
|
+
* BackofficePaymentLinksApi - axios parameter creator
|
|
55338
|
+
* @export
|
|
55339
|
+
*/
|
|
55340
|
+
export const BackofficePaymentLinksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
55341
|
+
return {
|
|
55342
|
+
/**
|
|
55343
|
+
* Returns a paginated, filterable list of payment links
|
|
55344
|
+
* @summary List payment links
|
|
55345
|
+
* @param {number} [page] Page number
|
|
55346
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55347
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55348
|
+
* @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
|
|
55349
|
+
* @param {number} [planId] Filter by plan ID
|
|
55350
|
+
* @param {*} [options] Override http request option.
|
|
55351
|
+
* @throws {RequiredError}
|
|
55352
|
+
*/
|
|
55353
|
+
backofficePaymentLinksGet: async (page?: number, pageSize?: number, orgId?: number, status?: string, planId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55354
|
+
const localVarPath = `/backoffice/payment-links`;
|
|
55355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55357
|
+
let baseOptions;
|
|
55358
|
+
if (configuration) {
|
|
55359
|
+
baseOptions = configuration.baseOptions;
|
|
55360
|
+
}
|
|
55361
|
+
|
|
55362
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55363
|
+
const localVarHeaderParameter = {} as any;
|
|
55364
|
+
const localVarQueryParameter = {} as any;
|
|
55365
|
+
|
|
55366
|
+
// authentication ApiKeyAuth required
|
|
55367
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
55368
|
+
|
|
55369
|
+
if (page !== undefined) {
|
|
55370
|
+
localVarQueryParameter['page'] = page;
|
|
55371
|
+
}
|
|
55372
|
+
|
|
55373
|
+
if (pageSize !== undefined) {
|
|
55374
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
55375
|
+
}
|
|
55376
|
+
|
|
55377
|
+
if (orgId !== undefined) {
|
|
55378
|
+
localVarQueryParameter['org_id'] = orgId;
|
|
55379
|
+
}
|
|
55380
|
+
|
|
55381
|
+
if (status !== undefined) {
|
|
55382
|
+
localVarQueryParameter['status'] = status;
|
|
55383
|
+
}
|
|
55384
|
+
|
|
55385
|
+
if (planId !== undefined) {
|
|
55386
|
+
localVarQueryParameter['plan_id'] = planId;
|
|
55387
|
+
}
|
|
55388
|
+
|
|
55389
|
+
|
|
55390
|
+
|
|
55391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55393
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55394
|
+
|
|
55395
|
+
return {
|
|
55396
|
+
url: toPathString(localVarUrlObj),
|
|
55397
|
+
options: localVarRequestOptions,
|
|
55398
|
+
};
|
|
55399
|
+
},
|
|
55400
|
+
/**
|
|
55401
|
+
* Cancels a payment link that is in \'created\' status
|
|
55402
|
+
* @summary Cancel a payment link
|
|
55403
|
+
* @param {number} id Payment link ID
|
|
55404
|
+
* @param {*} [options] Override http request option.
|
|
55405
|
+
* @throws {RequiredError}
|
|
55406
|
+
*/
|
|
55407
|
+
backofficePaymentLinksIdCancelPost: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55408
|
+
// verify required parameter 'id' is not null or undefined
|
|
55409
|
+
assertParamExists('backofficePaymentLinksIdCancelPost', 'id', id)
|
|
55410
|
+
const localVarPath = `/backoffice/payment-links/{id}/cancel`
|
|
55411
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55412
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55413
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55414
|
+
let baseOptions;
|
|
55415
|
+
if (configuration) {
|
|
55416
|
+
baseOptions = configuration.baseOptions;
|
|
55417
|
+
}
|
|
55418
|
+
|
|
55419
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55420
|
+
const localVarHeaderParameter = {} as any;
|
|
55421
|
+
const localVarQueryParameter = {} as any;
|
|
55422
|
+
|
|
55423
|
+
// authentication ApiKeyAuth required
|
|
55424
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
55425
|
+
|
|
55426
|
+
|
|
55427
|
+
|
|
55428
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55429
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55430
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55431
|
+
|
|
55432
|
+
return {
|
|
55433
|
+
url: toPathString(localVarUrlObj),
|
|
55434
|
+
options: localVarRequestOptions,
|
|
55435
|
+
};
|
|
55436
|
+
},
|
|
55437
|
+
/**
|
|
55438
|
+
* Retrieves a single payment link by its ID
|
|
55439
|
+
* @summary Get a payment link by ID
|
|
55440
|
+
* @param {number} id Payment link ID
|
|
55441
|
+
* @param {*} [options] Override http request option.
|
|
55442
|
+
* @throws {RequiredError}
|
|
55443
|
+
*/
|
|
55444
|
+
backofficePaymentLinksIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55445
|
+
// verify required parameter 'id' is not null or undefined
|
|
55446
|
+
assertParamExists('backofficePaymentLinksIdGet', 'id', id)
|
|
55447
|
+
const localVarPath = `/backoffice/payment-links/{id}`
|
|
55448
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
55449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55450
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55451
|
+
let baseOptions;
|
|
55452
|
+
if (configuration) {
|
|
55453
|
+
baseOptions = configuration.baseOptions;
|
|
55454
|
+
}
|
|
55455
|
+
|
|
55456
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55457
|
+
const localVarHeaderParameter = {} as any;
|
|
55458
|
+
const localVarQueryParameter = {} as any;
|
|
55459
|
+
|
|
55460
|
+
// authentication ApiKeyAuth required
|
|
55461
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-storesecret", configuration)
|
|
55462
|
+
|
|
55463
|
+
|
|
55464
|
+
|
|
55465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55467
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55468
|
+
|
|
55469
|
+
return {
|
|
55470
|
+
url: toPathString(localVarUrlObj),
|
|
55471
|
+
options: localVarRequestOptions,
|
|
55472
|
+
};
|
|
55473
|
+
},
|
|
55474
|
+
}
|
|
55475
|
+
};
|
|
55476
|
+
|
|
55477
|
+
/**
|
|
55478
|
+
* BackofficePaymentLinksApi - functional programming interface
|
|
55479
|
+
* @export
|
|
55480
|
+
*/
|
|
55481
|
+
export const BackofficePaymentLinksApiFp = function(configuration?: Configuration) {
|
|
55482
|
+
const localVarAxiosParamCreator = BackofficePaymentLinksApiAxiosParamCreator(configuration)
|
|
55483
|
+
return {
|
|
55484
|
+
/**
|
|
55485
|
+
* Returns a paginated, filterable list of payment links
|
|
55486
|
+
* @summary List payment links
|
|
55487
|
+
* @param {number} [page] Page number
|
|
55488
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55489
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55490
|
+
* @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
|
|
55491
|
+
* @param {number} [planId] Filter by plan ID
|
|
55492
|
+
* @param {*} [options] Override http request option.
|
|
55493
|
+
* @throws {RequiredError}
|
|
55494
|
+
*/
|
|
55495
|
+
async backofficePaymentLinksGet(page?: number, pageSize?: number, orgId?: number, status?: string, planId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentLinkListResponse>> {
|
|
55496
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options);
|
|
55497
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55498
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksGet']?.[localVarOperationServerIndex]?.url;
|
|
55499
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55500
|
+
},
|
|
55501
|
+
/**
|
|
55502
|
+
* Cancels a payment link that is in \'created\' status
|
|
55503
|
+
* @summary Cancel a payment link
|
|
55504
|
+
* @param {number} id Payment link ID
|
|
55505
|
+
* @param {*} [options] Override http request option.
|
|
55506
|
+
* @throws {RequiredError}
|
|
55507
|
+
*/
|
|
55508
|
+
async backofficePaymentLinksIdCancelPost(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentLinkResponse>> {
|
|
55509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePaymentLinksIdCancelPost(id, options);
|
|
55510
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55511
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksIdCancelPost']?.[localVarOperationServerIndex]?.url;
|
|
55512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55513
|
+
},
|
|
55514
|
+
/**
|
|
55515
|
+
* Retrieves a single payment link by its ID
|
|
55516
|
+
* @summary Get a payment link by ID
|
|
55517
|
+
* @param {number} id Payment link ID
|
|
55518
|
+
* @param {*} [options] Override http request option.
|
|
55519
|
+
* @throws {RequiredError}
|
|
55520
|
+
*/
|
|
55521
|
+
async backofficePaymentLinksIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesPaymentLinkResponse>> {
|
|
55522
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backofficePaymentLinksIdGet(id, options);
|
|
55523
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55524
|
+
const localVarOperationServerBasePath = operationServerMap['BackofficePaymentLinksApi.backofficePaymentLinksIdGet']?.[localVarOperationServerIndex]?.url;
|
|
55525
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55526
|
+
},
|
|
55527
|
+
}
|
|
55528
|
+
};
|
|
55529
|
+
|
|
55530
|
+
/**
|
|
55531
|
+
* BackofficePaymentLinksApi - factory interface
|
|
55532
|
+
* @export
|
|
55533
|
+
*/
|
|
55534
|
+
export const BackofficePaymentLinksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
55535
|
+
const localVarFp = BackofficePaymentLinksApiFp(configuration)
|
|
55536
|
+
return {
|
|
55537
|
+
/**
|
|
55538
|
+
* Returns a paginated, filterable list of payment links
|
|
55539
|
+
* @summary List payment links
|
|
55540
|
+
* @param {number} [page] Page number
|
|
55541
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55542
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55543
|
+
* @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
|
|
55544
|
+
* @param {number} [planId] Filter by plan ID
|
|
55545
|
+
* @param {*} [options] Override http request option.
|
|
55546
|
+
* @throws {RequiredError}
|
|
55547
|
+
*/
|
|
55548
|
+
backofficePaymentLinksGet(page?: number, pageSize?: number, orgId?: number, status?: string, planId?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentLinkListResponse> {
|
|
55549
|
+
return localVarFp.backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options).then((request) => request(axios, basePath));
|
|
55550
|
+
},
|
|
55551
|
+
/**
|
|
55552
|
+
* Cancels a payment link that is in \'created\' status
|
|
55553
|
+
* @summary Cancel a payment link
|
|
55554
|
+
* @param {number} id Payment link ID
|
|
55555
|
+
* @param {*} [options] Override http request option.
|
|
55556
|
+
* @throws {RequiredError}
|
|
55557
|
+
*/
|
|
55558
|
+
backofficePaymentLinksIdCancelPost(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentLinkResponse> {
|
|
55559
|
+
return localVarFp.backofficePaymentLinksIdCancelPost(id, options).then((request) => request(axios, basePath));
|
|
55560
|
+
},
|
|
55561
|
+
/**
|
|
55562
|
+
* Retrieves a single payment link by its ID
|
|
55563
|
+
* @summary Get a payment link by ID
|
|
55564
|
+
* @param {number} id Payment link ID
|
|
55565
|
+
* @param {*} [options] Override http request option.
|
|
55566
|
+
* @throws {RequiredError}
|
|
55567
|
+
*/
|
|
55568
|
+
backofficePaymentLinksIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesPaymentLinkResponse> {
|
|
55569
|
+
return localVarFp.backofficePaymentLinksIdGet(id, options).then((request) => request(axios, basePath));
|
|
55570
|
+
},
|
|
55571
|
+
};
|
|
55572
|
+
};
|
|
55573
|
+
|
|
55574
|
+
/**
|
|
55575
|
+
* BackofficePaymentLinksApi - object-oriented interface
|
|
55576
|
+
* @export
|
|
55577
|
+
* @class BackofficePaymentLinksApi
|
|
55578
|
+
* @extends {BaseAPI}
|
|
55579
|
+
*/
|
|
55580
|
+
export class BackofficePaymentLinksApi extends BaseAPI {
|
|
55581
|
+
/**
|
|
55582
|
+
* Returns a paginated, filterable list of payment links
|
|
55583
|
+
* @summary List payment links
|
|
55584
|
+
* @param {number} [page] Page number
|
|
55585
|
+
* @param {number} [pageSize] Page size (max 100)
|
|
55586
|
+
* @param {number} [orgId] Filter by organization ID
|
|
55587
|
+
* @param {string} [status] Filter by status (created, paid, expired, cancelled, all)
|
|
55588
|
+
* @param {number} [planId] Filter by plan ID
|
|
55589
|
+
* @param {*} [options] Override http request option.
|
|
55590
|
+
* @throws {RequiredError}
|
|
55591
|
+
* @memberof BackofficePaymentLinksApi
|
|
55592
|
+
*/
|
|
55593
|
+
public backofficePaymentLinksGet(page?: number, pageSize?: number, orgId?: number, status?: string, planId?: number, options?: RawAxiosRequestConfig) {
|
|
55594
|
+
return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksGet(page, pageSize, orgId, status, planId, options).then((request) => request(this.axios, this.basePath));
|
|
55595
|
+
}
|
|
55596
|
+
|
|
55597
|
+
/**
|
|
55598
|
+
* Cancels a payment link that is in \'created\' status
|
|
55599
|
+
* @summary Cancel a payment link
|
|
55600
|
+
* @param {number} id Payment link ID
|
|
55601
|
+
* @param {*} [options] Override http request option.
|
|
55602
|
+
* @throws {RequiredError}
|
|
55603
|
+
* @memberof BackofficePaymentLinksApi
|
|
55604
|
+
*/
|
|
55605
|
+
public backofficePaymentLinksIdCancelPost(id: number, options?: RawAxiosRequestConfig) {
|
|
55606
|
+
return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksIdCancelPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
55607
|
+
}
|
|
55608
|
+
|
|
55609
|
+
/**
|
|
55610
|
+
* Retrieves a single payment link by its ID
|
|
55611
|
+
* @summary Get a payment link by ID
|
|
55612
|
+
* @param {number} id Payment link ID
|
|
55613
|
+
* @param {*} [options] Override http request option.
|
|
55614
|
+
* @throws {RequiredError}
|
|
55615
|
+
* @memberof BackofficePaymentLinksApi
|
|
55616
|
+
*/
|
|
55617
|
+
public backofficePaymentLinksIdGet(id: number, options?: RawAxiosRequestConfig) {
|
|
55618
|
+
return BackofficePaymentLinksApiFp(this.configuration).backofficePaymentLinksIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
55619
|
+
}
|
|
55620
|
+
}
|
|
55621
|
+
|
|
55622
|
+
|
|
55623
|
+
|
|
53969
55624
|
/**
|
|
53970
55625
|
* BillingDashboardApi - axios parameter creator
|
|
53971
55626
|
* @export
|
|
@@ -76127,8 +77782,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
76127
77782
|
};
|
|
76128
77783
|
},
|
|
76129
77784
|
/**
|
|
76130
|
-
* Returns
|
|
76131
|
-
* @summary Get available credit plans
|
|
77785
|
+
* Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
|
|
77786
|
+
* @summary Get available credit plans (including org-specific custom plans)
|
|
76132
77787
|
* @param {*} [options] Override http request option.
|
|
76133
77788
|
* @throws {RequiredError}
|
|
76134
77789
|
*/
|
|
@@ -76145,6 +77800,9 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
76145
77800
|
const localVarHeaderParameter = {} as any;
|
|
76146
77801
|
const localVarQueryParameter = {} as any;
|
|
76147
77802
|
|
|
77803
|
+
// authentication BearerAuth required
|
|
77804
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
77805
|
+
|
|
76148
77806
|
|
|
76149
77807
|
|
|
76150
77808
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -76521,8 +78179,8 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
76521
78179
|
};
|
|
76522
78180
|
},
|
|
76523
78181
|
/**
|
|
76524
|
-
* Returns list of all active credit plans for purchase
|
|
76525
|
-
* @summary Get available credit plans
|
|
78182
|
+
* Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
|
|
78183
|
+
* @summary Get available credit plans (public)
|
|
76526
78184
|
* @param {*} [options] Override http request option.
|
|
76527
78185
|
* @throws {RequiredError}
|
|
76528
78186
|
*/
|
|
@@ -76648,12 +78306,12 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
76648
78306
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
76649
78307
|
},
|
|
76650
78308
|
/**
|
|
76651
|
-
* Returns
|
|
76652
|
-
* @summary Get available credit plans
|
|
78309
|
+
* Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
|
|
78310
|
+
* @summary Get available credit plans (including org-specific custom plans)
|
|
76653
78311
|
* @param {*} [options] Override http request option.
|
|
76654
78312
|
* @throws {RequiredError}
|
|
76655
78313
|
*/
|
|
76656
|
-
async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
78314
|
+
async adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataTypesCustomPlanResponse>>> {
|
|
76657
78315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayCreditPlansGet(options);
|
|
76658
78316
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
76659
78317
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayCreditPlansGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -76776,8 +78434,8 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
76776
78434
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
76777
78435
|
},
|
|
76778
78436
|
/**
|
|
76779
|
-
* Returns list of all active credit plans for purchase
|
|
76780
|
-
* @summary Get available credit plans
|
|
78437
|
+
* Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
|
|
78438
|
+
* @summary Get available credit plans (public)
|
|
76781
78439
|
* @param {*} [options] Override http request option.
|
|
76782
78440
|
* @throws {RequiredError}
|
|
76783
78441
|
*/
|
|
@@ -76835,12 +78493,12 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
76835
78493
|
return localVarFp.adminPaymentGatewayCreateOrderPost(dataTypesCreatePaymentOrderRequest, options).then((request) => request(axios, basePath));
|
|
76836
78494
|
},
|
|
76837
78495
|
/**
|
|
76838
|
-
* Returns
|
|
76839
|
-
* @summary Get available credit plans
|
|
78496
|
+
* Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
|
|
78497
|
+
* @summary Get available credit plans (including org-specific custom plans)
|
|
76840
78498
|
* @param {*} [options] Override http request option.
|
|
76841
78499
|
* @throws {RequiredError}
|
|
76842
78500
|
*/
|
|
76843
|
-
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
78501
|
+
adminPaymentGatewayCreditPlansGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<DataTypesCustomPlanResponse>> {
|
|
76844
78502
|
return localVarFp.adminPaymentGatewayCreditPlansGet(options).then((request) => request(axios, basePath));
|
|
76845
78503
|
},
|
|
76846
78504
|
/**
|
|
@@ -76936,8 +78594,8 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
76936
78594
|
return localVarFp.adminPaymentGatewayVerifyPost(dataTypesVerifyPaymentRequest, options).then((request) => request(axios, basePath));
|
|
76937
78595
|
},
|
|
76938
78596
|
/**
|
|
76939
|
-
* Returns list of all active credit plans for purchase
|
|
76940
|
-
* @summary Get available credit plans
|
|
78597
|
+
* Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
|
|
78598
|
+
* @summary Get available credit plans (public)
|
|
76941
78599
|
* @param {*} [options] Override http request option.
|
|
76942
78600
|
* @throws {RequiredError}
|
|
76943
78601
|
*/
|
|
@@ -76988,8 +78646,8 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
76988
78646
|
}
|
|
76989
78647
|
|
|
76990
78648
|
/**
|
|
76991
|
-
* Returns
|
|
76992
|
-
* @summary Get available credit plans
|
|
78649
|
+
* Returns all active global credit plans plus any custom plans assigned to the authenticated user\'s organization. Requires JWT authentication.
|
|
78650
|
+
* @summary Get available credit plans (including org-specific custom plans)
|
|
76993
78651
|
* @param {*} [options] Override http request option.
|
|
76994
78652
|
* @throws {RequiredError}
|
|
76995
78653
|
* @memberof PaymentGatewayApi
|
|
@@ -77107,8 +78765,8 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
77107
78765
|
}
|
|
77108
78766
|
|
|
77109
78767
|
/**
|
|
77110
|
-
* Returns list of all active credit plans for purchase
|
|
77111
|
-
* @summary Get available credit plans
|
|
78768
|
+
* Returns list of all active global credit plans for purchase. Public endpoint, no authentication required.
|
|
78769
|
+
* @summary Get available credit plans (public)
|
|
77112
78770
|
* @param {*} [options] Override http request option.
|
|
77113
78771
|
* @throws {RequiredError}
|
|
77114
78772
|
* @memberof PaymentGatewayApi
|