cashfree-pg 4.0.5 → 4.0.7

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/api.ts CHANGED
@@ -3400,6 +3400,18 @@ export interface PaymentMethodNetBankingInPaymentsEntityNetbanking {
3400
3400
  * @memberof PaymentMethodNetBankingInPaymentsEntityNetbanking
3401
3401
  */
3402
3402
  'netbanking_bank_name'?: string;
3403
+ /**
3404
+ *
3405
+ * @type {string}
3406
+ * @memberof PaymentMethodNetBankingInPaymentsEntityNetbanking
3407
+ */
3408
+ 'netbanking_ifsc'?: string;
3409
+ /**
3410
+ *
3411
+ * @type {string}
3412
+ * @memberof PaymentMethodNetBankingInPaymentsEntityNetbanking
3413
+ */
3414
+ 'netbanking_account_number'?: string;
3403
3415
  }
3404
3416
  /**
3405
3417
  * paylater payment method object for pay api
@@ -4955,6 +4967,142 @@ export interface UPIPaymentMethod {
4955
4967
  */
4956
4968
  'upi': Upi;
4957
4969
  }
4970
+ /**
4971
+ * Update terminal response
4972
+ * @export
4973
+ * @interface UpdateTerminalEntity
4974
+ */
4975
+ export interface UpdateTerminalEntity {
4976
+ /**
4977
+ *
4978
+ * @type {string}
4979
+ * @memberof UpdateTerminalEntity
4980
+ */
4981
+ 'added_on'?: string;
4982
+ /**
4983
+ *
4984
+ * @type {number}
4985
+ * @memberof UpdateTerminalEntity
4986
+ */
4987
+ 'cf_terminal_id'?: number;
4988
+ /**
4989
+ *
4990
+ * @type {string}
4991
+ * @memberof UpdateTerminalEntity
4992
+ */
4993
+ 'last_updated_on'?: string;
4994
+ /**
4995
+ *
4996
+ * @type {string}
4997
+ * @memberof UpdateTerminalEntity
4998
+ */
4999
+ 'terminal_address'?: string;
5000
+ /**
5001
+ *
5002
+ * @type {string}
5003
+ * @memberof UpdateTerminalEntity
5004
+ */
5005
+ 'terminal_email'?: string;
5006
+ /**
5007
+ *
5008
+ * @type {string}
5009
+ * @memberof UpdateTerminalEntity
5010
+ */
5011
+ 'terminal_type'?: string;
5012
+ /**
5013
+ *
5014
+ * @type {string}
5015
+ * @memberof UpdateTerminalEntity
5016
+ */
5017
+ 'teminal_id'?: string;
5018
+ /**
5019
+ *
5020
+ * @type {string}
5021
+ * @memberof UpdateTerminalEntity
5022
+ */
5023
+ 'terminal_name'?: string;
5024
+ /**
5025
+ *
5026
+ * @type {string}
5027
+ * @memberof UpdateTerminalEntity
5028
+ */
5029
+ 'terminal_note'?: string;
5030
+ /**
5031
+ *
5032
+ * @type {string}
5033
+ * @memberof UpdateTerminalEntity
5034
+ */
5035
+ 'terminal_phone_no'?: string;
5036
+ /**
5037
+ *
5038
+ * @type {string}
5039
+ * @memberof UpdateTerminalEntity
5040
+ */
5041
+ 'terminal_status'?: string;
5042
+ /**
5043
+ *
5044
+ * @type {string}
5045
+ * @memberof UpdateTerminalEntity
5046
+ */
5047
+ 'terminal_meta'?: string;
5048
+ }
5049
+ /**
5050
+ * Request body to update terminal details.
5051
+ * @export
5052
+ * @interface UpdateTerminalRequest
5053
+ */
5054
+ export interface UpdateTerminalRequest {
5055
+ /**
5056
+ * Mention the updated email ID of the terminal.
5057
+ * @type {string}
5058
+ * @memberof UpdateTerminalRequest
5059
+ */
5060
+ 'terminal_email'?: string;
5061
+ /**
5062
+ * Terminal phone number to be updated.
5063
+ * @type {string}
5064
+ * @memberof UpdateTerminalRequest
5065
+ */
5066
+ 'terminal_phone_no'?: string;
5067
+ /**
5068
+ *
5069
+ * @type {UpdateTerminalRequestTerminalMeta}
5070
+ * @memberof UpdateTerminalRequest
5071
+ */
5072
+ 'terminal_meta'?: UpdateTerminalRequestTerminalMeta;
5073
+ /**
5074
+ * Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT.
5075
+ * @type {string}
5076
+ * @memberof UpdateTerminalRequest
5077
+ */
5078
+ 'terminal_type': string;
5079
+ }
5080
+ /**
5081
+ * Terminal metadata.
5082
+ * @export
5083
+ * @interface UpdateTerminalRequestTerminalMeta
5084
+ */
5085
+ export interface UpdateTerminalRequestTerminalMeta {
5086
+ /**
5087
+ * Name of the operator for the storefront.
5088
+ * @type {string}
5089
+ * @memberof UpdateTerminalRequestTerminalMeta
5090
+ */
5091
+ 'terminal_operator'?: string;
5092
+ }
5093
+ /**
5094
+ * Request body to update terminal status.
5095
+ * @export
5096
+ * @interface UpdateTerminalStatusRequest
5097
+ */
5098
+ export interface UpdateTerminalStatusRequest {
5099
+ /**
5100
+ * Status of the terminal to be updated. possible values - ACTIVE, INACTIVE.
5101
+ * @type {string}
5102
+ * @memberof UpdateTerminalStatusRequest
5103
+ */
5104
+ 'terminal_status': string;
5105
+ }
4958
5106
  /**
4959
5107
  * UPI collect payment method object
4960
5108
  * @export
@@ -5008,6 +5156,62 @@ export const UpiChannelEnum = {
5008
5156
 
5009
5157
  export type UpiChannelEnum = typeof UpiChannelEnum[keyof typeof UpiChannelEnum];
5010
5158
 
5159
+ /**
5160
+ * Request body to upload terminal documents.
5161
+ * @export
5162
+ * @interface UploadTerminalDocs
5163
+ */
5164
+ export interface UploadTerminalDocs {
5165
+ /**
5166
+ * Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH.
5167
+ * @type {string}
5168
+ * @memberof UploadTerminalDocs
5169
+ */
5170
+ 'doc_type': string;
5171
+ /**
5172
+ * Enter the display name of the uploaded file.
5173
+ * @type {string}
5174
+ * @memberof UploadTerminalDocs
5175
+ */
5176
+ 'doc_value': string;
5177
+ /**
5178
+ * Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.
5179
+ * @type {string}
5180
+ * @memberof UploadTerminalDocs
5181
+ */
5182
+ 'file': string;
5183
+ }
5184
+ /**
5185
+ * Upload the terminal documents.
5186
+ * @export
5187
+ * @interface UploadTerminalDocsEntity
5188
+ */
5189
+ export interface UploadTerminalDocsEntity {
5190
+ /**
5191
+ *
5192
+ * @type {number}
5193
+ * @memberof UploadTerminalDocsEntity
5194
+ */
5195
+ 'cf_terminal_id'?: number;
5196
+ /**
5197
+ *
5198
+ * @type {string}
5199
+ * @memberof UploadTerminalDocsEntity
5200
+ */
5201
+ 'doc_type'?: string;
5202
+ /**
5203
+ *
5204
+ * @type {string}
5205
+ * @memberof UploadTerminalDocsEntity
5206
+ */
5207
+ 'doc_value'?: string;
5208
+ /**
5209
+ *
5210
+ * @type {string}
5211
+ * @memberof UploadTerminalDocsEntity
5212
+ */
5213
+ 'status'?: string;
5214
+ }
5011
5215
  /**
5012
5216
  * Use to split order when cashfree\'s Easy Split is enabled for your account.
5013
5217
  * @export
@@ -5105,7 +5309,7 @@ const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
5105
5309
 
5106
5310
  localVarHeaderParameter['Content-Type'] = 'application/json';
5107
5311
 
5108
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5312
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5109
5313
  if (x_api_version != null && x_api_version != undefined) {
5110
5314
  localVarHeaderParameter['x-api-version'] = x_api_version;
5111
5315
  }
@@ -5225,7 +5429,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5225
5429
 
5226
5430
  localVarHeaderParameter['Content-Type'] = 'application/json';
5227
5431
 
5228
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5432
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5229
5433
  if (x_api_version != null && x_api_version != undefined) {
5230
5434
  localVarHeaderParameter['x-api-version'] = x_api_version;
5231
5435
  }
@@ -5299,7 +5503,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5299
5503
 
5300
5504
  localVarHeaderParameter['Content-Type'] = 'application/json';
5301
5505
 
5302
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5506
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5303
5507
  if (x_api_version != null && x_api_version != undefined) {
5304
5508
  localVarHeaderParameter['x-api-version'] = x_api_version;
5305
5509
  }
@@ -5373,7 +5577,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5373
5577
 
5374
5578
  localVarHeaderParameter['Content-Type'] = 'application/json';
5375
5579
 
5376
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5580
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5377
5581
  if (x_api_version != null && x_api_version != undefined) {
5378
5582
  localVarHeaderParameter['x-api-version'] = x_api_version;
5379
5583
  }
@@ -5447,7 +5651,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5447
5651
 
5448
5652
  localVarHeaderParameter['Content-Type'] = 'application/json';
5449
5653
 
5450
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5654
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5451
5655
  if (x_api_version != null && x_api_version != undefined) {
5452
5656
  localVarHeaderParameter['x-api-version'] = x_api_version;
5453
5657
  }
@@ -5621,7 +5825,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5621
5825
 
5622
5826
  localVarHeaderParameter['Content-Type'] = 'application/json';
5623
5827
 
5624
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5828
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5625
5829
  if (x_api_version != null && x_api_version != undefined) {
5626
5830
  localVarHeaderParameter['x-api-version'] = x_api_version;
5627
5831
  }
@@ -5694,7 +5898,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5694
5898
 
5695
5899
 
5696
5900
 
5697
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
5901
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5698
5902
  if (x_api_version != null && x_api_version != undefined) {
5699
5903
  localVarHeaderParameter['x-api-version'] = x_api_version;
5700
5904
  }
@@ -5831,7 +6035,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5831
6035
 
5832
6036
  localVarHeaderParameter['Content-Type'] = 'application/json';
5833
6037
 
5834
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6038
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5835
6039
  if (x_api_version != null && x_api_version != undefined) {
5836
6040
  localVarHeaderParameter['x-api-version'] = x_api_version;
5837
6041
  }
@@ -5904,7 +6108,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5904
6108
 
5905
6109
 
5906
6110
 
5907
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6111
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5908
6112
  if (x_api_version != null && x_api_version != undefined) {
5909
6113
  localVarHeaderParameter['x-api-version'] = x_api_version;
5910
6114
  }
@@ -5981,7 +6185,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5981
6185
 
5982
6186
  localVarHeaderParameter['Content-Type'] = 'application/json';
5983
6187
 
5984
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6188
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
5985
6189
  if (x_api_version != null && x_api_version != undefined) {
5986
6190
  localVarHeaderParameter['x-api-version'] = x_api_version;
5987
6191
  }
@@ -6140,7 +6344,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura
6140
6344
 
6141
6345
  localVarHeaderParameter['Content-Type'] = 'application/json';
6142
6346
 
6143
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6347
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6144
6348
  if (x_api_version != null && x_api_version != undefined) {
6145
6349
  localVarHeaderParameter['x-api-version'] = x_api_version;
6146
6350
  }
@@ -6261,7 +6465,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6261
6465
 
6262
6466
 
6263
6467
 
6264
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6468
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6265
6469
  if (x_api_version != null && x_api_version != undefined) {
6266
6470
  localVarHeaderParameter['x-api-version'] = x_api_version;
6267
6471
  }
@@ -6334,7 +6538,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6334
6538
 
6335
6539
  localVarHeaderParameter['Content-Type'] = 'application/json';
6336
6540
 
6337
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6541
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6338
6542
  if (x_api_version != null && x_api_version != undefined) {
6339
6543
  localVarHeaderParameter['x-api-version'] = x_api_version;
6340
6544
  }
@@ -6407,7 +6611,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6407
6611
 
6408
6612
 
6409
6613
 
6410
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6614
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6411
6615
  if (x_api_version != null && x_api_version != undefined) {
6412
6616
  localVarHeaderParameter['x-api-version'] = x_api_version;
6413
6617
  }
@@ -6479,7 +6683,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6479
6683
 
6480
6684
 
6481
6685
 
6482
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6686
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6483
6687
  if (x_api_version != null && x_api_version != undefined) {
6484
6688
  localVarHeaderParameter['x-api-version'] = x_api_version;
6485
6689
  }
@@ -6656,7 +6860,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6656
6860
 
6657
6861
  localVarHeaderParameter['Content-Type'] = 'application/json';
6658
6862
 
6659
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6863
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6660
6864
  if (x_api_version != null && x_api_version != undefined) {
6661
6865
  localVarHeaderParameter['x-api-version'] = x_api_version;
6662
6866
  }
@@ -6719,7 +6923,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6719
6923
 
6720
6924
  localVarHeaderParameter['Content-Type'] = 'application/json';
6721
6925
 
6722
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
6926
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6723
6927
  if (x_api_version != null && x_api_version != undefined) {
6724
6928
  localVarHeaderParameter['x-api-version'] = x_api_version;
6725
6929
  }
@@ -6796,7 +7000,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6796
7000
 
6797
7001
 
6798
7002
 
6799
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7003
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6800
7004
  if (x_api_version != null && x_api_version != undefined) {
6801
7005
  localVarHeaderParameter['x-api-version'] = x_api_version;
6802
7006
  }
@@ -6868,7 +7072,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6868
7072
 
6869
7073
 
6870
7074
 
6871
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7075
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6872
7076
  if (x_api_version != null && x_api_version != undefined) {
6873
7077
  localVarHeaderParameter['x-api-version'] = x_api_version;
6874
7078
  }
@@ -6926,7 +7130,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6926
7130
 
6927
7131
  localVarHeaderParameter['Content-Type'] = 'application/json';
6928
7132
 
6929
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7133
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
6930
7134
  if (x_api_version != null && x_api_version != undefined) {
6931
7135
  localVarHeaderParameter['x-api-version'] = x_api_version;
6932
7136
  }
@@ -7125,7 +7329,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
7125
7329
 
7126
7330
  localVarHeaderParameter['Content-Type'] = 'application/json';
7127
7331
 
7128
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7332
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7129
7333
  if (x_api_version != null && x_api_version != undefined) {
7130
7334
  localVarHeaderParameter['x-api-version'] = x_api_version;
7131
7335
  }
@@ -7202,7 +7406,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
7202
7406
 
7203
7407
 
7204
7408
 
7205
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7409
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7206
7410
  if (x_api_version != null && x_api_version != undefined) {
7207
7411
  localVarHeaderParameter['x-api-version'] = x_api_version;
7208
7412
  }
@@ -7274,7 +7478,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
7274
7478
 
7275
7479
 
7276
7480
 
7277
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7481
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7278
7482
  if (x_api_version != null && x_api_version != undefined) {
7279
7483
  localVarHeaderParameter['x-api-version'] = x_api_version;
7280
7484
  }
@@ -7433,7 +7637,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7433
7637
 
7434
7638
  localVarHeaderParameter['Content-Type'] = 'application/json';
7435
7639
 
7436
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7640
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7437
7641
  if (x_api_version != null && x_api_version != undefined) {
7438
7642
  localVarHeaderParameter['x-api-version'] = x_api_version;
7439
7643
  }
@@ -7509,7 +7713,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7509
7713
 
7510
7714
  localVarHeaderParameter['Content-Type'] = 'application/json';
7511
7715
 
7512
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7716
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7513
7717
  if (x_api_version != null && x_api_version != undefined) {
7514
7718
  localVarHeaderParameter['x-api-version'] = x_api_version;
7515
7719
  }
@@ -7650,7 +7854,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration)
7650
7854
 
7651
7855
 
7652
7856
 
7653
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7857
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7654
7858
  if (x_api_version != null && x_api_version != undefined) {
7655
7859
  localVarHeaderParameter['x-api-version'] = x_api_version;
7656
7860
  }
@@ -7769,7 +7973,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7769
7973
 
7770
7974
  localVarHeaderParameter['Content-Type'] = 'application/json';
7771
7975
 
7772
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
7976
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7773
7977
  if (x_api_version != null && x_api_version != undefined) {
7774
7978
  localVarHeaderParameter['x-api-version'] = x_api_version;
7775
7979
  }
@@ -7843,7 +8047,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7843
8047
 
7844
8048
  localVarHeaderParameter['Content-Type'] = 'application/json';
7845
8049
 
7846
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8050
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7847
8051
  if (x_api_version != null && x_api_version != undefined) {
7848
8052
  localVarHeaderParameter['x-api-version'] = x_api_version;
7849
8053
  }
@@ -7867,7 +8071,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7867
8071
  },
7868
8072
  /**
7869
8073
  * Use this API to view all details of a terminal.
7870
- * @summary Get terminal status using phone number
8074
+ * @summary Get Terminal Status using Phone Number
7871
8075
 
7872
8076
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7873
8077
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
@@ -7916,7 +8120,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7916
8120
 
7917
8121
 
7918
8122
 
7919
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8123
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
7920
8124
  if (x_api_version != null && x_api_version != undefined) {
7921
8125
  localVarHeaderParameter['x-api-version'] = x_api_version;
7922
8126
  }
@@ -7998,7 +8202,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7998
8202
 
7999
8203
 
8000
8204
 
8001
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8205
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8002
8206
  if (x_api_version != null && x_api_version != undefined) {
8003
8207
  localVarHeaderParameter['x-api-version'] = x_api_version;
8004
8208
  }
@@ -8019,76 +8223,310 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
8019
8223
  options: localVarRequestOptions,
8020
8224
  };
8021
8225
  },
8022
- }
8023
- };
8024
-
8025
- /**
8026
- * SoftPOSApi - functional programming interface
8027
- * @export
8028
- */
8029
- const SoftPOSApiFp = function(configuration?: Configuration) {
8030
- const localVarAxiosParamCreator = SoftPOSApiAxiosParamCreator(configuration)
8031
- return {
8032
- /**
8033
- * Use this API to create new terminals to use softPOS.
8034
- * @summary Create Terminal
8035
- * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8036
- * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
8037
- * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8038
- * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8039
- * @param {*} [options] Override http request option.
8040
- * @throws {RequiredError}
8041
- */
8042
- async sposCreateTerminal(x_api_version: string, CreateTerminalRequest: CreateTerminalRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalEntity>> {
8043
- const localVarAxiosArgs = await localVarAxiosParamCreator.sposCreateTerminal(x_api_version, CreateTerminalRequest, x_request_id, x_idempotency_key, options);
8044
- var url = "https://sandbox.cashfree.com/pg";
8045
- if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8046
- url = "https://api.cashfree.com/pg"
8047
- }
8048
- return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8049
- },
8050
8226
  /**
8051
- * Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
8052
- * @summary Create Terminal Transaction
8227
+ * Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\".
8228
+ * @summary Update Terminal
8229
+
8053
8230
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8054
- * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
8231
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8232
+ * @param {UpdateTerminalRequest} UpdateTerminalRequest Request Body to update terminal for SPOS.
8055
8233
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8056
8234
  * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8057
8235
  * @param {*} [options] Override http request option.
8058
8236
  * @throws {RequiredError}
8237
+ * x_request_id?: string,
8059
8238
  */
8060
- async sposCreateTerminalTransaction(x_api_version: string, CreateTerminalTransactionRequest: CreateTerminalTransactionRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalTransactionEntity>> {
8061
- const localVarAxiosArgs = await localVarAxiosParamCreator.sposCreateTerminalTransaction(x_api_version, CreateTerminalTransactionRequest, x_request_id, x_idempotency_key, options);
8062
- var url = "https://sandbox.cashfree.com/pg";
8063
- if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8064
- url = "https://api.cashfree.com/pg"
8065
- }
8066
- return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8239
+ sposUpdateTerminal: async (x_api_version: string, cf_terminal_id: string, UpdateTerminalRequest: UpdateTerminalRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8240
+ // verify required parameter 'x_api_version' is not null or undefined
8241
+ assertParamExists('sposUpdateTerminal', 'x_api_version', x_api_version)
8242
+ // verify required parameter 'cf_terminal_id' is not null or undefined
8243
+ assertParamExists('sposUpdateTerminal', 'cf_terminal_id', cf_terminal_id)
8244
+ // verify required parameter 'UpdateTerminalRequest' is not null or undefined
8245
+ assertParamExists('sposUpdateTerminal', 'UpdateTerminalRequest', UpdateTerminalRequest)
8246
+ const localVarPath = `/terminal/{cf_terminal_id}`
8247
+ .replace(`{${"cf_terminal_id"}}`, encodeURIComponent(String(cf_terminal_id)));
8248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8249
+ var url = "https://sandbox.cashfree.com/pg";
8250
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8251
+ url = "https://api.cashfree.com/pg"
8252
+ }
8253
+ const localVarUrlObj = new URL(localVarPath, url);
8254
+ let baseOptions;
8255
+ if (configuration) {
8256
+ baseOptions = configuration.baseOptions;
8257
+ }
8258
+
8259
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8260
+ const localVarHeaderParameter = {} as any;
8261
+ const localVarQueryParameter = {} as any;
8262
+
8263
+ // authentication XPartnerAPIKey required
8264
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
8265
+
8266
+ // authentication XClientSecret required
8267
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
8268
+
8269
+ // authentication XPartnerMerchantID required
8270
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
8271
+
8272
+ // authentication XClientID required
8273
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
8274
+
8275
+ // authentication XClientSignatureHeader required
8276
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
8277
+
8278
+
8279
+
8280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8281
+
8282
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8283
+ if (x_api_version != null && x_api_version != undefined) {
8284
+ localVarHeaderParameter['x-api-version'] = x_api_version;
8285
+ }
8286
+
8287
+ if (x_request_id != null && x_request_id != undefined) {
8288
+ localVarHeaderParameter['x-request-id'] = x_request_id;
8289
+ }
8290
+
8291
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
8292
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
8293
+ }
8294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8297
+ localVarRequestOptions.data = serializeDataIfNeeded(UpdateTerminalRequest, localVarRequestOptions, configuration)
8298
+
8299
+ return {
8300
+ url: toPathString(localVarUrlObj),
8301
+ options: localVarRequestOptions,
8302
+ };
8067
8303
  },
8068
8304
  /**
8069
- * Use this API to view all details of a terminal.
8070
- * @summary Get terminal status using phone number
8305
+ * Use this API to update the terminal status.
8306
+ * @summary Update Terminal Sttus
8307
+
8071
8308
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8072
- * @param {string} terminal_phone_no The terminal for which you want to view the order details.
8309
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8310
+ * @param {UpdateTerminalStatusRequest} UpdateTerminalStatusRequest Request Body to update terminal status for SPOS.
8073
8311
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8074
8312
  * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8075
8313
  * @param {*} [options] Override http request option.
8076
8314
  * @throws {RequiredError}
8315
+ * x_request_id?: string,
8077
8316
  */
8078
- async sposFetchTerminal(x_api_version: string, terminal_phone_no: string, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalEntity>> {
8079
- const localVarAxiosArgs = await localVarAxiosParamCreator.sposFetchTerminal(x_api_version, terminal_phone_no, x_request_id, x_idempotency_key, options);
8080
- var url = "https://sandbox.cashfree.com/pg";
8081
- if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8082
- url = "https://api.cashfree.com/pg"
8083
- }
8084
- return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8085
- },
8086
- /**
8087
- * You can fetch all the StaticQRs corresponding to given terminal id or phone number. Provide either the terminal_phone_no or terminal_id in the request.
8088
- * @summary Fetch Terminal QR Codes
8089
- * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8090
- * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
8091
- * @param {string} cf_terminal_id Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
8317
+ sposUpdateTerminalStatus: async (x_api_version: string, cf_terminal_id: string, UpdateTerminalStatusRequest: UpdateTerminalStatusRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8318
+ // verify required parameter 'x_api_version' is not null or undefined
8319
+ assertParamExists('sposUpdateTerminalStatus', 'x_api_version', x_api_version)
8320
+ // verify required parameter 'cf_terminal_id' is not null or undefined
8321
+ assertParamExists('sposUpdateTerminalStatus', 'cf_terminal_id', cf_terminal_id)
8322
+ // verify required parameter 'UpdateTerminalStatusRequest' is not null or undefined
8323
+ assertParamExists('sposUpdateTerminalStatus', 'UpdateTerminalStatusRequest', UpdateTerminalStatusRequest)
8324
+ const localVarPath = `/terminal/{cf_terminal_id}/status`
8325
+ .replace(`{${"cf_terminal_id"}}`, encodeURIComponent(String(cf_terminal_id)));
8326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8327
+ var url = "https://sandbox.cashfree.com/pg";
8328
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8329
+ url = "https://api.cashfree.com/pg"
8330
+ }
8331
+ const localVarUrlObj = new URL(localVarPath, url);
8332
+ let baseOptions;
8333
+ if (configuration) {
8334
+ baseOptions = configuration.baseOptions;
8335
+ }
8336
+
8337
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8338
+ const localVarHeaderParameter = {} as any;
8339
+ const localVarQueryParameter = {} as any;
8340
+
8341
+ // authentication XPartnerAPIKey required
8342
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
8343
+
8344
+ // authentication XClientSecret required
8345
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
8346
+
8347
+ // authentication XPartnerMerchantID required
8348
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
8349
+
8350
+ // authentication XClientID required
8351
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
8352
+
8353
+ // authentication XClientSignatureHeader required
8354
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
8355
+
8356
+
8357
+
8358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8359
+
8360
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8361
+ if (x_api_version != null && x_api_version != undefined) {
8362
+ localVarHeaderParameter['x-api-version'] = x_api_version;
8363
+ }
8364
+
8365
+ if (x_request_id != null && x_request_id != undefined) {
8366
+ localVarHeaderParameter['x-request-id'] = x_request_id;
8367
+ }
8368
+
8369
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
8370
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
8371
+ }
8372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8375
+ localVarRequestOptions.data = serializeDataIfNeeded(UpdateTerminalStatusRequest, localVarRequestOptions, configuration)
8376
+
8377
+ return {
8378
+ url: toPathString(localVarUrlObj),
8379
+ options: localVarRequestOptions,
8380
+ };
8381
+ },
8382
+ /**
8383
+ * Use this API to upload the terminal documents.
8384
+ * @summary Upload Terminal Docs
8385
+
8386
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8387
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8388
+ * @param {UploadTerminalDocs} UploadTerminalDocs Request Body to update terminal documents for SPOS.
8389
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8390
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8391
+ * @param {*} [options] Override http request option.
8392
+ * @throws {RequiredError}
8393
+ * x_request_id?: string,
8394
+ */
8395
+ sposUploadTerminalDocs: async (x_api_version: string, cf_terminal_id: string, UploadTerminalDocs: UploadTerminalDocs, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8396
+ // verify required parameter 'x_api_version' is not null or undefined
8397
+ assertParamExists('sposUploadTerminalDocs', 'x_api_version', x_api_version)
8398
+ // verify required parameter 'cf_terminal_id' is not null or undefined
8399
+ assertParamExists('sposUploadTerminalDocs', 'cf_terminal_id', cf_terminal_id)
8400
+ // verify required parameter 'UploadTerminalDocs' is not null or undefined
8401
+ assertParamExists('sposUploadTerminalDocs', 'UploadTerminalDocs', UploadTerminalDocs)
8402
+ const localVarPath = `/terminal/{cf_terminal_id}/docs`
8403
+ .replace(`{${"cf_terminal_id"}}`, encodeURIComponent(String(cf_terminal_id)));
8404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8405
+ var url = "https://sandbox.cashfree.com/pg";
8406
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8407
+ url = "https://api.cashfree.com/pg"
8408
+ }
8409
+ const localVarUrlObj = new URL(localVarPath, url);
8410
+ let baseOptions;
8411
+ if (configuration) {
8412
+ baseOptions = configuration.baseOptions;
8413
+ }
8414
+
8415
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8416
+ const localVarHeaderParameter = {} as any;
8417
+ const localVarQueryParameter = {} as any;
8418
+
8419
+ // authentication XPartnerAPIKey required
8420
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
8421
+
8422
+ // authentication XClientSecret required
8423
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
8424
+
8425
+ // authentication XPartnerMerchantID required
8426
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
8427
+
8428
+ // authentication XClientID required
8429
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
8430
+
8431
+ // authentication XClientSignatureHeader required
8432
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
8433
+
8434
+
8435
+
8436
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8437
+
8438
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8439
+ if (x_api_version != null && x_api_version != undefined) {
8440
+ localVarHeaderParameter['x-api-version'] = x_api_version;
8441
+ }
8442
+
8443
+ if (x_request_id != null && x_request_id != undefined) {
8444
+ localVarHeaderParameter['x-request-id'] = x_request_id;
8445
+ }
8446
+
8447
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
8448
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
8449
+ }
8450
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8451
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8452
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8453
+ localVarRequestOptions.data = serializeDataIfNeeded(UploadTerminalDocs, localVarRequestOptions, configuration)
8454
+
8455
+ return {
8456
+ url: toPathString(localVarUrlObj),
8457
+ options: localVarRequestOptions,
8458
+ };
8459
+ },
8460
+ }
8461
+ };
8462
+
8463
+ /**
8464
+ * SoftPOSApi - functional programming interface
8465
+ * @export
8466
+ */
8467
+ const SoftPOSApiFp = function(configuration?: Configuration) {
8468
+ const localVarAxiosParamCreator = SoftPOSApiAxiosParamCreator(configuration)
8469
+ return {
8470
+ /**
8471
+ * Use this API to create new terminals to use softPOS.
8472
+ * @summary Create Terminal
8473
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8474
+ * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
8475
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8476
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8477
+ * @param {*} [options] Override http request option.
8478
+ * @throws {RequiredError}
8479
+ */
8480
+ async sposCreateTerminal(x_api_version: string, CreateTerminalRequest: CreateTerminalRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalEntity>> {
8481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposCreateTerminal(x_api_version, CreateTerminalRequest, x_request_id, x_idempotency_key, options);
8482
+ var url = "https://sandbox.cashfree.com/pg";
8483
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8484
+ url = "https://api.cashfree.com/pg"
8485
+ }
8486
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8487
+ },
8488
+ /**
8489
+ * Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
8490
+ * @summary Create Terminal Transaction
8491
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8492
+ * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
8493
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8494
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8495
+ * @param {*} [options] Override http request option.
8496
+ * @throws {RequiredError}
8497
+ */
8498
+ async sposCreateTerminalTransaction(x_api_version: string, CreateTerminalTransactionRequest: CreateTerminalTransactionRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalTransactionEntity>> {
8499
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposCreateTerminalTransaction(x_api_version, CreateTerminalTransactionRequest, x_request_id, x_idempotency_key, options);
8500
+ var url = "https://sandbox.cashfree.com/pg";
8501
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8502
+ url = "https://api.cashfree.com/pg"
8503
+ }
8504
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8505
+ },
8506
+ /**
8507
+ * Use this API to view all details of a terminal.
8508
+ * @summary Get Terminal Status using Phone Number
8509
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8510
+ * @param {string} terminal_phone_no The terminal for which you want to view the order details.
8511
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8512
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8513
+ * @param {*} [options] Override http request option.
8514
+ * @throws {RequiredError}
8515
+ */
8516
+ async sposFetchTerminal(x_api_version: string, terminal_phone_no: string, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminalEntity>> {
8517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposFetchTerminal(x_api_version, terminal_phone_no, x_request_id, x_idempotency_key, options);
8518
+ var url = "https://sandbox.cashfree.com/pg";
8519
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8520
+ url = "https://api.cashfree.com/pg"
8521
+ }
8522
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8523
+ },
8524
+ /**
8525
+ * You can fetch all the StaticQRs corresponding to given terminal id or phone number. Provide either the terminal_phone_no or terminal_id in the request.
8526
+ * @summary Fetch Terminal QR Codes
8527
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8528
+ * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
8529
+ * @param {string} cf_terminal_id Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
8092
8530
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8093
8531
  * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8094
8532
  * @param {*} [options] Override http request option.
@@ -8102,6 +8540,63 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
8102
8540
  }
8103
8541
  return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8104
8542
  },
8543
+ /**
8544
+ * Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\".
8545
+ * @summary Update Terminal
8546
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8547
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8548
+ * @param {UpdateTerminalRequest} UpdateTerminalRequest Request Body to update terminal for SPOS.
8549
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8550
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8551
+ * @param {*} [options] Override http request option.
8552
+ * @throws {RequiredError}
8553
+ */
8554
+ async sposUpdateTerminal(x_api_version: string, cf_terminal_id: string, UpdateTerminalRequest: UpdateTerminalRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UpdateTerminalEntity>>> {
8555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposUpdateTerminal(x_api_version, cf_terminal_id, UpdateTerminalRequest, x_request_id, x_idempotency_key, options);
8556
+ var url = "https://sandbox.cashfree.com/pg";
8557
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8558
+ url = "https://api.cashfree.com/pg"
8559
+ }
8560
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8561
+ },
8562
+ /**
8563
+ * Use this API to update the terminal status.
8564
+ * @summary Update Terminal Sttus
8565
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8566
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8567
+ * @param {UpdateTerminalStatusRequest} UpdateTerminalStatusRequest Request Body to update terminal status for SPOS.
8568
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8569
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8570
+ * @param {*} [options] Override http request option.
8571
+ * @throws {RequiredError}
8572
+ */
8573
+ async sposUpdateTerminalStatus(x_api_version: string, cf_terminal_id: string, UpdateTerminalStatusRequest: UpdateTerminalStatusRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UpdateTerminalEntity>>> {
8574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposUpdateTerminalStatus(x_api_version, cf_terminal_id, UpdateTerminalStatusRequest, x_request_id, x_idempotency_key, options);
8575
+ var url = "https://sandbox.cashfree.com/pg";
8576
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8577
+ url = "https://api.cashfree.com/pg"
8578
+ }
8579
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8580
+ },
8581
+ /**
8582
+ * Use this API to upload the terminal documents.
8583
+ * @summary Upload Terminal Docs
8584
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8585
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
8586
+ * @param {UploadTerminalDocs} UploadTerminalDocs Request Body to update terminal documents for SPOS.
8587
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8588
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8589
+ * @param {*} [options] Override http request option.
8590
+ * @throws {RequiredError}
8591
+ */
8592
+ async sposUploadTerminalDocs(x_api_version: string, cf_terminal_id: string, UploadTerminalDocs: UploadTerminalDocs, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UploadTerminalDocsEntity>>> {
8593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sposUploadTerminalDocs(x_api_version, cf_terminal_id, UploadTerminalDocs, x_request_id, x_idempotency_key, options);
8594
+ var url = "https://sandbox.cashfree.com/pg";
8595
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
8596
+ url = "https://api.cashfree.com/pg"
8597
+ }
8598
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
8599
+ },
8105
8600
  }
8106
8601
  };
