Skip to content

Commit 5f159a7

Browse files
committed
Generate Payout
1 parent 66aaf32 commit 5f159a7

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed

src/typings/payout/fraudCheckResultWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { FraudCheckResult } from "./fraudCheckResult";
1111

1212

1313
export class FraudCheckResultWrapper {
14-
"FraudCheckResult"?: FraudCheckResult;
14+
"FraudCheckResult"?: FraudCheckResult | null;
1515

1616
static readonly discriminator: string | undefined = undefined;
1717

@@ -21,7 +21,7 @@ export class FraudCheckResultWrapper {
2121
{
2222
"name": "FraudCheckResult",
2323
"baseName": "FraudCheckResult",
24-
"type": "FraudCheckResult",
24+
"type": "FraudCheckResult | null",
2525
"format": ""
2626
} ];
2727

src/typings/payout/fundSource.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export class FundSource {
1717
* A map of name-value pairs for passing additional or industry-specific data.
1818
*/
1919
"additionalData"?: { [key: string]: string; };
20-
"billingAddress"?: Address;
21-
"card"?: Card;
20+
"billingAddress"?: Address | null;
21+
"card"?: Card | null;
2222
/**
2323
* Email address of the person.
2424
*/
2525
"shopperEmail"?: string;
26-
"shopperName"?: Name;
26+
"shopperName"?: Name | null;
2727
/**
2828
* Phone number of the person
2929
*/
@@ -43,13 +43,13 @@ export class FundSource {
4343
{
4444
"name": "billingAddress",
4545
"baseName": "billingAddress",
46-
"type": "Address",
46+
"type": "Address | null",
4747
"format": ""
4848
},
4949
{
5050
"name": "card",
5151
"baseName": "card",
52-
"type": "Card",
52+
"type": "Card | null",
5353
"format": ""
5454
},
5555
{
@@ -61,7 +61,7 @@ export class FundSource {
6161
{
6262
"name": "shopperName",
6363
"baseName": "shopperName",
64-
"type": "Name",
64+
"type": "Name | null",
6565
"format": ""
6666
},
6767
{

src/typings/payout/payoutRequest.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ import { Recurring } from "./recurring";
1717

1818
export class PayoutRequest {
1919
"amount": Amount;
20-
"billingAddress"?: Address;
21-
"card"?: Card;
20+
"billingAddress"?: Address | null;
21+
"card"?: Card | null;
2222
/**
2323
* An integer value that is added to the normal fraud score. The value can be either positive or negative.
2424
*/
2525
"fraudOffset"?: number;
26-
"fundSource"?: FundSource;
26+
"fundSource"?: FundSource | null;
2727
/**
2828
* The merchant account identifier, with which you want to process the transaction.
2929
*/
3030
"merchantAccount": string;
31-
"recurring"?: Recurring;
31+
"recurring"?: Recurring | null;
3232
/**
3333
* The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.
3434
*/
@@ -45,7 +45,7 @@ export class PayoutRequest {
4545
* Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.
4646
*/
4747
"shopperInteraction"?: PayoutRequest.ShopperInteractionEnum;
48-
"shopperName"?: Name;
48+
"shopperName"?: Name | null;
4949
/**
5050
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
5151
*/
@@ -69,13 +69,13 @@ export class PayoutRequest {
6969
{
7070
"name": "billingAddress",
7171
"baseName": "billingAddress",
72-
"type": "Address",
72+
"type": "Address | null",
7373
"format": ""
7474
},
7575
{
7676
"name": "card",
7777
"baseName": "card",
78-
"type": "Card",
78+
"type": "Card | null",
7979
"format": ""
8080
},
8181
{
@@ -87,7 +87,7 @@ export class PayoutRequest {
8787
{
8888
"name": "fundSource",
8989
"baseName": "fundSource",
90-
"type": "FundSource",
90+
"type": "FundSource | null",
9191
"format": ""
9292
},
9393
{
@@ -99,7 +99,7 @@ export class PayoutRequest {
9999
{
100100
"name": "recurring",
101101
"baseName": "recurring",
102-
"type": "Recurring",
102+
"type": "Recurring | null",
103103
"format": ""
104104
},
105105
{
@@ -129,7 +129,7 @@ export class PayoutRequest {
129129
{
130130
"name": "shopperName",
131131
"baseName": "shopperName",
132-
"type": "Name",
132+
"type": "Name | null",
133133
"format": ""
134134
},
135135
{

src/typings/payout/payoutResponse.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class PayoutResponse {
2020
* Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.
2121
*/
2222
"authCode"?: string;
23-
"dccAmount"?: Amount;
23+
"dccAmount"?: Amount | null;
2424
/**
2525
* Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).
2626
*/
2727
"dccSignature"?: string;
28-
"fraudResult"?: FraudResult;
28+
"fraudResult"?: FraudResult | null;
2929
/**
3030
* The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL.
3131
*/
@@ -71,7 +71,7 @@ export class PayoutResponse {
7171
{
7272
"name": "dccAmount",
7373
"baseName": "dccAmount",
74-
"type": "Amount",
74+
"type": "Amount | null",
7575
"format": ""
7676
},
7777
{
@@ -83,7 +83,7 @@ export class PayoutResponse {
8383
{
8484
"name": "fraudResult",
8585
"baseName": "fraudResult",
86-
"type": "FraudResult",
86+
"type": "FraudResult | null",
8787
"format": ""
8888
},
8989
{

src/typings/payout/storeDetailAndSubmitRequest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export class StoreDetailAndSubmitRequest {
2121
*/
2222
"additionalData"?: { [key: string]: string; };
2323
"amount": Amount;
24-
"bank"?: BankAccount;
25-
"billingAddress"?: Address;
26-
"card"?: Card;
24+
"bank"?: BankAccount | null;
25+
"billingAddress"?: Address | null;
26+
"card"?: Card | null;
2727
/**
2828
* The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons.
2929
*/
@@ -57,7 +57,7 @@ export class StoreDetailAndSubmitRequest {
5757
* The shopper\'s email address.
5858
*/
5959
"shopperEmail": string;
60-
"shopperName"?: Name;
60+
"shopperName"?: Name | null;
6161
/**
6262
* The shopper\'s reference for the payment transaction.
6363
*/
@@ -95,19 +95,19 @@ export class StoreDetailAndSubmitRequest {
9595
{
9696
"name": "bank",
9797
"baseName": "bank",
98-
"type": "BankAccount",
98+
"type": "BankAccount | null",
9999
"format": ""
100100
},
101101
{
102102
"name": "billingAddress",
103103
"baseName": "billingAddress",
104-
"type": "Address",
104+
"type": "Address | null",
105105
"format": ""
106106
},
107107
{
108108
"name": "card",
109109
"baseName": "card",
110-
"type": "Card",
110+
"type": "Card | null",
111111
"format": ""
112112
},
113113
{
@@ -167,7 +167,7 @@ export class StoreDetailAndSubmitRequest {
167167
{
168168
"name": "shopperName",
169169
"baseName": "shopperName",
170-
"type": "Name",
170+
"type": "Name | null",
171171
"format": ""
172172
},
173173
{

src/typings/payout/storeDetailRequest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class StoreDetailRequest {
1919
* This field contains additional data, which may be required for a particular request.
2020
*/
2121
"additionalData"?: { [key: string]: string; };
22-
"bank"?: BankAccount;
23-
"billingAddress"?: Address;
24-
"card"?: Card;
22+
"bank"?: BankAccount | null;
23+
"billingAddress"?: Address | null;
24+
"card"?: Card | null;
2525
/**
2626
* The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons.
2727
*/
@@ -51,7 +51,7 @@ export class StoreDetailRequest {
5151
* The shopper\'s email address.
5252
*/
5353
"shopperEmail": string;
54-
"shopperName"?: Name;
54+
"shopperName"?: Name | null;
5555
/**
5656
* The shopper\'s reference for the payment transaction.
5757
*/
@@ -79,19 +79,19 @@ export class StoreDetailRequest {
7979
{
8080
"name": "bank",
8181
"baseName": "bank",
82-
"type": "BankAccount",
82+
"type": "BankAccount | null",
8383
"format": ""
8484
},
8585
{
8686
"name": "billingAddress",
8787
"baseName": "billingAddress",
88-
"type": "Address",
88+
"type": "Address | null",
8989
"format": ""
9090
},
9191
{
9292
"name": "card",
9393
"baseName": "card",
94-
"type": "Card",
94+
"type": "Card | null",
9595
"format": ""
9696
},
9797
{
@@ -145,7 +145,7 @@ export class StoreDetailRequest {
145145
{
146146
"name": "shopperName",
147147
"baseName": "shopperName",
148-
"type": "Name",
148+
"type": "Name | null",
149149
"format": ""
150150
},
151151
{

src/typings/payout/submitRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class SubmitRequest {
5151
* The shopper\'s email address.
5252
*/
5353
"shopperEmail": string;
54-
"shopperName"?: Name;
54+
"shopperName"?: Name | null;
5555
/**
5656
* The shopper\'s reference for the payout transaction.
5757
*/
@@ -139,7 +139,7 @@ export class SubmitRequest {
139139
{
140140
"name": "shopperName",
141141
"baseName": "shopperName",
142-
"type": "Name",
142+
"type": "Name | null",
143143
"format": ""
144144
},
145145
{

0 commit comments

Comments
 (0)