@munchi_oy/core 1.4.9 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/generated/api.ts CHANGED
@@ -1741,6 +1741,12 @@ export interface CashRefundPayload {
1741
1741
  * @memberof CashRefundPayload
1742
1742
  */
1743
1743
  'items'?: Array<RefundedItemDto>;
1744
+ /**
1745
+ * Per-line allocation persisted for this payment refund, keyed to original line item ids
1746
+ * @type {Array<PaymentRefundLineAllocationDto>}
1747
+ * @memberof CashRefundPayload
1748
+ */
1749
+ 'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
1744
1750
  /**
1745
1751
  *
1746
1752
  * @type {PaymentMethod}
@@ -2651,40 +2657,6 @@ export interface ConnectTerminalDto {
2651
2657
  */
2652
2658
  'terminalHardwareId': string;
2653
2659
  }
2654
- /**
2655
- *
2656
- * @export
2657
- * @interface ConnectionTokenPayloadDto
2658
- */
2659
- export interface ConnectionTokenPayloadDto {
2660
- /**
2661
- * The ordering business ID for this transaction.
2662
- * @type {number}
2663
- * @memberof ConnectionTokenPayloadDto
2664
- */
2665
- 'orderingBusinessId': number;
2666
- /**
2667
- *
2668
- * @type {PaymentProvider}
2669
- * @memberof ConnectionTokenPayloadDto
2670
- */
2671
- 'provider': PaymentProvider;
2672
- }
2673
-
2674
-
2675
- /**
2676
- *
2677
- * @export
2678
- * @interface ConnectionTokenResponseDto
2679
- */
2680
- export interface ConnectionTokenResponseDto {
2681
- /**
2682
- * The access token for the payment provider.
2683
- * @type {string}
2684
- * @memberof ConnectionTokenResponseDto
2685
- */
2686
- 'accessToken': string;
2687
- }
2688
2660
  /**
2689
2661
  *
2690
2662
  * @export
@@ -3389,26 +3361,6 @@ export const DeliveryType = {
3389
3361
  export type DeliveryType = typeof DeliveryType[keyof typeof DeliveryType];
3390
3362
 
3391
3363
 
3392
- /**
3393
- *
3394
- * @export
3395
- * @enum {string}
3396
- */
3397
-
3398
- export const DeviceStatus = {
3399
- NUMBER_0: 0,
3400
- NUMBER_1: 1,
3401
- NUMBER_2: 2,
3402
- NUMBER_3: 3,
3403
- NUMBER_4: 4,
3404
- NUMBER_5: 5,
3405
- NUMBER_6: 6,
3406
- NUMBER_7: 7
3407
- } as const;
3408
-
3409
- export type DeviceStatus = typeof DeviceStatus[keyof typeof DeviceStatus];
3410
-
3411
-
3412
3364
  /**
3413
3365
  *
3414
3366
  * @export
@@ -3434,6 +3386,21 @@ export interface DeviceSubscriptionDto {
3434
3386
  */
3435
3387
  'businessIds': Array<number>;
3436
3388
  }
3389
+ /**
3390
+ *
3391
+ * @export
3392
+ * @enum {string}
3393
+ */
3394
+
3395
+ export const DeviceType = {
3396
+ Tablet: 'TABLET',
3397
+ KioskStand: 'KIOSK_STAND',
3398
+ SmartTerminal: 'SMART_TERMINAL'
3399
+ } as const;
3400
+
3401
+ export type DeviceType = typeof DeviceType[keyof typeof DeviceType];
3402
+
3403
+
3437
3404
  /**
3438
3405
  *
3439
3406
  * @export
@@ -4493,6 +4460,33 @@ export interface FirebaseTokenDto {
4493
4460
  */
4494
4461
  'customToken': string;
4495
4462
  }
4463
+ /**
4464
+ *
4465
+ * @export
4466
+ * @interface GetPaymentReferenceDto
4467
+ */
4468
+ export interface GetPaymentReferenceDto {
4469
+ /**
4470
+ *
4471
+ * @type {PaymentProvider}
4472
+ * @memberof GetPaymentReferenceDto
4473
+ */
4474
+ 'provider': PaymentProvider;
4475
+ /**
4476
+ *
4477
+ * @type {string}
4478
+ * @memberof GetPaymentReferenceDto
4479
+ */
4480
+ 'transactionId': string;
4481
+ /**
4482
+ *
4483
+ * @type {string}
4484
+ * @memberof GetPaymentReferenceDto
4485
+ */
4486
+ 'orderId': string;
4487
+ }
4488
+
4489
+
4496
4490
  /**
4497
4491
  *
4498
4492
  * @export
@@ -4569,6 +4563,12 @@ export interface GetStationResponseDtoStation {
4569
4563
  * @memberof GetStationResponseDtoStation
4570
4564
  */
4571
4565
  'type': StationType;
4566
+ /**
4567
+ *
4568
+ * @type {DeviceType}
4569
+ * @memberof GetStationResponseDtoStation
4570
+ */
4571
+ 'deviceType'?: DeviceType;
4572
4572
  /**
4573
4573
  *
4574
4574
  * @type {Status}
@@ -5874,6 +5874,12 @@ export interface ManualRefundPayload {
5874
5874
  * @memberof ManualRefundPayload
5875
5875
  */
5876
5876
  'items'?: Array<RefundedItemDto>;
5877
+ /**
5878
+ * Per-line allocation persisted for this payment refund, keyed to original line item ids
5879
+ * @type {Array<PaymentRefundLineAllocationDto>}
5880
+ * @memberof ManualRefundPayload
5881
+ */
5882
+ 'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
5877
5883
  /**
5878
5884
  *
5879
5885
  * @type {PaymentMethod}
@@ -8693,19 +8699,6 @@ export interface PaymentIntegrationLinkDto {
8693
8699
  */
8694
8700
  'redeem'?: string | null;
8695
8701
  }
8696
- /**
8697
- *
8698
- * @export
8699
- * @interface PaymentIntentIdDto
8700
- */
8701
- export interface PaymentIntentIdDto {
8702
- /**
8703
- * The ID of the payment intent to capture or cancel
8704
- * @type {string}
8705
- * @memberof PaymentIntentIdDto
8706
- */
8707
- 'id': string;
8708
- }
8709
8702
  /**
8710
8703
  *
8711
8704
  * @export
@@ -9259,6 +9252,33 @@ export interface PaymentProviderResponseDtoAdditionalConfig {
9259
9252
  */
9260
9253
  'sourceCode'?: string | null;
9261
9254
  }
9255
+ /**
9256
+ *
9257
+ * @export
9258
+ * @interface PaymentReferenceResponseDto
9259
+ */
9260
+ export interface PaymentReferenceResponseDto {
9261
+ /**
9262
+ *
9263
+ * @type {PaymentProvider}
9264
+ * @memberof PaymentReferenceResponseDto
9265
+ */
9266
+ 'provider': PaymentProvider;
9267
+ /**
9268
+ *
9269
+ * @type {string}
9270
+ * @memberof PaymentReferenceResponseDto
9271
+ */
9272
+ 'originalTransactionId': string;
9273
+ /**
9274
+ *
9275
+ * @type {object}
9276
+ * @memberof PaymentReferenceResponseDto
9277
+ */
9278
+ 'references': object | null;
9279
+ }
9280
+
9281
+
9262
9282
  /**
9263
9283
  *
9264
9284
  * @export
@@ -9344,6 +9364,12 @@ export interface PaymentRefundDto {
9344
9364
  * @memberof PaymentRefundDto
9345
9365
  */
9346
9366
  'items'?: Array<RefundedItemDto>;
9367
+ /**
9368
+ * Per-line allocation persisted for this payment refund, keyed to original line item ids
9369
+ * @type {Array<PaymentRefundLineAllocationDto>}
9370
+ * @memberof PaymentRefundDto
9371
+ */
9372
+ 'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
9347
9373
  /**
9348
9374
  *
9349
9375
  * @type {PaymentMethod}
@@ -9359,6 +9385,31 @@ export interface PaymentRefundDto {
9359
9385
  }
9360
9386
 
9361
9387
 
9388
+ /**
9389
+ *
9390
+ * @export
9391
+ * @interface PaymentRefundLineAllocationDto
9392
+ */
9393
+ export interface PaymentRefundLineAllocationDto {
9394
+ /**
9395
+ * Original line item id that this refund amount was applied to
9396
+ * @type {string}
9397
+ * @memberof PaymentRefundLineAllocationDto
9398
+ */
9399
+ 'lineItemId': string;
9400
+ /**
9401
+ * Refunded amount allocated to this line item from the payment refund
9402
+ * @type {number}
9403
+ * @memberof PaymentRefundLineAllocationDto
9404
+ */
9405
+ 'amount': number;
9406
+ /**
9407
+ * Refunded quantity allocated to this line item from the payment refund
9408
+ * @type {number}
9409
+ * @memberof PaymentRefundLineAllocationDto
9410
+ */
9411
+ 'quantity': number;
9412
+ }
9362
9413
  /**
9363
9414
  *
9364
9415
  * @export
@@ -12809,6 +12860,23 @@ export interface RefundDto {
12809
12860
  }
12810
12861
 
12811
12862
 
12863
+ /**
12864
+ *
12865
+ * @export
12866
+ * @enum {string}
12867
+ */
12868
+
12869
+ export const RefundFailureReasonKey = {
12870
+ FullNotSupportedGiftCard: 'screens.pos.refund.fullNotSupportedGiftCard',
12871
+ PartialShortfallGiftCardPortion: 'screens.pos.refund.partialShortfallGiftCardPortion',
12872
+ PlanOverAllocation: 'screens.pos.refund.planOverAllocation',
12873
+ CannotSplitLinkedNonSplittable: 'screens.pos.refund.cannotSplitLinkedNonSplittable',
12874
+ InsufficientFunds: 'screens.pos.refund.insufficientFunds'
12875
+ } as const;
12876
+
12877
+ export type RefundFailureReasonKey = typeof RefundFailureReasonKey[keyof typeof RefundFailureReasonKey];
12878
+
12879
+
12812
12880
  /**
12813
12881
  *
12814
12882
  * @export
@@ -12957,11 +13025,11 @@ export interface RefundPlanDto {
12957
13025
  */