8107
8602
 
@@ -8175,7 +8670,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8175
8670
 
8176
8671
 
8177
8672
 
8178
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8673
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8179
8674
  if (x_api_version != null && x_api_version != undefined) {
8180
8675
  localVarHeaderParameter['x-api-version'] = x_api_version;
8181
8676
  }
@@ -8251,7 +8746,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8251
8746
 
8252
8747
 
8253
8748
 
8254
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8749
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8255
8750
  if (x_api_version != null && x_api_version != undefined) {
8256
8751
  localVarHeaderParameter['x-api-version'] = x_api_version;
8257
8752
  }
@@ -8330,7 +8825,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8330
8825
 
8331
8826
 
8332
8827
 
8333
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8828
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8334
8829
  if (x_api_version != null && x_api_version != undefined) {
8335
8830
  localVarHeaderParameter['x-api-version'] = x_api_version;
8336
8831
  }
@@ -8406,7 +8901,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8406
8901
 
8407
8902
 
8408
8903
 
8409
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5';
8904
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.7';
8410
8905
  if (x_api_version != null && x_api_version != undefined) {
8411
8906
  localVarHeaderParameter['x-api-version'] = x_api_version;
8412
8907
  }
@@ -8634,7 +9129,7 @@ export class Cashfree {
8634
9129
  } else {
8635
9130
  scope.setExtra('environment', 'production');
8636
9131
  }
