Skip to content

Commit 6ff1366

Browse files
committed
Generate Recurring
1 parent 5f159a7 commit 6ff1366

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

src/typings/recurring/permit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class Permit {
1919
* The profile to apply to this permit (when using the shared permits model).
2020
*/
2121
"profileReference"?: string;
22-
"restriction"?: PermitRestriction;
22+
"restriction"?: PermitRestriction | null;
2323
/**
2424
* The key to link permit requests to permit results.
2525
*/
@@ -49,7 +49,7 @@ export class Permit {
4949
{
5050
"name": "restriction",
5151
"baseName": "restriction",
52-
"type": "PermitRestriction",
52+
"type": "PermitRestriction | null",
5353
"format": ""
5454
},
5555
{

src/typings/recurring/permitRestriction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { Amount } from "./amount";
1111

1212

1313
export class PermitRestriction {
14-
"maxAmount"?: Amount;
15-
"singleTransactionLimit"?: Amount;
14+
"maxAmount"?: Amount | null;
15+
"singleTransactionLimit"?: Amount | null;
1616
/**
1717
* Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed.
1818
*/
@@ -26,13 +26,13 @@ export class PermitRestriction {
2626
{
2727
"name": "maxAmount",
2828
"baseName": "maxAmount",
29-
"type": "Amount",
29+
"type": "Amount | null",
3030
"format": ""
3131
},
3232
{
3333
"name": "singleTransactionLimit",
3434
"baseName": "singleTransactionLimit",
35-
"type": "Amount",
35+
"type": "Amount | null",
3636
"format": ""
3737
},
3838
{

src/typings/recurring/recurringDetail.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export class RecurringDetail {
2727
* The alias type of the credit card number. Applies only to recurring contracts storing credit card details.
2828
*/
2929
"aliasType"?: string;
30-
"bank"?: BankAccount;
31-
"billingAddress"?: Address;
32-
"card"?: Card;
30+
"bank"?: BankAccount | null;
31+
"billingAddress"?: Address | null;
32+
"card"?: Card | null;
3333
/**
3434
* Types of recurring contracts.
3535
*/
@@ -58,12 +58,12 @@ export class RecurringDetail {
5858
* The reference that uniquely identifies the recurring detail.
5959
*/
6060
"recurringDetailReference": string;
61-
"shopperName"?: Name;
61+
"shopperName"?: Name | null;
6262
/**
6363
* A shopper\'s social security number (only in countries where it is legal to collect).
6464
*/
6565
"socialSecurityNumber"?: string;
66-
"tokenDetails"?: TokenDetails;
66+
"tokenDetails"?: TokenDetails | null;
6767
/**
6868
* The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\".
6969
*/
@@ -95,19 +95,19 @@ export class RecurringDetail {
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
{
@@ -155,7 +155,7 @@ export class RecurringDetail {
155155
{
156156
"name": "shopperName",
157157
"baseName": "shopperName",
158-
"type": "Name",
158+
"type": "Name | null",
159159
"format": ""
160160
},
161161
{
@@ -167,7 +167,7 @@ export class RecurringDetail {
167167
{
168168
"name": "tokenDetails",
169169
"baseName": "tokenDetails",
170-
"type": "TokenDetails",
170+
"type": "TokenDetails | null",
171171
"format": ""
172172
},
173173
{

src/typings/recurring/recurringDetailWrapper.ts

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

1212

1313
export class RecurringDetailWrapper {
14-
"RecurringDetail"?: RecurringDetail;
14+
"RecurringDetail"?: RecurringDetail | null;
1515

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

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

src/typings/recurring/recurringDetailsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class RecurringDetailsRequest {
1515
* The merchant account identifier you want to process the (transaction) request with.
1616
*/
1717
"merchantAccount": string;
18-
"recurring"?: Recurring;
18+
"recurring"?: Recurring | null;
1919
/**
2020
* The reference you use to uniquely identify the shopper (e.g. user ID or account ID).
2121
*/
@@ -35,7 +35,7 @@ export class RecurringDetailsRequest {
3535
{
3636
"name": "recurring",
3737
"baseName": "recurring",
38-
"type": "Recurring",
38+
"type": "Recurring | null",
3939
"format": ""
4040
},
4141
{

src/typings/recurring/scheduleAccountUpdaterRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ScheduleAccountUpdaterRequest {
1515
* This field contains additional data, which may be required for a particular request.
1616
*/
1717
"additionalData"?: { [key: string]: string; };
18-
"card"?: Card;
18+
"card"?: Card | null;
1919
/**
2020
* Account of the merchant.
2121
*/
@@ -47,7 +47,7 @@ export class ScheduleAccountUpdaterRequest {
4747
{
4848
"name": "card",
4949
"baseName": "card",
50-
"type": "Card",
50+
"type": "Card | null",
5151
"format": ""
5252
},
5353
{

0 commit comments

Comments
 (0)