12958
13026
  'mode': RefundMode;
12959
13027
  /**
12960
- * A translation key for the frontend if the status is FAILED.
12961
- * @type {object}
13028
+ *
13029
+ * @type {RefundFailureReasonKey}
12962
13030
  * @memberof RefundPlanDto
12963
13031
  */
12964
- 'failureReasonKey'?: object | null;
13032
+ 'failureReasonKey'?: RefundFailureReasonKey | null;
12965
13033
  /**
12966
13034
  *
12967
13035
  * @type {RefundOverallStatus}
@@ -13743,6 +13811,12 @@ export interface StationDetailsDto {
13743
13811
  * @memberof StationDetailsDto
13744
13812
  */
13745
13813
  'type': StationType;
13814
+ /**
13815
+ *
13816
+ * @type {DeviceType}
13817
+ * @memberof StationDetailsDto
13818
+ */
13819
+ 'deviceType'?: DeviceType;
13746
13820
  /**
13747
13821
  *
13748
13822
  * @type {Status}
@@ -13886,129 +13960,6 @@ export const Status = {
13886
13960
  export type Status = typeof Status[keyof typeof Status];
13887
13961
 
13888
13962
 
13889
- /**
13890
- *
13891
- * @export
13892
- * @interface StripeConnectionTokenDto
13893
- */
13894
- export interface StripeConnectionTokenDto {
13895
- /**
13896
- * String representing the object\'s type
13897
- * @type {string}
13898
- * @memberof StripeConnectionTokenDto
13899
- */
13900
- 'object': string;
13901
- /**
13902
- * The id of the location that this connection token is scoped to
13903
- * @type {string}
13904
- * @memberof StripeConnectionTokenDto
13905
- */
13906
- 'location'?: string;
13907
- /**
13908
- * Your application should pass this token to the Stripe Terminal SDK
13909
- * @type {string}
13910
- * @memberof StripeConnectionTokenDto
13911
- */
13912
- 'secret': string;
13913
- }
13914
- /**
13915
- *
13916
- * @export
13917
- * @interface StripePaymentIntentDto
13918
- */
13919
- export interface StripePaymentIntentDto {
13920
- /**
13921
- * Unique identifier for the payment intent
13922
- * @type {string}
13923
- * @memberof StripePaymentIntentDto
13924
- */
13925
- 'id': string;
13926
- /**
13927
- * Object type, always \"payment_intent\"
13928
- * @type {string}
13929
- * @memberof StripePaymentIntentDto
13930
- */
13931
- 'object': string;
13932
- /**
13933
- * Amount intended to be collected (in smallest currency unit)
13934
- * @type {number}
13935
- * @memberof StripePaymentIntentDto
13936
- */
13937
- 'amount': number;
13938
- /**
13939
- * Amount that can be captured from this payment intent
13940
- * @type {number}
13941
- * @memberof StripePaymentIntentDto
13942
- */
13943
- 'amount_capturable': number;
13944
- /**
13945
- * Amount that has been received from this payment intent
13946
- * @type {number}
13947
- * @memberof StripePaymentIntentDto
13948
- */
13949
- 'amount_received': number;
13950
- /**
13951
- * The currency of the payment intent
13952
- * @type {string}
13953
- * @memberof StripePaymentIntentDto
13954
- */
13955
- 'currency': string;
13956
- /**
13957
- * Customer ID this payment intent belongs to, if any
13958
- * @type {object}
13959
- * @memberof StripePaymentIntentDto
13960
- */
13961
- 'customer'?: object | null;
13962
- /**
13963
- * Status of the payment intent
13964
- * @type {string}
13965
- * @memberof StripePaymentIntentDto
13966
- */
13967
- 'status': StatusEnum;
13968
- /**
13969
- * ID of the payment method used in this payment intent
13970
- * @type {object}
13971
- * @memberof StripePaymentIntentDto
13972
- */
13973
- 'payment_method'?: object | null;
13974
- /**
13975
- * Time at which the object was created
13976
- * @type {number}
13977
- * @memberof StripePaymentIntentDto
13978
- */
13979
- 'created': number;
13980
- /**
13981
- * Has the value true if the object exists in live mode or false if the object exists in test mode
13982
- * @type {boolean}
13983
- * @memberof StripePaymentIntentDto
13984
- */
13985
- 'livemode': boolean;
13986
- /**
13987
- * Shipping information
13988
- * @type {object}
13989
- * @memberof StripePaymentIntentDto
13990
- */
13991
- 'shipping'?: object | null;
13992
- /**
13993
- * Set of key-value pairs attached to the object
13994
- * @type {object}
13995
- * @memberof StripePaymentIntentDto
13996
- */
13997
- 'metadata'?: object;
13998
- }
13999
-
14000
- export const StatusEnum = {
14001
- RequiresPaymentMethod: 'requires_payment_method',
14002
- RequiresConfirmation: 'requires_confirmation',
14003
- RequiresAction: 'requires_action',
14004
- Processing: 'processing',
14005
- RequiresCapture: 'requires_capture',
14006
- Canceled: 'canceled',
14007
- Succeeded: 'succeeded'
14008
- } as const;
14009
-
14010
- export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
14011
-
14012
13963
  /**
14013
13964
  *
14014
13965
  * @export
@@ -14207,6 +14158,12 @@ export interface SyncStationDto {
14207
14158
  * @memberof SyncStationDto
14208
14159
  */
14209
14160
  'type'?: StationType;
14161
+ /**
14162
+ *
14163
+ * @type {DeviceType}
14164
+ * @memberof SyncStationDto
14165
+ */
14166
+ 'deviceType'?: DeviceType;
14210
14167
  /**
14211
14168
  * Payment terminal ID associated with this station
14212
14169
  * @type {string}
@@ -16925,62 +16882,187 @@ export interface VideoBackgroundConfig {
16925
16882
  /**
16926
16883
  *
16927
16884
  * @export
16928
- * @interface VivaCancelTransactionDto
16885
+ * @interface VivaAppToAppInitResponseDto
16929
16886
  */
