Skip to content

Commit a8955dd

Browse files
author
pedroterriquez
committed
refactor(payment): INT-2614 renaming values for iban/accountnumber
1 parent b389bb8 commit a8955dd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/payment/instrument/instrument-response-body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface AccountInternalInstrument extends BaseInternalInstrument {
2828
external_id: string;
2929
method: string;
3030
method_type: string;
31-
iban?: string;
31+
account_number?: string;
3232
issuer?: string;
3333
}
3434

src/payment/instrument/instrument.mock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function getInstruments(): PaymentInstrument[] {
4545
bigpayToken: '31415',
4646
provider: 'braintree',
4747
trustedShippingAddress: false,
48-
iban: 'ABCABC',
48+
accountNumber: 'ABCABC',
4949
issuer: 'TEST1',
5050
defaultInstrument: false,
5151
type: 'account',
@@ -56,7 +56,7 @@ export function getInstruments(): PaymentInstrument[] {
5656
bigpayToken: '52346',
5757
provider: 'ideal',
5858
trustedShippingAddress: false,
59-
iban: 'DEFDEF',
59+
accountNumber: 'DEFDEF',
6060
issuer: 'TEST2',
6161
defaultInstrument: false,
6262
type: 'bank',
@@ -157,7 +157,7 @@ export function getInternalInstrumentsResponseBody(): InternalInstrumentsRespons
157157
bigpay_token: '31415',
158158
provider: 'braintree',
159159
trusted_shipping_address: false,
160-
iban: 'ABCABC',
160+
account_number: 'ABCABC',
161161
issuer: 'TEST1',
162162
default_instrument: false,
163163
method_type: 'account',
@@ -168,7 +168,7 @@ export function getInternalInstrumentsResponseBody(): InternalInstrumentsRespons
168168
bigpay_token: '52346',
169169
provider: 'ideal',
170170
trusted_shipping_address: false,
171-
iban: 'DEFDEF',
171+
account_number: 'DEFDEF',
172172
issuer: 'TEST2',
173173
default_instrument: false,
174174
method_type: 'bank',

src/payment/instrument/instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface CardInstrument extends BaseInstrument {
2323
export interface AccountInstrument extends BaseInstrument {
2424
externalId: string;
2525
method: string;
26-
iban?: string;
26+
accountNumber?: string;
2727
issuer?: string;
2828
type: string;
2929
}

src/payment/instrument/map-to-account-instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function mapToAccountInstrument(instrument: AccountInternalInstrument): A
1010
trustedShippingAddress: instrument.trusted_shipping_address,
1111
method: instrument.method,
1212
type: instrument.method_type,
13-
iban: instrument.iban,
13+
accountNumber: instrument.account_number,
1414
issuer: instrument.issuer,
1515
};
1616
}

0 commit comments

Comments
 (0)