8637
- scope.setExtra('release', "4.0.5");
9132
+ scope.setExtra('release', "4.0.7");
8638
9133
  });
8639
9134
  }
8640
9135
  try {
@@ -8694,7 +9189,7 @@ export class Cashfree {
8694
9189
  } else {
8695
9190
  scope.setExtra('environment', 'production');
8696
9191
  }
8697
- scope.setExtra('release', "4.0.5");
9192
+ scope.setExtra('release', "4.0.7");
8698
9193
  });
8699
9194
  }
8700
9195
  try {
@@ -8754,7 +9249,7 @@ export class Cashfree {
8754
9249
  } else {
8755
9250
  scope.setExtra('environment', 'production');
8756
9251
  }
8757
- scope.setExtra('release', "4.0.5");
9252
+ scope.setExtra('release', "4.0.7");
8758
9253
  });
8759
9254
  }
8760
9255
  try {
@@ -8814,7 +9309,7 @@ export class Cashfree {
8814
9309
  } else {
8815
9310
  scope.setExtra('environment', 'production');
8816
9311
  }
8817
- scope.setExtra('release', "4.0.5");
9312
+ scope.setExtra('release', "4.0.7");
8818
9313
  });
8819
9314
  }
8820
9315
  try {
@@ -8874,7 +9369,7 @@ export class Cashfree {
8874
9369
  } else {
8875
9370
  scope.setExtra('environment', 'production');
8876
9371
  }
8877
- scope.setExtra('release', "4.0.5");
9372
+ scope.setExtra('release', "4.0.7");
8878
9373
  });