16930
- export interface VivaCancelTransactionDto {
16887
+ export interface VivaAppToAppInitResponseDto {
16931
16888
  /**
16932
- * The session ID for the transaction.
16889
+ *
16933
16890
  * @type {string}
16934
- * @memberof VivaCancelTransactionDto
16891
+ * @memberof VivaAppToAppInitResponseDto
16935
16892
  */
16936
- 'sessionId': string;
16893
+ 'clientTransactionId': string;
16937
16894
  /**
16938
- * The cash register ID for the transaction.
16939
- * @type {string}
16940
- * @memberof VivaCancelTransactionDto
16895
+ *
16896
+ * @type {number}
16897
+ * @memberof VivaAppToAppInitResponseDto
16941
16898
  */
16942
- 'cashRegisterId': string;
16943
- }
16944
- /**
16945
- *
16946
- * @export
16947
- * @interface VivaConfigDto
16948
- */
16949
- export interface VivaConfigDto {
16899
+ 'amount': number;
16950
16900
  /**
16951
16901
  *
16952
16902
  * @type {number}
16953
- * @memberof VivaConfigDto
16903
+ * @memberof VivaAppToAppInitResponseDto
16954
16904
  */
16955
- 'rate'?: number;
16905
+ 'tipAmount': number;
16956
16906
  /**
16957
16907
  *
16958
- * @type {string}
16959
- * @memberof VivaConfigDto
16908
+ * @type {VivaAppToAppPaymentMethod}
16909
+ * @memberof VivaAppToAppInitResponseDto
16960
16910
  */
16961
- 'merchantId'?: string;
16911
+ 'paymentMethod': VivaAppToAppPaymentMethod;
16962
16912
  /**
16963
16913
  *
16964
- * @type {string}
16965
- * @memberof VivaConfigDto
16914
+ * @type {number}
16915
+ * @memberof VivaAppToAppInitResponseDto
16966
16916
  */
16967
- 'sourceCode'?: string;
16917
+ 'sourceCode': number;
16968
16918
  /**
16969
16919
  *
16970
- * @type {number}
16971
- * @memberof VivaConfigDto
16920
+ * @type {boolean}
16921
+ * @memberof VivaAppToAppInitResponseDto
16972
16922
  */
16973
- 'additionalAmount'?: number;
16974
- }
16975
- /**
16976
- *
16977
- * @export
16978
- * @interface VivaCreatePaymentDto
16979
- */
16980
- export interface VivaCreatePaymentDto {
16923
+ 'show_receipt': boolean;
16981
16924
  /**
16982
- * The ordering business ID for this transaction.
16983
- * @type {number}
16925
+ *
16926
+ * @type {boolean}
16927
+ * @memberof VivaAppToAppInitResponseDto
16928
+ */
16929
+ 'show_transaction_result': boolean;
16930
+ /**
16931
+ *
16932
+ * @type {boolean}
16933
+ * @memberof VivaAppToAppInitResponseDto
16934
+ */
16935
+ 'show_rating': boolean;
16936
+ /**
16937
+ * The ISV amount.
16938
+ * @type {number}
16939
+ * @memberof VivaAppToAppInitResponseDto
16940
+ */
16941
+ 'ISV_amount'?: number;
16942
+ /**
16943
+ * The ISV client ID.
16944
+ * @type {string}
16945
+ * @memberof VivaAppToAppInitResponseDto
16946
+ */
16947
+ 'ISV_clientId'?: string;
16948
+ /**
16949
+ * The ISV client secret. Only include this if the mobile app must send it for the POC.
16950
+ * @type {string}
16951
+ * @memberof VivaAppToAppInitResponseDto
16952
+ */
16953
+ 'ISV_clientSecret'?: string;
16954
+ /**
16955
+ * The ISV source code.
16956
+ * @type {number}
16957
+ * @memberof VivaAppToAppInitResponseDto
16958
+ */
16959
+ 'ISV_sourceCode'?: number;
16960
+ /**
16961
+ * The ISO numeric currency code required by Viva ISV mode.
16962
+ * @type {number}
16963
+ * @memberof VivaAppToAppInitResponseDto
16964
+ */
16965
+ 'ISV_currencyCode'?: number;
16966
+ /**
16967
+ * The customer transaction description shown in Viva.
16968
+ * @type {string}
16969
+ * @memberof VivaAppToAppInitResponseDto
16970
+ */
16971
+ 'ISV_customerTrns'?: string;
16972
+ /**
16973
+ * The ISV merchant source code for multi-merchant routing.
16974
+ * @type {number}
16975
+ * @memberof VivaAppToAppInitResponseDto
16976
+ */
16977
+ 'ISV_merchantSourceCode'?: number;
16978
+ /**
16979
+ * The ISV client transaction ID if used separately from the app transaction ID.
16980
+ * @type {string}
16981
+ * @memberof VivaAppToAppInitResponseDto
16982
+ */
16983
+ 'ISV_clientTransactionId'?: string;
16984
+ }
16985
+
16986
+
16987
+ /**
16988
+ *
16989
+ * @export
16990
+ * @enum {string}
16991
+ */
16992
+
16993
+ export const VivaAppToAppPaymentMethod = {
16994
+ CardPresent: 'CardPresent',
16995
+ Moto: 'MOTO',
16996
+ QrDefault: 'QrDefault',
16997
+ AliPay: 'AliPay',
16998
+ Paypal: 'Paypal',
16999
+ Klarna: 'Klarna',
17000
+ Iris: 'IRIS',
17001
+ Blik: 'BLIK'
17002
+ } as const;
17003
+
17004
+ export type VivaAppToAppPaymentMethod = typeof VivaAppToAppPaymentMethod[keyof typeof VivaAppToAppPaymentMethod];
17005
+
17006
+
17007
+ /**
17008
+ *
17009
+ * @export
17010
+ * @interface VivaCancelTransactionDto
17011
+ */
17012
+ export interface VivaCancelTransactionDto {
17013
+ /**
17014
+ * The session ID for the transaction.
17015
+ * @type {string}
17016
+ * @memberof VivaCancelTransactionDto
17017
+ */
17018
+ 'sessionId': string;
17019
+ /**
17020
+ * The cash register ID for the transaction.
17021
+ * @type {string}
17022
+ * @memberof VivaCancelTransactionDto
17023
+ */
17024
+ 'cashRegisterId': string;
17025
+ }
17026
+ /**
17027
+ *
17028
+ * @export
17029
+ * @interface VivaConfigDto
17030
+ */
17031
+ export interface VivaConfigDto {
17032
+ /**
17033
+ *
17034
+ * @type {number}
17035
+ * @memberof VivaConfigDto
17036
+ */
17037
+ 'rate'?: number;
17038
+ /**
17039
+ *
17040
+ * @type {string}
17041
+ * @memberof VivaConfigDto
17042
+ */
17043
+ 'merchantId'?: string;
17044
+ /**
17045
+ *
17046
+ * @type {string}
17047
+ * @memberof VivaConfigDto
17048
+ */
17049
+ 'sourceCode'?: string;
17050
+ /**
17051
+ *
17052
+ * @type {number}
17053
+ * @memberof VivaConfigDto
17054
+ */
17055
+ 'additionalAmount'?: number;
17056
+ }
17057
+ /**
17058
+ *
17059
+ * @export
17060
+ * @interface VivaCreatePaymentDto
17061
+ */
17062
+ export interface VivaCreatePaymentDto {
17063
+ /**
17064
+ * The ordering business ID for this transaction.
17065
+ * @type {number}
16984
17066
  * @memberof VivaCreatePaymentDto
16985
17067
  */
16986
17068
  'orderingBusinessId': number;
@@ -17082,52 +17164,6 @@ export const VivaCurrencyCode = {
17082
17164
  export type VivaCurrencyCode = typeof VivaCurrencyCode[keyof typeof VivaCurrencyCode];
17083
17165
 
17084
17166
 
17085
- /**
17086
- *
17087
- * @export
17088
- * @interface VivaDevice
17089
- */
17090
- export interface VivaDevice {
17091
- /**
17092
- * The terminal ID for this transaction.
17093
- * @type {string}
17094
- * @memberof VivaDevice
17095
- */
17096
- 'terminalId': string;
17097
- /**
17098
- *
17099
- * @type {DeviceStatus}
17100
- * @memberof VivaDevice
17101
- */
17102
- 'statusId': DeviceStatus;
17103
- /**
17104
- * The source code of the business location.
17105
- * @type {string}
17106
- * @memberof VivaDevice
17107
- */
17108
- 'sourceCode': string;
17109
- /**
17110
- * The virtual terminal ID of the device.
17111
- * @type {string}
17112
- * @memberof VivaDevice
17113
- */
17114
- 'virtualTerminalId': string;
17115
- }
17116
-
17117
-
17118
- /**
17119
- *
17120
- * @export
17121
- * @interface VivaDiscoverDevicesDto
17122
- */
17123
- export interface VivaDiscoverDevicesDto {
17124
- /**
17125
- * The ordering business ID for this transaction.
17126
- * @type {number}
17127
- * @memberof VivaDiscoverDevicesDto
17128
- */
17129
- 'orderingBusinessId': number;
17130
- }
17131
17167
  /**
17132
17168
  *
17133
17169
  * @export
@@ -28819,16 +28855,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28819
28855
  };
28820
28856
  },
28821
28857
  /**
28822
- * Cancels a payment intent that has not yet been captured, releasing the authorization hold on customer funds.
28823
- * @summary Cancel a Stripe payment intent
28824
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to cancel
28858
+ * Initiates a request to cancel a Viva payment.
28859
+ * @summary Request Viva payment cancellation
28860
+ * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload containing details for Viva payment cancellation.
28825
28861
  * @param {*} [options] Override http request option.
28826
28862
  * @throws {RequiredError}
28827
28863
  */
28828
- cancelStripePayment: async (paymentIntentIdDto: PaymentIntentIdDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28829
- // verify required parameter 'paymentIntentIdDto' is not null or undefined
28830
- assertParamExists('cancelStripePayment', 'paymentIntentIdDto', paymentIntentIdDto)
28831
- const localVarPath = `/api/v1/payment/stripe/cancel`;
28864
+ cancelVivaTransactionV2: async (vivaCancelTransactionDto: VivaCancelTransactionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28865
+ // verify required parameter 'vivaCancelTransactionDto' is not null or undefined
28866
+ assertParamExists('cancelVivaTransactionV2', 'vivaCancelTransactionDto', vivaCancelTransactionDto)
28867
+ const localVarPath = `/api/v2/payment/viva/cancel`;
28832
28868
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28833
28869
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28834
28870
  let baseOptions;
@@ -28847,7 +28883,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28847
28883
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28848
28884
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28849
28885
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28850
- localVarRequestOptions.data = serializeDataIfNeeded(paymentIntentIdDto, localVarRequestOptions, configuration)
28886
+ localVarRequestOptions.data = serializeDataIfNeeded(vivaCancelTransactionDto, localVarRequestOptions, configuration)
28851
28887
 
28852
28888
  return {
28853
28889
  url: toPathString(localVarUrlObj),
@@ -28855,16 +28891,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28855
28891
  };
28856
28892
  },
28857
28893
  /**
28858
- * Cancels a Viva transaction.
28859
- * @summary Cancel a Viva transaction
28860
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload to cancel a Viva transaction.
28894
+ * Refund a nets transaction
28895
+ * @summary Refund a nets transaction
28896
+ * @param {CreateRefundDto} createRefundDto Refund payload
28861
28897
  * @param {*} [options] Override http request option.
28862
28898
  * @throws {RequiredError}
28863
28899
  */
28864
- cancelTransaction: async (vivaCancelTransactionDto: VivaCancelTransactionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28865
- // verify required parameter 'vivaCancelTransactionDto' is not null or undefined
28866
- assertParamExists('cancelTransaction', 'vivaCancelTransactionDto', vivaCancelTransactionDto)
28867
- const localVarPath = `/api/v1/payment/viva/cancelTransaction`;
28900
+ createNetsRefundTransaction: async (createRefundDto: CreateRefundDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28901
+ // verify required parameter 'createRefundDto' is not null or undefined
28902
+ assertParamExists('createNetsRefundTransaction', 'createRefundDto', createRefundDto)
28903
+ const localVarPath = `/api/v4/payment/nets/refund/transaction`;
28868
28904
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28869
28905
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28870
28906
  let baseOptions;
@@ -28872,7 +28908,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28872
28908
  baseOptions = configuration.baseOptions;
28873
28909
  }
28874
28910
 
28875
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
28911
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28876
28912
  const localVarHeaderParameter = {} as any;
28877
28913
  const localVarQueryParameter = {} as any;
28878
28914
 
@@ -28883,7 +28919,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28883
28919
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28884
28920
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28885
28921
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28886
- localVarRequestOptions.data = serializeDataIfNeeded(vivaCancelTransactionDto, localVarRequestOptions, configuration)
28922
+ localVarRequestOptions.data = serializeDataIfNeeded(createRefundDto, localVarRequestOptions, configuration)
28887
28923
 
28888
28924
  return {
28889
28925
  url: toPathString(localVarUrlObj),
@@ -28891,16 +28927,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28891
28927
  };
28892
28928
  },
28893
28929
  /**
28894
- * Initiates a request to cancel a Viva payment.
28895
- * @summary Request Viva payment cancellation
28896
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload containing details for Viva payment cancellation.
28930
+ * Creates a new Viva payment intent.
28931
+ * @summary Create Viva payment
28932
+ * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
28897
28933
  * @param {*} [options] Override http request option.
28898
28934
  * @throws {RequiredError}
28899
28935
  */
28900
- cancelVivaTransactionV2: async (vivaCancelTransactionDto: VivaCancelTransactionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28901
- // verify required parameter 'vivaCancelTransactionDto' is not null or undefined
28902
- assertParamExists('cancelVivaTransactionV2', 'vivaCancelTransactionDto', vivaCancelTransactionDto)
28903
- const localVarPath = `/api/v2/payment/viva/cancel`;
28936
+ createVivaPaymentV3: async (vivaCreatePaymentDto: VivaCreatePaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28937
+ // verify required parameter 'vivaCreatePaymentDto' is not null or undefined
28938
+ assertParamExists('createVivaPaymentV3', 'vivaCreatePaymentDto', vivaCreatePaymentDto)
28939
+ const localVarPath = `/api/v3/payment/viva/createPayment`;
28904
28940
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28905
28941
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28906
28942
  let baseOptions;
@@ -28919,7 +28955,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28919
28955
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28920
28956
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28921
28957
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28922
- localVarRequestOptions.data = serializeDataIfNeeded(vivaCancelTransactionDto, localVarRequestOptions, configuration)
28958
+ localVarRequestOptions.data = serializeDataIfNeeded(vivaCreatePaymentDto, localVarRequestOptions, configuration)
28923
28959
 
28924
28960
  return {
28925
28961
  url: toPathString(localVarUrlObj),
@@ -28927,16 +28963,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28927
28963
  };
28928
28964
  },
28929
28965
  /**
28930
- * Captures a previously authorized payment intent, transferring funds from the customer to your account.
28931
- * @summary Capture a Stripe payment intent
28932
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to capture
28966
+ * Retrieves the refund reference for a specific transaction.
28967
+ * @summary Get refund reference for a transaction
28968
+ * @param {GetPaymentReferenceDto} getPaymentReferenceDto Payment reference query parameters
28933
28969
  * @param {*} [options] Override http request option.
28934
28970
  * @throws {RequiredError}
28935
28971
  */
28936
- captureStripePayment: async (paymentIntentIdDto: PaymentIntentIdDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28937
- // verify required parameter 'paymentIntentIdDto' is not null or undefined
28938
- assertParamExists('captureStripePayment', 'paymentIntentIdDto', paymentIntentIdDto)
28939
- const localVarPath = `/api/v1/payment/stripe/capture`;
28972
+ getPaymentReference: async (getPaymentReferenceDto: GetPaymentReferenceDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28973
+ // verify required parameter 'getPaymentReferenceDto' is not null or undefined
28974
+ assertParamExists('getPaymentReference', 'getPaymentReferenceDto', getPaymentReferenceDto)
28975
+ const localVarPath = `/api/v1/payment/reference`;
28940
28976
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28941
28977
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28942
28978
  let baseOptions;
@@ -28955,7 +28991,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28955
28991
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28956
28992
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28957
28993
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28958
- localVarRequestOptions.data = serializeDataIfNeeded(paymentIntentIdDto, localVarRequestOptions, configuration)
28994
+ localVarRequestOptions.data = serializeDataIfNeeded(getPaymentReferenceDto, localVarRequestOptions, configuration)
28959
28995
 
28960
28996
  return {
28961
28997
  url: toPathString(localVarUrlObj),
@@ -28963,16 +28999,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28963
28999
  };
28964
29000
  },
28965
29001
  /**
28966
- * Refund a nets transaction
28967
- * @summary Refund a nets transaction
28968
- * @param {CreateRefundDto} createRefundDto Refund payload
29002
+ * Retrieves the current status of a payment transaction by its reference ID.
29003
+ * @summary Get payment status
29004
+ * @param {GetPaymentStatusDto} getPaymentStatusDto Payment status query parameters
28969
29005
  * @param {*} [options] Override http request option.
28970
29006
  * @throws {RequiredError}
28971
29007
  */
28972
- createNetsRefundTransaction: async (createRefundDto: CreateRefundDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28973
- // verify required parameter 'createRefundDto' is not null or undefined
28974
- assertParamExists('createNetsRefundTransaction', 'createRefundDto', createRefundDto)
28975
- const localVarPath = `/api/v4/payment/nets/refund/transaction`;
29008
+ getPaymentStatus: async (getPaymentStatusDto: GetPaymentStatusDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29009
+ // verify required parameter 'getPaymentStatusDto' is not null or undefined
29010
+ assertParamExists('getPaymentStatus', 'getPaymentStatusDto', getPaymentStatusDto)
29011
+ const localVarPath = `/api/v1/payment/status`;
28976
29012
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28977
29013
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28978
29014
  let baseOptions;
@@ -28991,7 +29027,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28991
29027
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28992
29028
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28993
29029
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28994
- localVarRequestOptions.data = serializeDataIfNeeded(createRefundDto, localVarRequestOptions, configuration)
29030
+ localVarRequestOptions.data = serializeDataIfNeeded(getPaymentStatusDto, localVarRequestOptions, configuration)
28995
29031
 
28996
29032
  return {
28997
29033
  url: toPathString(localVarUrlObj),
@@ -28999,17 +29035,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28999
29035
  };
29000
29036
  },
29001
29037
  /**
29002
- * Creates a new Viva payment intent.
29003
- * @summary Create Viva payment
29004
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
29038
+ * Initiate a terminal transaction
29039
+ * @summary Initiate a terminal transaction
29040
+ * @param {CreateNetsTerminalPaymentDto} createNetsTerminalPaymentDto Pos order refund payload
29005
29041
  * @param {*} [options] Override http request option.
29006
- * @deprecated
29007
29042
  * @throws {RequiredError}
29008
29043
  */
29009
- createVivaPayment: async (vivaCreatePaymentDto: VivaCreatePaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29010
- // verify required parameter 'vivaCreatePaymentDto' is not null or undefined
29011
- assertParamExists('createVivaPayment', 'vivaCreatePaymentDto', vivaCreatePaymentDto)
29012
- const localVarPath = `/api/v1/payment/viva/createPayment`;
29044
+ initiateNetsTerminalTransaction: async (createNetsTerminalPaymentDto: CreateNetsTerminalPaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29045
+ // verify required parameter 'createNetsTerminalPaymentDto' is not null or undefined
29046
+ assertParamExists('initiateNetsTerminalTransaction', 'createNetsTerminalPaymentDto', createNetsTerminalPaymentDto)
29047
+ const localVarPath = `/api/v3/payment/nets/terminal/initiate`;
29013
29048
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29014
29049
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29015
29050
  let baseOptions;
@@ -29028,7 +29063,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29028
29063
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29029
29064
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29030
29065
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29031
- localVarRequestOptions.data = serializeDataIfNeeded(vivaCreatePaymentDto, localVarRequestOptions, configuration)
29066
+ localVarRequestOptions.data = serializeDataIfNeeded(createNetsTerminalPaymentDto, localVarRequestOptions, configuration)
29032
29067
 
29033
29068
  return {
29034
29069
  url: toPathString(localVarUrlObj),
@@ -29036,16 +29071,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29036
29071
  };
29037
29072
  },
29038
29073
  /**
29039
- * Creates a new Viva payment intent.
29040
- * @summary Create Viva payment
29041
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
29074
+ * Initiate a terminal transaction
29075
+ * @summary Initiate a terminal transaction
29076
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto Pos order refund payload
29042
29077
  * @param {*} [options] Override http request option.
29043
29078
  * @throws {RequiredError}
29044
29079
  */
29045
- createVivaPaymentV3: async (vivaCreatePaymentDto: VivaCreatePaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29046
- // verify required parameter 'vivaCreatePaymentDto' is not null or undefined
29047
- assertParamExists('createVivaPaymentV3', 'vivaCreatePaymentDto', vivaCreatePaymentDto)
29048
- const localVarPath = `/api/v3/payment/viva/createPayment`;
29080
+ initiateTerminalTransaction: async (createTerminalPaymentDto: CreateTerminalPaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29081
+ // verify required parameter 'createTerminalPaymentDto' is not null or undefined
29082
+ assertParamExists('initiateTerminalTransaction', 'createTerminalPaymentDto', createTerminalPaymentDto)
29083
+ const localVarPath = `/api/v4/payment/viva/terminal/initiate`;
29049
29084
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29050
29085
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29051
29086
  let baseOptions;
@@ -29064,7 +29099,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29064
29099
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29065
29100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29066
29101
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29067
- localVarRequestOptions.data = serializeDataIfNeeded(vivaCreatePaymentDto, localVarRequestOptions, configuration)
29102
+ localVarRequestOptions.data = serializeDataIfNeeded(createTerminalPaymentDto, localVarRequestOptions, configuration)
29068
29103
 
29069
29104
  return {
29070
29105
  url: toPathString(localVarUrlObj),
@@ -29072,16 +29107,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29072
29107
  };
29073
29108
  },
29074
29109
  /**
29075
- * Retrieves a list of available Viva payment devices for the associated merchant.
29076
- * @summary Discover Viva payment devices
29077
- * @param {VivaDiscoverDevicesDto} vivaDiscoverDevicesDto Payload to specify discovery criteria for Viva devices.
29110
+ * Handles refund processing for orders placed through online channels
29111
+ * @summary Process refund for online orders
29112
+ * @param {OrderResponseDto} orderResponseDto Order details for refund processing
29078
29113
  * @param {*} [options] Override http request option.
29079
29114
  * @throws {RequiredError}
29080
29115
  */
29081
- discoverDevices: async (vivaDiscoverDevicesDto: VivaDiscoverDevicesDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29082
- // verify required parameter 'vivaDiscoverDevicesDto' is not null or undefined
29083
- assertParamExists('discoverDevices', 'vivaDiscoverDevicesDto', vivaDiscoverDevicesDto)
29084
- const localVarPath = `/api/v1/payment/viva/discoverDevices`;
29116
+ processOnlineOrderRefund: async (orderResponseDto: OrderResponseDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29117
+ // verify required parameter 'orderResponseDto' is not null or undefined
29118
+ assertParamExists('processOnlineOrderRefund', 'orderResponseDto', orderResponseDto)
29119
+ const localVarPath = `/api/v1/payment/online-orders/refund`;
29085
29120
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29086
29121
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29087
29122
  let baseOptions;
@@ -29100,7 +29135,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29100
29135
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29101
29136
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29102
29137
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29103
- localVarRequestOptions.data = serializeDataIfNeeded(vivaDiscoverDevicesDto, localVarRequestOptions, configuration)
29138
+ localVarRequestOptions.data = serializeDataIfNeeded(orderResponseDto, localVarRequestOptions, configuration)
29104
29139
 
29105
29140
  return {
29106
29141
  url: toPathString(localVarUrlObj),
@@ -29108,16 +29143,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29108
29143
  };
29109
29144
  },
29110
29145
  /**
29111
- * Retrieves a connection token for the specified business.
29112
- * @summary Get connection token
29113
- * @param {ConnectionTokenPayloadDto} connectionTokenPayloadDto Connection token payload
29146
+ * Process a cash refund for a previous cash payment transaction.
29147
+ * @summary Refund a cash payment
29148
+ * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
29114
29149
  * @param {*} [options] Override http request option.
29115
29150
  * @throws {RequiredError}
29116
29151
  */
29117
- getConnectionToken: async (connectionTokenPayloadDto: ConnectionTokenPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29118
- // verify required parameter 'connectionTokenPayloadDto' is not null or undefined
29119
- assertParamExists('getConnectionToken', 'connectionTokenPayloadDto', connectionTokenPayloadDto)
29120
- const localVarPath = `/api/v1/payment/connectionToken`;
29152
+ refundCashPaymentV3: async (cashRefundPayload: CashRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29153
+ // verify required parameter 'cashRefundPayload' is not null or undefined
29154
+ assertParamExists('refundCashPaymentV3', 'cashRefundPayload', cashRefundPayload)
29155
+ const localVarPath = `/api/v3/payment/cash/refund`;
29121
29156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29122
29157
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29123
29158
  let baseOptions;
@@ -29136,7 +29171,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29136
29171
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29137
29172
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29138
29173
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29139
- localVarRequestOptions.data = serializeDataIfNeeded(connectionTokenPayloadDto, localVarRequestOptions, configuration)
29174
+ localVarRequestOptions.data = serializeDataIfNeeded(cashRefundPayload, localVarRequestOptions, configuration)
29140
29175
 
29141
29176
  return {
29142
29177
  url: toPathString(localVarUrlObj),
@@ -29144,16 +29179,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29144
29179
  };
29145
29180
  },
29146
29181
  /**
29147
- * Retrieves the current status of a payment transaction by its reference ID.
29148
- * @summary Get payment status
29149
- * @param {GetPaymentStatusDto} getPaymentStatusDto Payment status query parameters
29182
+ * Process a manual refund for a previous payment transaction of any type specified in the payload.
29183
+ * @summary Refund a manual payment
29184
+ * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
29150
29185
  * @param {*} [options] Override http request option.
29151
29186
  * @throws {RequiredError}
29152
29187
  */
29153
- getPaymentStatus: async (getPaymentStatusDto: GetPaymentStatusDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29154
- // verify required parameter 'getPaymentStatusDto' is not null or undefined
29155
- assertParamExists('getPaymentStatus', 'getPaymentStatusDto', getPaymentStatusDto)
29156
- const localVarPath = `/api/v1/payment/status`;
29188
+ refundManualPaymentV3: async (manualRefundPayload: ManualRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29189
+ // verify required parameter 'manualRefundPayload' is not null or undefined
29190
+ assertParamExists('refundManualPaymentV3', 'manualRefundPayload', manualRefundPayload)
29191
+ const localVarPath = `/api/v3/payment/manual/refund`;
29157
29192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29158
29193
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29159
29194
  let baseOptions;
@@ -29172,7 +29207,7 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29172
29207
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29173
29208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29174
29209
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29175
- localVarRequestOptions.data = serializeDataIfNeeded(getPaymentStatusDto, localVarRequestOptions, configuration)
29210
+ localVarRequestOptions.data = serializeDataIfNeeded(manualRefundPayload, localVarRequestOptions, configuration)
29176
29211
 
29177
29212
  return {
29178
29213
  url: toPathString(localVarUrlObj),
@@ -29180,233 +29215,16 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
29180
29215
  };
29181
29216
  },
29182
29217
  /**
29183
- * Retrieves a Stripe Terminal connection token for the specified business. This token is required to initialize the Stripe Terminal SDK.
29184
- * @summary Get Stripe Terminal connection token
29185
- * @param {string} businessId Unique identifier for the business
29218
+ * Refund a pos order
29219
+ * @summary Refund a pos order with nets
29220
+ * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
29186
29221
  * @param {*} [options] Override http request option.
29187
29222
  * @throws {RequiredError}
29188
29223
  */
29189
- getToken: async (businessId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29190
- // verify required parameter 'businessId' is not null or undefined
29191
- assertParamExists('getToken', 'businessId', businessId)
29192
- const localVarPath = `/api/v1/payment/stripe/connectionToken`;
29193
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29194
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29195
- let baseOptions;
29196
- if (configuration) {
29197
- baseOptions = configuration.baseOptions;
29198
- }
29199
-
29200
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29201
- const localVarHeaderParameter = {} as any;
29202
- const localVarQueryParameter = {} as any;
29203
-
29204
- if (businessId !== undefined) {
29205
- localVarQueryParameter['businessId'] = businessId;
29206
- }
29207
-
29208
-
29209
-
29210
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29211
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29212
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29213
-
29214
- return {
29215
- url: toPathString(localVarUrlObj),
29216
- options: localVarRequestOptions,
29217
- };
29218
- },
29219
- /**
29220
- * Initiate a terminal transaction
29221
- * @summary Initiate a terminal transaction
29222
- * @param {CreateNetsTerminalPaymentDto} createNetsTerminalPaymentDto Pos order refund payload
29223
- * @param {*} [options] Override http request option.
29224
- * @throws {RequiredError}
29225
- */
29226
- initiateNetsTerminalTransaction: async (createNetsTerminalPaymentDto: CreateNetsTerminalPaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29227
- // verify required parameter 'createNetsTerminalPaymentDto' is not null or undefined
29228
- assertParamExists('initiateNetsTerminalTransaction', 'createNetsTerminalPaymentDto', createNetsTerminalPaymentDto)
29229
- const localVarPath = `/api/v3/payment/nets/terminal/initiate`;
29230
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29231
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29232
- let baseOptions;
29233
- if (configuration) {
29234
- baseOptions = configuration.baseOptions;
29235
- }
29236
-
29237
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29238
- const localVarHeaderParameter = {} as any;
29239
- const localVarQueryParameter = {} as any;
29240
-
29241
-
29242
-
29243
- localVarHeaderParameter['Content-Type'] = 'application/json';
29244
-
29245
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29247
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29248
- localVarRequestOptions.data = serializeDataIfNeeded(createNetsTerminalPaymentDto, localVarRequestOptions, configuration)
29249
-
29250
- return {
29251
- url: toPathString(localVarUrlObj),
29252
- options: localVarRequestOptions,
29253
- };
29254
- },
29255
- /**
29256
- * Initiate a terminal transaction
29257
- * @summary Initiate a terminal transaction
29258
- * @param {CreateTerminalPaymentDto} createTerminalPaymentDto Pos order refund payload
29259
- * @param {*} [options] Override http request option.
29260
- * @throws {RequiredError}
29261
- */
29262
- initiateTerminalTransaction: async (createTerminalPaymentDto: CreateTerminalPaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29263
- // verify required parameter 'createTerminalPaymentDto' is not null or undefined
29264
- assertParamExists('initiateTerminalTransaction', 'createTerminalPaymentDto', createTerminalPaymentDto)
29265
- const localVarPath = `/api/v4/payment/viva/terminal/initiate`;
29266
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29267
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29268
- let baseOptions;
29269
- if (configuration) {
29270
- baseOptions = configuration.baseOptions;
29271
- }
29272
-
29273
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29274
- const localVarHeaderParameter = {} as any;
29275
- const localVarQueryParameter = {} as any;
29276
-
29277
-
29278
-
29279
- localVarHeaderParameter['Content-Type'] = 'application/json';
29280
-
29281
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29282
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29283
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29284
- localVarRequestOptions.data = serializeDataIfNeeded(createTerminalPaymentDto, localVarRequestOptions, configuration)
29285
-
29286
- return {
29287
- url: toPathString(localVarUrlObj),
29288
- options: localVarRequestOptions,
29289
- };
29290
- },
29291
- /**
29292
- * Handles refund processing for orders placed through online channels
29293
- * @summary Process refund for online orders
29294
- * @param {OrderResponseDto} orderResponseDto Order details for refund processing
29295
- * @param {*} [options] Override http request option.
29296
- * @throws {RequiredError}
29297
- */
29298
- processOnlineOrderRefund: async (orderResponseDto: OrderResponseDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29299
- // verify required parameter 'orderResponseDto' is not null or undefined
29300
- assertParamExists('processOnlineOrderRefund', 'orderResponseDto', orderResponseDto)
29301
- const localVarPath = `/api/v1/payment/online-orders/refund`;
29302
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29303
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29304
- let baseOptions;
29305
- if (configuration) {
29306
- baseOptions = configuration.baseOptions;
29307
- }
29308
-
29309
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29310
- const localVarHeaderParameter = {} as any;
29311
- const localVarQueryParameter = {} as any;
29312
-
29313
-
29314
-
29315
- localVarHeaderParameter['Content-Type'] = 'application/json';
29316
-
29317
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29318
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29319
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29320
- localVarRequestOptions.data = serializeDataIfNeeded(orderResponseDto, localVarRequestOptions, configuration)
29321
-
29322
- return {
29323
- url: toPathString(localVarUrlObj),
29324
- options: localVarRequestOptions,
29325
- };
29326
- },
29327
- /**
29328
- * Process a cash refund for a previous cash payment transaction.
29329
- * @summary Refund a cash payment
29330
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
29331
- * @param {*} [options] Override http request option.
29332
- * @throws {RequiredError}
29333
- */
29334
- refundCashPaymentV3: async (cashRefundPayload: CashRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29335
- // verify required parameter 'cashRefundPayload' is not null or undefined
29336
- assertParamExists('refundCashPaymentV3', 'cashRefundPayload', cashRefundPayload)
29337
- const localVarPath = `/api/v3/payment/cash/refund`;
29338
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29339
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29340
- let baseOptions;
29341
- if (configuration) {
29342
- baseOptions = configuration.baseOptions;
29343
- }
29344
-
29345
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29346
- const localVarHeaderParameter = {} as any;
29347
- const localVarQueryParameter = {} as any;
29348
-
29349
-
29350
-
29351
- localVarHeaderParameter['Content-Type'] = 'application/json';
29352
-
29353
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29354
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29355
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29356
- localVarRequestOptions.data = serializeDataIfNeeded(cashRefundPayload, localVarRequestOptions, configuration)
29357
-
29358
- return {
29359
- url: toPathString(localVarUrlObj),
29360
- options: localVarRequestOptions,
29361
- };
29362
- },
29363
- /**
29364
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
29365
- * @summary Refund a manual payment
29366
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
29367
- * @param {*} [options] Override http request option.
29368
- * @throws {RequiredError}
29369
- */
29370
- refundManualPaymentV3: async (manualRefundPayload: ManualRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29371
- // verify required parameter 'manualRefundPayload' is not null or undefined
29372
- assertParamExists('refundManualPaymentV3', 'manualRefundPayload', manualRefundPayload)
29373
- const localVarPath = `/api/v3/payment/manual/refund`;
29374
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29375
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29376
- let baseOptions;
29377
- if (configuration) {
29378
- baseOptions = configuration.baseOptions;
29379
- }
29380
-
29381
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29382
- const localVarHeaderParameter = {} as any;
29383
- const localVarQueryParameter = {} as any;
29384
-
29385
-
29386
-
29387
- localVarHeaderParameter['Content-Type'] = 'application/json';
29388
-
29389
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29390
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29391
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29392
- localVarRequestOptions.data = serializeDataIfNeeded(manualRefundPayload, localVarRequestOptions, configuration)
29393
-
29394
- return {
29395
- url: toPathString(localVarUrlObj),
29396
- options: localVarRequestOptions,
29397
- };
29398
- },
29399
- /**
29400
- * Refund a pos order
29401
- * @summary Refund a pos order with nets
29402
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
29403
- * @param {*} [options] Override http request option.
29404
- * @throws {RequiredError}
29405
- */
29406
- refundNetsTransactionV3: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29407
- // verify required parameter 'refundPayloadDtoV4' is not null or undefined
29408
- assertParamExists('refundNetsTransactionV3', 'refundPayloadDtoV4', refundPayloadDtoV4)
29409
- const localVarPath = `/api/v3/payment/nets/refund`;
29224
+ refundNetsTransactionV3: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29225
+ // verify required parameter 'refundPayloadDtoV4' is not null or undefined
29226
+ assertParamExists('refundNetsTransactionV3', 'refundPayloadDtoV4', refundPayloadDtoV4)
29227
+ const localVarPath = `/api/v3/payment/nets/refund`;
29410
29228
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29411
29229
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29412
29230
  let baseOptions;
@@ -29561,28 +29379,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29561
29379
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelNetsTerminalTransaction(netsCancelTransactionDto, options);
29562
29380
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29563
29381
  },
29564
- /**
29565
- * Cancels a payment intent that has not yet been captured, releasing the authorization hold on customer funds.
29566
- * @summary Cancel a Stripe payment intent
29567
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to cancel
29568
- * @param {*} [options] Override http request option.
29569
- * @throws {RequiredError}
29570
- */
29571
- async cancelStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentDto>> {
29572
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelStripePayment(paymentIntentIdDto, options);
29573
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29574
- },
29575
- /**
29576
- * Cancels a Viva transaction.
29577
- * @summary Cancel a Viva transaction
29578
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload to cancel a Viva transaction.
29579
- * @param {*} [options] Override http request option.
29580
- * @throws {RequiredError}
29581
- */
29582
- async cancelTransaction(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
29583
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTransaction(vivaCancelTransactionDto, options);
29584
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29585
- },
29586
29382
  /**
29587
29383
  * Initiates a request to cancel a Viva payment.
29588
29384
  * @summary Request Viva payment cancellation
@@ -29594,17 +29390,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29594
29390
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelVivaTransactionV2(vivaCancelTransactionDto, options);
29595
29391
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29596
29392
  },
29597
- /**
29598
- * Captures a previously authorized payment intent, transferring funds from the customer to your account.
29599
- * @summary Capture a Stripe payment intent
29600
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to capture
29601
- * @param {*} [options] Override http request option.
29602
- * @throws {RequiredError}
29603
- */
29604
- async captureStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentDto>> {
29605
- const localVarAxiosArgs = await localVarAxiosParamCreator.captureStripePayment(paymentIntentIdDto, options);
29606
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29607
- },
29608
29393
  /**
29609
29394
  * Refund a nets transaction
29610
29395
  * @summary Refund a nets transaction
@@ -29616,18 +29401,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29616
29401
  const localVarAxiosArgs = await localVarAxiosParamCreator.createNetsRefundTransaction(createRefundDto, options);
29617
29402
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29618
29403
  },
29619
- /**
29620
- * Creates a new Viva payment intent.
29621
- * @summary Create Viva payment
29622
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
29623
- * @param {*} [options] Override http request option.
29624
- * @deprecated
29625
- * @throws {RequiredError}
29626
- */
29627
- async createVivaPayment(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaPaymentIntent>> {
29628
- const localVarAxiosArgs = await localVarAxiosParamCreator.createVivaPayment(vivaCreatePaymentDto, options);
29629
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29630
- },
29631
29404
  /**
29632
29405
  * Creates a new Viva payment intent.
29633
29406
  * @summary Create Viva payment
@@ -29640,25 +29413,14 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29640
29413
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29641
29414
  },
29642
29415
  /**
29643
- * Retrieves a list of available Viva payment devices for the associated merchant.
29644
- * @summary Discover Viva payment devices
29645
- * @param {VivaDiscoverDevicesDto} vivaDiscoverDevicesDto Payload to specify discovery criteria for Viva devices.
29416
+ * Retrieves the refund reference for a specific transaction.
29417
+ * @summary Get refund reference for a transaction
29418
+ * @param {GetPaymentReferenceDto} getPaymentReferenceDto Payment reference query parameters
29646
29419
  * @param {*} [options] Override http request option.
29647
29420
  * @throws {RequiredError}
29648
29421
  */
29649
- async discoverDevices(vivaDiscoverDevicesDto: VivaDiscoverDevicesDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VivaDevice>>> {
29650
- const localVarAxiosArgs = await localVarAxiosParamCreator.discoverDevices(vivaDiscoverDevicesDto, options);
29651
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29652
- },
29653
- /**
29654
- * Retrieves a connection token for the specified business.
29655
- * @summary Get connection token
29656
- * @param {ConnectionTokenPayloadDto} connectionTokenPayloadDto Connection token payload
29657
- * @param {*} [options] Override http request option.
29658
- * @throws {RequiredError}
29659
- */
29660
- async getConnectionToken(connectionTokenPayloadDto: ConnectionTokenPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectionTokenResponseDto>> {
29661
- const localVarAxiosArgs = await localVarAxiosParamCreator.getConnectionToken(connectionTokenPayloadDto, options);
29422
+ async getPaymentReference(getPaymentReferenceDto: GetPaymentReferenceDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentReferenceResponseDto>> {
29423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentReference(getPaymentReferenceDto, options);
29662
29424
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29663
29425
  },
29664
29426
  /**
@@ -29672,17 +29434,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29672
29434
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentStatus(getPaymentStatusDto, options);
29673
29435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29674
29436
  },
29675
- /**
29676
- * Retrieves a Stripe Terminal connection token for the specified business. This token is required to initialize the Stripe Terminal SDK.
29677
- * @summary Get Stripe Terminal connection token
29678
- * @param {string} businessId Unique identifier for the business
29679
- * @param {*} [options] Override http request option.
29680
- * @throws {RequiredError}
29681
- */
29682
- async getToken(businessId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeConnectionTokenDto>> {
29683
- const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(businessId, options);
29684
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29685
- },
29686
29437
  /**
29687
29438
  * Initiate a terminal transaction
29688
29439
  * @summary Initiate a terminal transaction
@@ -29802,26 +29553,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29802
29553
  cancelNetsTerminalTransaction(netsCancelTransactionDto: NetsCancelTransactionDto, options?: any): AxiosPromise<void> {
29803
29554
  return localVarFp.cancelNetsTerminalTransaction(netsCancelTransactionDto, options).then((request) => request(axios, basePath));
29804
29555
  },
29805
- /**
29806
- * Cancels a payment intent that has not yet been captured, releasing the authorization hold on customer funds.
29807
- * @summary Cancel a Stripe payment intent
29808
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to cancel
29809
- * @param {*} [options] Override http request option.
29810
- * @throws {RequiredError}
29811
- */
29812
- cancelStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: any): AxiosPromise<StripePaymentIntentDto> {
29813
- return localVarFp.cancelStripePayment(paymentIntentIdDto, options).then((request) => request(axios, basePath));
29814
- },
29815
- /**
29816
- * Cancels a Viva transaction.
29817
- * @summary Cancel a Viva transaction
29818
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload to cancel a Viva transaction.
29819
- * @param {*} [options] Override http request option.
29820
- * @throws {RequiredError}
29821
- */
29822
- cancelTransaction(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: any): AxiosPromise<void> {
29823
- return localVarFp.cancelTransaction(vivaCancelTransactionDto, options).then((request) => request(axios, basePath));
29824
- },
29825
29556
  /**
29826
29557
  * Initiates a request to cancel a Viva payment.
29827
29558
  * @summary Request Viva payment cancellation
@@ -29832,16 +29563,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29832
29563
  cancelVivaTransactionV2(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: any): AxiosPromise<void> {
29833
29564
  return localVarFp.cancelVivaTransactionV2(vivaCancelTransactionDto, options).then((request) => request(axios, basePath));
29834
29565
  },
29835
- /**
29836
- * Captures a previously authorized payment intent, transferring funds from the customer to your account.
29837
- * @summary Capture a Stripe payment intent
29838
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to capture
29839
- * @param {*} [options] Override http request option.
29840
- * @throws {RequiredError}
29841
- */
29842
- captureStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: any): AxiosPromise<StripePaymentIntentDto> {
29843
- return localVarFp.captureStripePayment(paymentIntentIdDto, options).then((request) => request(axios, basePath));
29844
- },
29845
29566
  /**
29846
29567
  * Refund a nets transaction
29847
29568
  * @summary Refund a nets transaction
@@ -29852,17 +29573,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29852
29573
  createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: any): AxiosPromise<CreateNetsRefundResponseDto> {
29853
29574
  return localVarFp.createNetsRefundTransaction(createRefundDto, options).then((request) => request(axios, basePath));
29854
29575
  },
29855
- /**
29856
- * Creates a new Viva payment intent.
29857
- * @summary Create Viva payment
29858
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
29859
- * @param {*} [options] Override http request option.
29860
- * @deprecated
29861
- * @throws {RequiredError}
29862
- */
29863
- createVivaPayment(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: any): AxiosPromise<VivaPaymentIntent> {
29864
- return localVarFp.createVivaPayment(vivaCreatePaymentDto, options).then((request) => request(axios, basePath));
29865
- },
29866
29576
  /**
29867
29577
  * Creates a new Viva payment intent.
29868
29578
  * @summary Create Viva payment
@@ -29874,24 +29584,14 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29874
29584
  return localVarFp.createVivaPaymentV3(vivaCreatePaymentDto, options).then((request) => request(axios, basePath));
29875
29585
  },
29876
29586
  /**
29877
- * Retrieves a list of available Viva payment devices for the associated merchant.
29878
- * @summary Discover Viva payment devices
29879
- * @param {VivaDiscoverDevicesDto} vivaDiscoverDevicesDto Payload to specify discovery criteria for Viva devices.
29880
- * @param {*} [options] Override http request option.
29881
- * @throws {RequiredError}
29882
- */
29883
- discoverDevices(vivaDiscoverDevicesDto: VivaDiscoverDevicesDto, options?: any): AxiosPromise<Array<VivaDevice>> {
29884
- return localVarFp.discoverDevices(vivaDiscoverDevicesDto, options).then((request) => request(axios, basePath));
29885
- },
29886
- /**
29887
- * Retrieves a connection token for the specified business.
29888
- * @summary Get connection token
29889
- * @param {ConnectionTokenPayloadDto} connectionTokenPayloadDto Connection token payload
29587
+ * Retrieves the refund reference for a specific transaction.
29588
+ * @summary Get refund reference for a transaction
29589
+ * @param {GetPaymentReferenceDto} getPaymentReferenceDto Payment reference query parameters
29890
29590
  * @param {*} [options] Override http request option.
29891
29591
  * @throws {RequiredError}
29892
29592
  */
29893
- getConnectionToken(connectionTokenPayloadDto: ConnectionTokenPayloadDto, options?: any): AxiosPromise<ConnectionTokenResponseDto> {
29894
- return localVarFp.getConnectionToken(connectionTokenPayloadDto, options).then((request) => request(axios, basePath));
29593
+ getPaymentReference(getPaymentReferenceDto: GetPaymentReferenceDto, options?: any): AxiosPromise<PaymentReferenceResponseDto> {
29594
+ return localVarFp.getPaymentReference(getPaymentReferenceDto, options).then((request) => request(axios, basePath));
29895
29595
  },
29896
29596
  /**
29897
29597
  * Retrieves the current status of a payment transaction by its reference ID.
@@ -29903,16 +29603,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29903
29603
  getPaymentStatus(getPaymentStatusDto: GetPaymentStatusDto, options?: any): AxiosPromise<PaymentStatusDto> {
29904
29604
  return localVarFp.getPaymentStatus(getPaymentStatusDto, options).then((request) => request(axios, basePath));
29905
29605
  },
29906
- /**
29907
- * Retrieves a Stripe Terminal connection token for the specified business. This token is required to initialize the Stripe Terminal SDK.
29908
- * @summary Get Stripe Terminal connection token
29909
- * @param {string} businessId Unique identifier for the business
29910
- * @param {*} [options] Override http request option.
29911
- * @throws {RequiredError}
29912
- */
29913
- getToken(businessId: string, options?: any): AxiosPromise<StripeConnectionTokenDto> {
29914
- return localVarFp.getToken(businessId, options).then((request) => request(axios, basePath));
29915
- },
29916
29606
  /**
29917
29607
  * Initiate a terminal transaction
29918
29608
  * @summary Initiate a terminal transaction
@@ -30022,26 +29712,6 @@ export interface PaymentApiInterface {
30022
29712
  */
30023
29713
  cancelNetsTerminalTransaction(netsCancelTransactionDto: NetsCancelTransactionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
30024
29714
 
30025
- /**
30026
- * Cancels a payment intent that has not yet been captured, releasing the authorization hold on customer funds.
30027
- * @summary Cancel a Stripe payment intent
30028
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to cancel
30029
- * @param {*} [options] Override http request option.
30030
- * @throws {RequiredError}
30031
- * @memberof PaymentApiInterface
30032
- */
30033
- cancelStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig): AxiosPromise<StripePaymentIntentDto>;
30034
-
30035
- /**
30036
- * Cancels a Viva transaction.
30037
- * @summary Cancel a Viva transaction
30038
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload to cancel a Viva transaction.
30039
- * @param {*} [options] Override http request option.
30040
- * @throws {RequiredError}
30041
- * @memberof PaymentApiInterface
30042
- */
30043
- cancelTransaction(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
30044
-
30045
29715
  /**
30046
29716
  * Initiates a request to cancel a Viva payment.
30047
29717
  * @summary Request Viva payment cancellation
@@ -30052,16 +29722,6 @@ export interface PaymentApiInterface {
30052
29722
  */
30053
29723
  cancelVivaTransactionV2(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
30054
29724
 
30055
- /**
30056
- * Captures a previously authorized payment intent, transferring funds from the customer to your account.
30057
- * @summary Capture a Stripe payment intent
30058
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to capture
30059
- * @param {*} [options] Override http request option.
30060
- * @throws {RequiredError}
30061
- * @memberof PaymentApiInterface
30062
- */
30063
- captureStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig): AxiosPromise<StripePaymentIntentDto>;
30064
-
30065
29725
  /**
30066
29726
  * Refund a nets transaction
30067
29727
  * @summary Refund a nets transaction
@@ -30072,17 +29732,6 @@ export interface PaymentApiInterface {
30072
29732
  */
30073
29733
  createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig): AxiosPromise<CreateNetsRefundResponseDto>;
30074
29734
 
30075
- /**
30076
- * Creates a new Viva payment intent.
30077
- * @summary Create Viva payment
30078
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
30079
- * @param {*} [options] Override http request option.
30080
- * @deprecated
30081
- * @throws {RequiredError}
30082
- * @memberof PaymentApiInterface
30083
- */
30084
- createVivaPayment(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentIntent>;
30085
-
30086
29735
  /**
30087
29736
  * Creates a new Viva payment intent.
30088
29737
  * @summary Create Viva payment
@@ -30094,24 +29743,14 @@ export interface PaymentApiInterface {
30094
29743
  createVivaPaymentV3(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentIntent>;
30095
29744
 
30096
29745
  /**
30097
- * Retrieves a list of available Viva payment devices for the associated merchant.
30098
- * @summary Discover Viva payment devices
30099
- * @param {VivaDiscoverDevicesDto} vivaDiscoverDevicesDto Payload to specify discovery criteria for Viva devices.
30100
- * @param {*} [options] Override http request option.
30101
- * @throws {RequiredError}
30102
- * @memberof PaymentApiInterface
30103
- */
30104
- discoverDevices(vivaDiscoverDevicesDto: VivaDiscoverDevicesDto, options?: AxiosRequestConfig): AxiosPromise<Array<VivaDevice>>;
30105
-
30106
- /**
30107
- * Retrieves a connection token for the specified business.
30108
- * @summary Get connection token
30109
- * @param {ConnectionTokenPayloadDto} connectionTokenPayloadDto Connection token payload
29746
+ * Retrieves the refund reference for a specific transaction.
29747
+ * @summary Get refund reference for a transaction
29748
+ * @param {GetPaymentReferenceDto} getPaymentReferenceDto Payment reference query parameters
30110
29749
  * @param {*} [options] Override http request option.
30111
29750
  * @throws {RequiredError}
30112
29751
  * @memberof PaymentApiInterface
30113
29752
  */
30114
- getConnectionToken(connectionTokenPayloadDto: ConnectionTokenPayloadDto, options?: AxiosRequestConfig): AxiosPromise<ConnectionTokenResponseDto>;
29753
+ getPaymentReference(getPaymentReferenceDto: GetPaymentReferenceDto, options?: AxiosRequestConfig): AxiosPromise<PaymentReferenceResponseDto>;
30115
29754
 
30116
29755
  /**
30117
29756
  * Retrieves the current status of a payment transaction by its reference ID.
@@ -30123,16 +29762,6 @@ export interface PaymentApiInterface {
30123
29762
  */
30124
29763
  getPaymentStatus(getPaymentStatusDto: GetPaymentStatusDto, options?: AxiosRequestConfig): AxiosPromise<PaymentStatusDto>;
30125
29764
 
30126
- /**
30127
- * Retrieves a Stripe Terminal connection token for the specified business. This token is required to initialize the Stripe Terminal SDK.
30128
- * @summary Get Stripe Terminal connection token
30129
- * @param {string} businessId Unique identifier for the business
30130
- * @param {*} [options] Override http request option.
30131
- * @throws {RequiredError}
30132
- * @memberof PaymentApiInterface
30133
- */
30134
- getToken(businessId: string, options?: AxiosRequestConfig): AxiosPromise<StripeConnectionTokenDto>;
30135
-
30136
29765
  /**
30137
29766
  * Initiate a terminal transaction
30138
29767
  * @summary Initiate a terminal transaction
@@ -30244,30 +29873,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
30244
29873
  return PaymentApiFp(this.configuration).cancelNetsTerminalTransaction(netsCancelTransactionDto, options).then((request) => request(this.axios, this.basePath));
30245
29874
  }
30246
29875
 
30247
- /**
30248
- * Cancels a payment intent that has not yet been captured, releasing the authorization hold on customer funds.
30249
- * @summary Cancel a Stripe payment intent
30250
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to cancel
30251
- * @param {*} [options] Override http request option.
30252
- * @throws {RequiredError}
30253
- * @memberof PaymentApi
30254
- */
30255
- public cancelStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig) {
30256
- return PaymentApiFp(this.configuration).cancelStripePayment(paymentIntentIdDto, options).then((request) => request(this.axios, this.basePath));
30257
- }
30258
-
30259
- /**
30260
- * Cancels a Viva transaction.
30261
- * @summary Cancel a Viva transaction
30262
- * @param {VivaCancelTransactionDto} vivaCancelTransactionDto Payload to cancel a Viva transaction.
30263
- * @param {*} [options] Override http request option.
30264
- * @throws {RequiredError}
30265
- * @memberof PaymentApi
30266
- */
30267
- public cancelTransaction(vivaCancelTransactionDto: VivaCancelTransactionDto, options?: AxiosRequestConfig) {
30268
- return PaymentApiFp(this.configuration).cancelTransaction(vivaCancelTransactionDto, options).then((request) => request(this.axios, this.basePath));
30269
- }
30270
-
30271
29876
  /**
30272
29877
  * Initiates a request to cancel a Viva payment.
30273
29878
  * @summary Request Viva payment cancellation
@@ -30280,18 +29885,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
30280
29885
  return PaymentApiFp(this.configuration).cancelVivaTransactionV2(vivaCancelTransactionDto, options).then((request) => request(this.axios, this.basePath));
30281
29886
  }
30282
29887
 
30283
- /**
30284
- * Captures a previously authorized payment intent, transferring funds from the customer to your account.
30285
- * @summary Capture a Stripe payment intent
30286
- * @param {PaymentIntentIdDto} paymentIntentIdDto Payment intent ID to capture
30287
- * @param {*} [options] Override http request option.
30288
- * @throws {RequiredError}
30289
- * @memberof PaymentApi
30290
- */
30291
- public captureStripePayment(paymentIntentIdDto: PaymentIntentIdDto, options?: AxiosRequestConfig) {
30292
- return PaymentApiFp(this.configuration).captureStripePayment(paymentIntentIdDto, options).then((request) => request(this.axios, this.basePath));
30293
- }
30294
-
30295
29888
  /**
30296
29889
  * Refund a nets transaction
30297
29890
  * @summary Refund a nets transaction
@@ -30304,19 +29897,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
30304
29897
  return PaymentApiFp(this.configuration).createNetsRefundTransaction(createRefundDto, options).then((request) => request(this.axios, this.basePath));
30305
29898
  }
30306
29899
 
30307
- /**
30308
- * Creates a new Viva payment intent.
30309
- * @summary Create Viva payment
30310
- * @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
30311
- * @param {*} [options] Override http request option.
30312
- * @deprecated
30313
- * @throws {RequiredError}
30314
- * @memberof PaymentApi
30315
- */
30316
- public createVivaPayment(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig) {
30317
- return PaymentApiFp(this.configuration).createVivaPayment(vivaCreatePaymentDto, options).then((request) => request(this.axios, this.basePath));
30318
- }
30319
-
30320
29900
  /**
30321
29901
  * Creates a new Viva payment intent.
30322
29902
  * @summary Create Viva payment
@@ -30330,27 +29910,15 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
30330
29910
  }
30331
29911
 
30332
29912
  /**
30333
- * Retrieves a list of available Viva payment devices for the associated merchant.
30334
- * @summary Discover Viva payment devices
30335
- * @param {VivaDiscoverDevicesDto} vivaDiscoverDevicesDto Payload to specify discovery criteria for Viva devices.
29913
+ * Retrieves the refund reference for a specific transaction.
29914
+ * @summary Get refund reference for a transaction
29915
+ * @param {GetPaymentReferenceDto} getPaymentReferenceDto Payment reference query parameters
30336
29916
  * @param {*} [options] Override http request option.
30337
29917
  * @throws {RequiredError}
30338
29918
  * @memberof PaymentApi
30339
29919
  */
30340
- public discoverDevices(vivaDiscoverDevicesDto: VivaDiscoverDevicesDto, options?: AxiosRequestConfig) {
30341
- return PaymentApiFp(this.configuration).discoverDevices(vivaDiscoverDevicesDto, options).then((request) => request(this.axios, this.basePath));
30342
- }
30343
-
30344
- /**
30345
- * Retrieves a connection token for the specified business.
30346
- * @summary Get connection token
30347
- * @param {ConnectionTokenPayloadDto} connectionTokenPayloadDto Connection token payload
30348
- * @param {*} [options] Override http request option.
30349
- * @throws {RequiredError}
30350
- * @memberof PaymentApi
30351
- */
30352
- public getConnectionToken(connectionTokenPayloadDto: ConnectionTokenPayloadDto, options?: AxiosRequestConfig) {
30353
- return PaymentApiFp(this.configuration).getConnectionToken(connectionTokenPayloadDto, options).then((request) => request(this.axios, this.basePath));
29920
+ public getPaymentReference(getPaymentReferenceDto: GetPaymentReferenceDto, options?: AxiosRequestConfig) {
29921
+ return PaymentApiFp(this.configuration).getPaymentReference(getPaymentReferenceDto, options).then((request) => request(this.axios, this.basePath));
30354
29922
  }
30355
29923
 
30356
29924
  /**
@@ -30365,18 +29933,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
30365
29933
  return PaymentApiFp(this.configuration).getPaymentStatus(getPaymentStatusDto, options).then((request) => request(this.axios, this.basePath));
30366
29934
  }
30367
29935
 
30368
- /**
30369
- * Retrieves a Stripe Terminal connection token for the specified business. This token is required to initialize the Stripe Terminal SDK.
30370
- * @summary Get Stripe Terminal connection token
30371
- * @param {string} businessId Unique identifier for the business
30372
- * @param {*} [options] Override http request option.
30373
- * @throws {RequiredError}
30374
- * @memberof PaymentApi
30375
- */
30376
- public getToken(businessId: string, options?: AxiosRequestConfig) {
30377
- return PaymentApiFp(this.configuration).getToken(businessId, options).then((request) => request(this.axios, this.basePath));
30378
- }
30379
-
30380
29936
  /**
30381
29937
  * Initiate a terminal transaction
30382
29938
  * @summary Initiate a terminal transaction
@@ -33807,6 +33363,131 @@ export class UsersApi extends BaseAPI implements UsersApiInterface {
33807
33363
  }
33808
33364
 
33809
33365
 
33366
+ /**
33367
+ * VivaApi - axios parameter creator
33368
+ * @export
33369
+ */
33370
+ export const VivaApiAxiosParamCreator = function (configuration?: Configuration) {
33371
+ return {
33372
+ /**
33373
+ *
33374
+ * @summary Create Viva app-to-app payment
33375
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto
33376
+ * @param {*} [options] Override http request option.
33377
+ * @throws {RequiredError}
33378
+ */
33379
+ createVivaAppToAppPayment: async (createTerminalPaymentDto: CreateTerminalPaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33380
+ // verify required parameter 'createTerminalPaymentDto' is not null or undefined
33381
+ assertParamExists('createVivaAppToAppPayment', 'createTerminalPaymentDto', createTerminalPaymentDto)
33382
+ const localVarPath = `/api/v1/viva/a2a/create-payment`;
33383
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33384
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33385
+ let baseOptions;
33386
+ if (configuration) {
33387
+ baseOptions = configuration.baseOptions;
33388
+ }
33389
+
33390
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33391
+ const localVarHeaderParameter = {} as any;
33392
+ const localVarQueryParameter = {} as any;
33393
+
33394
+
33395
+
33396
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33397
+
33398
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33400
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33401
+ localVarRequestOptions.data = serializeDataIfNeeded(createTerminalPaymentDto, localVarRequestOptions, configuration)
33402
+
33403
+ return {
33404
+ url: toPathString(localVarUrlObj),
33405
+ options: localVarRequestOptions,
33406
+ };
33407
+ },
33408
+ }
33409
+ };
33410
+
33411
+ /**
33412
+ * VivaApi - functional programming interface
33413
+ * @export
33414
+ */
33415
+ export const VivaApiFp = function(configuration?: Configuration) {
33416
+ const localVarAxiosParamCreator = VivaApiAxiosParamCreator(configuration)
33417
+ return {
33418
+ /**
33419
+ *
33420
+ * @summary Create Viva app-to-app payment
33421
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto
33422
+ * @param {*} [options] Override http request option.
33423
+ * @throws {RequiredError}
33424
+ */
33425
+ async createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaAppToAppInitResponseDto>> {
33426
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVivaAppToAppPayment(createTerminalPaymentDto, options);
33427
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33428
+ },
33429
+ }
33430
+ };
33431
+
33432
+ /**
33433
+ * VivaApi - factory interface
33434
+ * @export
33435
+ */
33436
+ export const VivaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33437
+ const localVarFp = VivaApiFp(configuration)
33438
+ return {
33439
+ /**
33440
+ *
33441
+ * @summary Create Viva app-to-app payment
33442
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto
33443
+ * @param {*} [options] Override http request option.
33444
+ * @throws {RequiredError}
33445
+ */
33446
+ createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: any): AxiosPromise<VivaAppToAppInitResponseDto> {
33447
+ return localVarFp.createVivaAppToAppPayment(createTerminalPaymentDto, options).then((request) => request(axios, basePath));
33448
+ },
33449
+ };
33450
+ };
33451
+
33452
+ /**
33453
+ * VivaApi - interface
33454
+ * @export
33455
+ * @interface VivaApi
33456
+ */
33457
+ export interface VivaApiInterface {
33458
+ /**
33459
+ *
33460
+ * @summary Create Viva app-to-app payment
33461
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto
33462
+ * @param {*} [options] Override http request option.
33463
+ * @throws {RequiredError}
33464
+ * @memberof VivaApiInterface
33465
+ */
33466
+ createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaAppToAppInitResponseDto>;
33467
+
33468
+ }
33469
+
33470
+ /**
33471
+ * VivaApi - object-oriented interface
33472
+ * @export
33473
+ * @class VivaApi
33474
+ * @extends {BaseAPI}
33475
+ */
33476
+ export class VivaApi extends BaseAPI implements VivaApiInterface {
33477
+ /**
33478
+ *
33479
+ * @summary Create Viva app-to-app payment
33480
+ * @param {CreateTerminalPaymentDto} createTerminalPaymentDto
33481
+ * @param {*} [options] Override http request option.
33482
+ * @throws {RequiredError}
33483
+ * @memberof VivaApi
33484
+ */
33485
+ public createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig) {
33486
+ return VivaApiFp(this.configuration).createVivaAppToAppPayment(createTerminalPaymentDto, options).then((request) => request(this.axios, this.basePath));
33487
+ }
33488
+ }
33489
+
33490
+
33810
33491
  /**
33811
33492
  * WebhookApi - axios parameter creator
33812
33493
  * @export