@emilgroup/payment-sdk 1.22.1-beta.47 → 1.22.1-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/api/bank-orders-api.ts +8 -8
- package/api/exceeding-credits-api.ts +107 -0
- package/api/payment-requests-api.ts +12 -12
- package/base.ts +36 -15
- package/configuration.ts +11 -0
- package/dist/api/bank-orders-api.d.ts +8 -8
- package/dist/api/bank-orders-api.js +6 -6
- package/dist/api/exceeding-credits-api.d.ts +57 -0
- package/dist/api/exceeding-credits-api.js +93 -0
- package/dist/api/payment-requests-api.d.ts +12 -12
- package/dist/api/payment-requests-api.js +9 -9
- package/dist/base.d.ts +1 -0
- package/dist/base.js +36 -16
- package/dist/configuration.d.ts +9 -0
- package/dist/configuration.js +1 -0
- package/dist/models/bank-order-entity.d.ts +1 -0
- package/dist/models/bank-order-entity.js +1 -0
- package/dist/models/create-bank-order-request-dto.d.ts +3 -2
- package/dist/models/create-bank-order-request-dto.js +1 -0
- package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +12 -0
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +1 -1
- package/dist/models/payment-request-class.d.ts +30 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-request-dto.d.ts +2 -2
- package/models/bank-order-entity.ts +1 -0
- package/models/create-bank-order-request-dto.ts +3 -2
- package/models/create-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +12 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/index.ts +2 -0
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +1 -1
- package/models/payment-request-class.ts +30 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ export interface CreatePaymentRequestDto {
|
|
|
63
63
|
*/
|
|
64
64
|
'productSlug'?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof CreatePaymentRequestDto
|
|
69
69
|
*/
|
|
@@ -74,6 +74,18 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
74
74
|
* @memberof CreatePaymentRequestRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
77
|
+
/**
|
|
78
|
+
* Code of the settlement the payment request was created for.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CreatePaymentRequestRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'settlementCode'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Code of the partner the payment request was created for.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreatePaymentRequestRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'partnerCode': string;
|
|
77
89
|
/**
|
|
78
90
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
79
91
|
* @type {string}
|
|
@@ -39,6 +39,12 @@ export interface CreditAllocationClass {
|
|
|
39
39
|
* @memberof CreditAllocationClass
|
|
40
40
|
*/
|
|
41
41
|
'exceedingCreditCodes': Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Partner code derived from the policy related to the exceeding credits.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreditAllocationClass
|
|
46
|
+
*/
|
|
47
|
+
'partnerCode': string;
|
|
42
48
|
/**
|
|
43
49
|
* Policy code associated with the credit.
|
|
44
50
|
* @type {string}
|
package/models/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './create-billing-address-request-dto';
|
|
|
31
31
|
export * from './create-billing-address-response-class';
|
|
32
32
|
export * from './create-credit-allocation-request-dto';
|
|
33
33
|
export * from './create-credit-allocation-response-class';
|
|
34
|
+
export * from './create-exceeding-credit-request-dto';
|
|
35
|
+
export * from './create-exceeding-credit-response-class';
|
|
34
36
|
export * from './create-payment-method-response-class';
|
|
35
37
|
export * from './create-payment-order-dto';
|
|
36
38
|
export * from './create-payment-order-request-dto';
|
|
@@ -22,17 +22,17 @@ import { BillingAddressClass } from './billing-address-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListBillingAddressesResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The billing addresses
|
|
26
|
+
* @type {Array<BillingAddressClass>}
|
|
27
27
|
* @memberof ListBillingAddressesResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<BillingAddressClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListBillingAddressesResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListBillingAddressesResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListBillingAddressesResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
|
21
21
|
* @interface ListExceedingCreditsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListExceedingCreditsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of exceeding credits.
|
|
44
26
|
* @type {Array<ExceedingCreditClass>}
|
|
45
27
|
* @memberof ListExceedingCreditsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<ExceedingCreditClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -22,17 +22,17 @@ import { PaymentReceiptClass } from './payment-receipt-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentReceiptsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The list of payment receipts.
|
|
26
|
+
* @type {Array<PaymentReceiptClass>}
|
|
27
27
|
* @memberof ListPaymentReceiptsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<PaymentReceiptClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListPaymentReceiptsResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPaymentReceiptsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListPaymentReceiptsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { PaymentRequestClass } from './payment-request-class';
|
|
|
21
21
|
* @interface ListPaymentRequestsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentRequestsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of payment requests.
|
|
44
26
|
* @type {Array<PaymentRequestClass>}
|
|
45
27
|
* @memberof ListPaymentRequestsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<PaymentRequestClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -22,17 +22,17 @@ import { PayoutMethodClass } from './payout-method-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPayoutMethodsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The payout methods
|
|
26
|
+
* @type {Array<PayoutMethodClass>}
|
|
27
27
|
* @memberof ListPayoutMethodsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<PayoutMethodClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListPayoutMethodsResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPayoutMethodsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListPayoutMethodsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { RefundClass } from './refund-class';
|
|
|
21
21
|
* @interface ListRefundsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListRefundsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListRefundsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListRefundsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListRefundsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of refunds.
|
|
44
26
|
* @type {Array<RefundClass>}
|
|
45
27
|
* @memberof ListRefundsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<RefundClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListRefundsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -49,7 +49,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentClassWithoutExpandProperties
|
|
51
51
|
*/
|
|
52
|
-
'partnerCode'
|
|
52
|
+
'partnerCode': string;
|
|
53
53
|
/**
|
|
54
54
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
55
55
|
* @type {number}
|
|
@@ -81,7 +81,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
81
81
|
*/
|
|
82
82
|
'productSlug'?: string;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof PaymentClassWithoutExpandProperties
|
|
87
87
|
*/
|
package/models/payment-class.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface PaymentClass {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PaymentClass
|
|
52
52
|
*/
|
|
53
|
-
'partnerCode'
|
|
53
|
+
'partnerCode': string;
|
|
54
54
|
/**
|
|
55
55
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
56
56
|
* @type {number}
|
|
@@ -88,7 +88,7 @@ export interface PaymentClass {
|
|
|
88
88
|
*/
|
|
89
89
|
'productSlug'?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof PaymentClass
|
|
94
94
|
*/
|
package/models/payment-entity.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface PaymentReceiptClass {
|
|
|
51
51
|
*/
|
|
52
52
|
'direction': PaymentReceiptClassDirectionEnum;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof PaymentReceiptClass
|
|
57
57
|
*/
|
|
@@ -99,6 +99,36 @@ export interface PaymentRequestClass {
|
|
|
99
99
|
* @memberof PaymentRequestClass
|
|
100
100
|
*/
|
|
101
101
|
'status': PaymentRequestClassStatusEnum;
|
|
102
|
+
/**
|
|
103
|
+
* Code of the settlement the payment request was created for.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof PaymentRequestClass
|
|
106
|
+
*/
|
|
107
|
+
'settlementCode'?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Code of the partner the payment request was created for.
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof PaymentRequestClass
|
|
112
|
+
*/
|
|
113
|
+
'partnerCode': string;
|
|
114
|
+
/**
|
|
115
|
+
* Code of the bank order that contains this payment request. Absent while the request is in no bank order.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PaymentRequestClass
|
|
118
|
+
*/
|
|
119
|
+
'bankOrderCode'?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Order number of the bank order that contains this payment request.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PaymentRequestClass
|
|
124
|
+
*/
|
|
125
|
+
'bankOrderNumber'?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the request can be added to a bank order. Claim payouts: the partner has an active payout method. Refunds: the policy\'s active payment method is EIS SEPA with an IBAN.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof PaymentRequestClass
|
|
130
|
+
*/
|
|
131
|
+
'recipientHasBankDetails'?: boolean;
|
|
102
132
|
/**
|
|
103
133
|
* Code of the payment method used for this payment request.
|
|
104
134
|
* @type {string}
|
|
@@ -74,5 +74,11 @@ export interface SharedTransactionClass {
|
|
|
74
74
|
* @memberof SharedTransactionClass
|
|
75
75
|
*/
|
|
76
76
|
'updatedBy': string;
|
|
77
|
+
/**
|
|
78
|
+
* Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof SharedTransactionClass
|
|
81
|
+
*/
|
|
82
|
+
'bankTransactionCode'?: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
@@ -51,11 +51,11 @@ export interface UpdateBankOrderRequestDto {
|
|
|
51
51
|
*/
|
|
52
52
|
'executionDate': string;
|
|
53
53
|
/**
|
|
54
|
-
* Latest due date.
|
|
54
|
+
* Latest due date. Required for \'direct_debit\' and \'commission_payment\' orders; optional for \'claim_payment\' and \'refund_payment\', where the execution date is stored in its place (a sent value is still checked against the execution date).
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof UpdateBankOrderRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'dueDate'
|
|
58
|
+
'dueDate'?: string;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export const UpdateBankOrderRequestDtoStatusEnum = {
|