8879
9374
  }
8880
9375
  try {
@@ -8934,7 +9429,7 @@ export class Cashfree {
8934
9429
  } else {
8935
9430
  scope.setExtra('environment', 'production');
8936
9431
  }
8937
- scope.setExtra('release', "4.0.5");
9432
+ scope.setExtra('release', "4.0.7");
8938
9433
  });
8939
9434
  }
8940
9435
  try {
@@ -8994,7 +9489,7 @@ export class Cashfree {
8994
9489
  } else {
8995
9490
  scope.setExtra('environment', 'production');
8996
9491
  }
8997
- scope.setExtra('release', "4.0.5");
9492
+ scope.setExtra('release', "4.0.7");
8998
9493
  });
8999
9494
  }
9000
9495
  try {
@@ -9054,7 +9549,7 @@ export class Cashfree {
9054
9549
  } else {
9055
9550
  scope.setExtra('environment', 'production');
9056
9551
  }
9057
- scope.setExtra('release', "4.0.5");
9552
+ scope.setExtra('release', "4.0.7");
9058
9553
  });
9059
9554
  }
9060
9555
  try {
@@ -9114,7 +9609,7 @@ export class Cashfree {
9114
9609
  } else {
9115
9610
  scope.setExtra('environment', 'production');
9116
9611
  }
9117
- scope.setExtra('release', "4.0.5");
9612
+ scope.setExtra('release', "4.0.7");
9118
9613
  });
9119
9614
  }
9120
9615
  try {
@@ -9175,7 +9670,7 @@ export class Cashfree {
9175
9670
  } else {
9176
9671
  scope.setExtra('environment', 'production');
9177
9672
  }
9178
- scope.setExtra('release', "4.0.5");
9673
+ scope.setExtra('release', "4.0.7");
9179
9674
  });
9180
9675
  }
9181
9676
  try {
@@ -9237,7 +9732,7 @@ export class Cashfree {
9237
9732
  } else {
9238
9733
  scope.setExtra('environment', 'production');
9239
9734
  }
9240
- scope.setExtra('release', "4.0.5");
9735
+ scope.setExtra('release', "4.0.7");
9241
9736
  });
9242
9737
  }
9243
9738
  try {
@@ -9297,7 +9792,7 @@ export class Cashfree {
9297
9792
  } else {
9298
9793
  scope.setExtra('environment', 'production');
9299
9794
  }
9300
- scope.setExtra('release', "4.0.5");
9795
+ scope.setExtra('release', "4.0.7");
9301
9796
  });
9302
9797
  }
9303
9798
  try {
@@ -9357,7 +9852,7 @@ export class Cashfree {
9357
9852
  } else {
9358
9853
  scope.setExtra('environment', 'production');
9359
9854
  }
9360
- scope.setExtra('release', "4.0.5");
9855
+ scope.setExtra('release', "4.0.7");
9361
9856
  });
9362
9857
  }
9363
9858
  try {
@@ -9417,7 +9912,7 @@ export class Cashfree {
9417
9912
  } else {
9418
9913
  scope.setExtra('environment', 'production');
9419
9914
  }
9420
- scope.setExtra('release', "4.0.5");
9915
+ scope.setExtra('release', "4.0.7");
9421
9916
  });
9422
9917
  }
9423
9918
  try {
@@ -9477,7 +9972,7 @@ export class Cashfree {
9477
9972
  } else {
9478
9973
  scope.setExtra('environment', 'production');
9479
9974
  }
9480
- scope.setExtra('release', "4.0.5");
9975
+ scope.setExtra('release', "4.0.7");
9481
9976
  });
9482
9977
  }
9483
9978
  try {
@@ -9538,7 +10033,7 @@ export class Cashfree {
9538
10033
  } else {
9539
10034
  scope.setExtra('environment', 'production');
9540
10035
  }
9541
- scope.setExtra('release', "4.0.5");
10036
+ scope.setExtra('release', "4.0.7");
9542
10037
  });
9543
10038
  }
9544
10039
  try {
@@ -9599,7 +10094,7 @@ export class Cashfree {
9599
10094
  } else {
9600
10095
  scope.setExtra('environment', 'production');
9601
10096
  }
9602
- scope.setExtra('release', "4.0.5");
10097
+ scope.setExtra('release', "4.0.7");
9603
10098
  });
9604
10099
  }
9605
10100
  try {
@@ -9660,7 +10155,7 @@ export class Cashfree {
9660
10155
  } else {
9661
10156
  scope.setExtra('environment', 'production');
9662
10157
  }
9663
- scope.setExtra('release', "4.0.5");
10158
+ scope.setExtra('release', "4.0.7");
9664
10159
  });
9665
10160
  }
9666
10161
  try {
@@ -9720,7 +10215,7 @@ export class Cashfree {
9720
10215
  } else {
9721
10216
  scope.setExtra('environment', 'production');
9722
10217
  }
9723
- scope.setExtra('release', "4.0.5");
10218
+ scope.setExtra('release', "4.0.7");
9724
10219
  });
9725
10220
  }
9726
10221
  try {
@@ -9780,7 +10275,7 @@ export class Cashfree {
9780
10275
  } else {
9781
10276
  scope.setExtra('environment', 'production');
9782
10277
  }
9783
- scope.setExtra('release', "4.0.5");
10278
+ scope.setExtra('release', "4.0.7");
9784
10279
  });
9785
10280
  }
9786
10281
  try {
@@ -9841,7 +10336,7 @@ export class Cashfree {
9841
10336
  } else {
9842
10337
  scope.setExtra('environment', 'production');
9843
10338
  }
9844
- scope.setExtra('release', "4.0.5");
10339
+ scope.setExtra('release', "4.0.7");
9845
10340
  });
9846
10341
  }
9847
10342
  try {
@@ -9902,7 +10397,7 @@ export class Cashfree {
9902
10397
  } else {
9903
10398
  scope.setExtra('environment', 'production');
9904
10399
  }
9905
- scope.setExtra('release', "4.0.5");
10400
+ scope.setExtra('release', "4.0.7");
9906
10401
  });
9907
10402
  }
9908
10403
  try {
@@ -9962,7 +10457,7 @@ export class Cashfree {
9962
10457
  } else {
9963
10458
  scope.setExtra('environment', 'production');
9964
10459
  }
9965
- scope.setExtra('release', "4.0.5");
10460
+ scope.setExtra('release', "4.0.7");
9966
10461
  });
9967
10462
  }
9968
10463
  try {
@@ -10024,7 +10519,7 @@ export class Cashfree {
10024
10519
  } else {
10025
10520
  scope.setExtra('environment', 'production');
10026
10521
  }
10027
- scope.setExtra('release', "4.0.5");
10522
+ scope.setExtra('release', "4.0.7");
10028
10523
  });
10029
10524
  }
10030
10525
  try {
@@ -10086,7 +10581,7 @@ export class Cashfree {
10086
10581
  } else {
10087
10582
  scope.setExtra('environment', 'production');
10088
10583
  }
10089
- scope.setExtra('release', "4.0.5");
10584
+ scope.setExtra('release', "4.0.7");
10090
10585
  });
10091
10586
  }
10092
10587
  try {
@@ -10146,7 +10641,7 @@ export class Cashfree {
10146
10641
  } else {
10147
10642
  scope.setExtra('environment', 'production');
10148
10643
  }
10149
- scope.setExtra('release', "4.0.5");
10644
+ scope.setExtra('release', "4.0.7");
10150
10645
  });
10151
10646
  }
10152
10647
  try {
@@ -10206,7 +10701,7 @@ export class Cashfree {
10206
10701
  } else {
10207
10702
  scope.setExtra('environment', 'production');
10208
10703
  }
10209
- scope.setExtra('release', "4.0.5");
10704
+ scope.setExtra('release', "4.0.7");
10210
10705
  });
10211
10706
  }
10212
10707
  try {
@@ -10266,7 +10761,7 @@ export class Cashfree {
10266
10761
  } else {
10267
10762
  scope.setExtra('environment', 'production');
10268
10763
  }
10269
- scope.setExtra('release', "4.0.5");
10764
+ scope.setExtra('release', "4.0.7");
10270
10765
  });
10271
10766
  }
10272
10767
  try {
@@ -10281,7 +10776,7 @@ export class Cashfree {
10281
10776
 
10282
10777
  /**
10283
10778
  * Use this API to view all details of a terminal.
10284
- * @summary Get terminal status using phone number
10779
+ * @summary Get Terminal Status using Phone Number
10285
10780
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
10286
10781
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
10287
10782
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
@@ -10326,7 +10821,7 @@ export class Cashfree {
10326
10821
  } else {
10327
10822
  scope.setExtra('environment', 'production');
10328
10823
  }
10329
- scope.setExtra('release', "4.0.5");
10824
+ scope.setExtra('release', "4.0.7");
10330
10825
  });
10331
10826
  }
10332
10827
  try {
@@ -10387,7 +10882,7 @@ export class Cashfree {
10387
10882
  } else {
10388
10883
  scope.setExtra('environment', 'production');
10389
10884
  }
10390
- scope.setExtra('release', "4.0.5");
10885
+ scope.setExtra('release', "4.0.7");
10391
10886
  });
10392
10887
  }
10393
10888
  try {
@@ -10399,6 +10894,189 @@ export class Cashfree {
10399
10894
  throw error;
10400
10895
  }
10401
10896
  }
10897
+
10898
+ /**
10899
+ * Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\".
10900
+ * @summary Update Terminal
10901
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
10902
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
10903
+ * @param {UpdateTerminalRequest} UpdateTerminalRequest Request Body to update terminal for SPOS.
10904
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
10905
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
10906
+ * @param {*} [options] Override http request option.
10907
+ * @throws {RequiredError}
10908
+ * @memberof SoftPOSApi
10909
+ */
10910
+ public static SposUpdateTerminal(x_api_version: string, cf_terminal_id: string, UpdateTerminalRequest: UpdateTerminalRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
10911
+ if(Cashfree.XEnableErrorAnalytics) {
10912
+ Sentry.init({
10913
+ dsn: 'https://748d9dcfc4286488867c59651cb6121a@o330525.ingest.sentry.io/4506692796350464',
10914
+ // Performance Monitoring
10915
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
10916
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
10917
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
10918
+ attachStacktrace: true,
10919
+ enableTracing: true,
10920
+ beforeSend: (event) => {
10921
+ delete event.contexts.os;
10922
+ delete event.contexts.device;
10923
+ delete event.server_name;
10924
+ if (event.exception && event.exception.values && event.exception.values.length && event.exception.values[0].stacktrace) {
10925
+ const stackTrace = event.exception.values[0].stacktrace;
10926
+ if (stackTrace && stackTrace.frames) {
10927
+
10928
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
10929
+ if (filteredDomains && filteredDomains.length > 0 && filteredDomains[0].includes("cashfree-pg")) {
10930
+ if(Cashfree.XEnableErrorAnalytics) {
10931
+ return event;
10932
+ }
10933
+ return null;
10934
+ }
10935
+ }
10936
+ }
10937
+ return null;
10938
+ },
10939
+ });
10940
+ Sentry.configureScope((scope) => {
10941
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
10942
+ scope.setExtra('environment', 'sandbox');
10943
+ } else {
10944
+ scope.setExtra('environment', 'production');
10945
+ }
10946
+ scope.setExtra('release', "4.0.7");
10947
+ });
10948
+ }
10949
+ try {
10950
+ return SoftPOSApiFp().sposUpdateTerminal(x_api_version, cf_terminal_id, UpdateTerminalRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
10951
+ } catch (error) {
10952
+ if(Cashfree.XEnableErrorAnalytics) {
10953
+ Sentry.captureException(error);
10954
+ }
10955
+ throw error;
10956
+ }
10957
+ }
10958
+
10959
+ /**
10960
+ * Use this API to update the terminal status.
10961
+ * @summary Update Terminal Sttus
10962
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
10963
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
10964
+ * @param {UpdateTerminalStatusRequest} UpdateTerminalStatusRequest Request Body to update terminal status for SPOS.
10965
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
10966
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
10967
+ * @param {*} [options] Override http request option.
10968
+ * @throws {RequiredError}
10969
+ * @memberof SoftPOSApi
10970
+ */
10971
+ public static SposUpdateTerminalStatus(x_api_version: string, cf_terminal_id: string, UpdateTerminalStatusRequest: UpdateTerminalStatusRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
10972
+ if(Cashfree.XEnableErrorAnalytics) {
10973
+ Sentry.init({
10974
+ dsn: 'https://748d9dcfc4286488867c59651cb6121a@o330525.ingest.sentry.io/4506692796350464',
10975
+ // Performance Monitoring
10976
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
10977
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
10978
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
10979
+ attachStacktrace: true,
10980
+ enableTracing: true,
10981
+ beforeSend: (event) => {
10982
+ delete event.contexts.os;
10983
+ delete event.contexts.device;
10984
+ delete event.server_name;
10985
+ if (event.exception && event.exception.values && event.exception.values.length && event.exception.values[0].stacktrace) {
10986
+ const stackTrace = event.exception.values[0].stacktrace;
10987
+ if (stackTrace && stackTrace.frames) {
10988
+
10989
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
10990
+ if (filteredDomains && filteredDomains.length > 0 && filteredDomains[0].includes("cashfree-pg")) {
10991
+ if(Cashfree.XEnableErrorAnalytics) {
10992
+ return event;
10993
+ }
10994
+ return null;
10995
+ }
10996
+ }
10997
+ }
10998
+ return null;
10999
+ },
11000
+ });
11001
+ Sentry.configureScope((scope) => {
11002
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
11003
+ scope.setExtra('environment', 'sandbox');
11004
+ } else {
11005
+ scope.setExtra('environment', 'production');
11006
+ }
11007
+ scope.setExtra('release', "4.0.7");
11008
+ });
11009
+ }
11010
+ try {
11011
+ return SoftPOSApiFp().sposUpdateTerminalStatus(x_api_version, cf_terminal_id, UpdateTerminalStatusRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
11012
+ } catch (error) {
11013
+ if(Cashfree.XEnableErrorAnalytics) {
11014
+ Sentry.captureException(error);
11015
+ }
11016
+ throw error;
11017
+ }
11018
+ }
11019
+
11020
+ /**
11021
+ * Use this API to upload the terminal documents.
11022
+ * @summary Upload Terminal Docs
11023
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
11024
+ * @param {string} cf_terminal_id Provide the Cashfree terminal ID for which the details have to be updated.
11025
+ * @param {UploadTerminalDocs} UploadTerminalDocs Request Body to update terminal documents for SPOS.
11026
+ * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
11027
+ * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
11028
+ * @param {*} [options] Override http request option.
11029
+ * @throws {RequiredError}
11030
+ * @memberof SoftPOSApi
11031
+ */
11032
+ public static SposUploadTerminalDocs(x_api_version: string, cf_terminal_id: string, UploadTerminalDocs: UploadTerminalDocs, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
11033
+ if(Cashfree.XEnableErrorAnalytics) {
11034
+ Sentry.init({
11035
+ dsn: 'https://748d9dcfc4286488867c59651cb6121a@o330525.ingest.sentry.io/4506692796350464',
11036
+ // Performance Monitoring
11037
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
11038
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
11039
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
11040
+ attachStacktrace: true,
11041
+ enableTracing: true,
11042
+ beforeSend: (event) => {
11043
+ delete event.contexts.os;
11044
+ delete event.contexts.device;
11045
+ delete event.server_name;
11046
+ if (event.exception && event.exception.values && event.exception.values.length && event.exception.values[0].stacktrace) {
11047
+ const stackTrace = event.exception.values[0].stacktrace;
11048
+ if (stackTrace && stackTrace.frames) {
11049
+
11050
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
11051
+ if (filteredDomains && filteredDomains.length > 0 && filteredDomains[0].includes("cashfree-pg")) {
11052
+ if(Cashfree.XEnableErrorAnalytics) {
11053
+ return event;
11054
+ }
11055
+ return null;
11056
+ }
11057
+ }
11058
+ }
11059
+ return null;
11060
+ },
11061
+ });
11062
+ Sentry.configureScope((scope) => {
11063
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
11064
+ scope.setExtra('environment', 'sandbox');
11065
+ } else {
11066
+ scope.setExtra('environment', 'production');
11067
+ }
11068
+ scope.setExtra('release', "4.0.7");
11069
+ });
11070
+ }
11071
+ try {
11072
+ return SoftPOSApiFp().sposUploadTerminalDocs(x_api_version, cf_terminal_id, UploadTerminalDocs, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
11073
+ } catch (error) {
11074
+ if(Cashfree.XEnableErrorAnalytics) {
11075
+ Sentry.captureException(error);
11076
+ }
11077
+ throw error;
11078
+ }
11079
+ }
10402
11080
 
10403
11081
  /**
10404
11082
  * Use this API to delete a saved card instrument for a customer_id and instrument_id
@@ -10448,7 +11126,7 @@ export class Cashfree {
10448
11126
  } else {
10449
11127
  scope.setExtra('environment', 'production');
10450
11128
  }
10451
- scope.setExtra('release', "4.0.5");
11129
+ scope.setExtra('release', "4.0.7");
10452
11130
  });
10453
11131
  }
10454
11132
  try {
@@ -10509,7 +11187,7 @@ export class Cashfree {
10509
11187
  } else {
10510
11188
  scope.setExtra('environment', 'production');
10511
11189
  }
10512
- scope.setExtra('release', "4.0.5");
11190
+ scope.setExtra('release', "4.0.7");
10513
11191
  });
10514
11192
  }
10515
11193
  try {
@@ -10570,7 +11248,7 @@ export class Cashfree {
10570
11248
  } else {
10571
11249
  scope.setExtra('environment', 'production');
10572
11250
  }
10573
- scope.setExtra('release', "4.0.5");
11251
+ scope.setExtra('release', "4.0.7");
10574
11252
  });
10575
11253
  }
10576
11254
  try {
@@ -10631,7 +11309,7 @@ export class Cashfree {
10631
11309
  } else {
10632
11310
  scope.setExtra('environment', 'production');
10633
11311
  }
10634
- scope.setExtra('release', "4.0.5");
11312
+ scope.setExtra('release', "4.0.7");
10635
11313
  });
10636
11314
  }
10637
11315
  try {