Skip to content

Commit 4c4e497

Browse files
feat(api): Add merchant location fields to simulator endpoints
1 parent 6d24726 commit 4c4e497

3 files changed

Lines changed: 62 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-a6c56df3bc156ac1e6ee5d635c6cd964f0d60836fe17a97deec8af8429bd339c.yml
3-
openapi_spec_hash: c563acd10d96ddabe6c9643b592bd509
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ce2adff9b644ed4562b5342a4a43d0b40c98d43b4e063b4626f4ca5d342f1b92.yml
3+
openapi_spec_hash: fbc84b866ce96457261ac58b4e75c71d
44
config_hash: 31d71922d7838f34ae0875c9b8026d99

src/resources/transactions/transactions.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export class Transactions extends APIResource {
8181
* amount: 3831,
8282
* descriptor: 'COFFEE SHOP',
8383
* pan: '4111111289144142',
84+
* merchant_acceptor_city: 'LOS ANGELES',
85+
* merchant_acceptor_country: 'USA',
86+
* merchant_acceptor_state: 'CA',
8487
* });
8588
* ```
8689
*/
@@ -159,7 +162,10 @@ export class Transactions extends APIResource {
159162
* amount: 3831,
160163
* descriptor: 'COFFEE SHOP',
161164
* pan: '4111111289144142',
165+
* merchant_acceptor_city: 'SEATTLE',
166+
* merchant_acceptor_country: 'USA',
162167
* merchant_acceptor_id: 'XRKGDPOWEWQRRWU',
168+
* merchant_acceptor_state: 'WA',
163169
* },
164170
* );
165171
* ```
@@ -1250,11 +1256,26 @@ export interface TransactionSimulateAuthorizationParams {
12501256
*/
12511257
mcc?: string;
12521258

1259+
/**
1260+
* Merchant acceptor city
1261+
*/
1262+
merchant_acceptor_city?: string;
1263+
1264+
/**
1265+
* Merchant acceptor country code (ISO 3166-1 alpha-3)
1266+
*/
1267+
merchant_acceptor_country?: string;
1268+
12531269
/**
12541270
* Unique identifier to identify the payment card acceptor.
12551271
*/
12561272
merchant_acceptor_id?: string;
12571273

1274+
/**
1275+
* Merchant acceptor state/province (ISO 3166-2 subdivision code)
1276+
*/
1277+
merchant_acceptor_state?: string;
1278+
12581279
/**
12591280
* Amount of the transaction to be simulated in currency specified in
12601281
* merchant_currency, including any acquirer fees.
@@ -1363,10 +1384,25 @@ export interface TransactionSimulateCreditAuthorizationParams {
13631384
*/
13641385
mcc?: string;
13651386

1387+
/**
1388+
* Merchant acceptor city
1389+
*/
1390+
merchant_acceptor_city?: string;
1391+
1392+
/**
1393+
* Merchant acceptor country code (ISO 3166-1 alpha-3)
1394+
*/
1395+
merchant_acceptor_country?: string;
1396+
13661397
/**
13671398
* Unique identifier to identify the payment card acceptor.
13681399
*/
13691400
merchant_acceptor_id?: string;
1401+
1402+
/**
1403+
* Merchant acceptor state/province (ISO 3166-2 subdivision code)
1404+
*/
1405+
merchant_acceptor_state?: string;
13701406
}
13711407

13721408
export interface TransactionSimulateCreditAuthorizationAdviceParams {
@@ -1394,10 +1430,25 @@ export interface TransactionSimulateCreditAuthorizationAdviceParams {
13941430
*/
13951431
mcc?: string;
13961432

1433+
/**
1434+
* Merchant acceptor city
1435+
*/
1436+
merchant_acceptor_city?: string;
1437+
1438+
/**
1439+
* Merchant acceptor country code (ISO 3166-1 alpha-3)
1440+
*/
1441+
merchant_acceptor_country?: string;
1442+
13971443
/**
13981444
* Unique identifier to identify the payment card acceptor.
13991445
*/
14001446
merchant_acceptor_id?: string;
1447+
1448+
/**
1449+
* Merchant acceptor state/province (ISO 3166-2 subdivision code)
1450+
*/
1451+
merchant_acceptor_state?: string;
14011452
}
14021453

14031454
export interface TransactionSimulateReturnParams {

tests/api-resources/transactions/transactions.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ describe('resource transactions', () => {
8282
descriptor: 'COFFEE SHOP',
8383
pan: '4111111289144142',
8484
mcc: '5812',
85+
merchant_acceptor_city: 'LOS ANGELES',
86+
merchant_acceptor_country: 'USA',
8587
merchant_acceptor_id: 'OODKZAPJVN4YS7O',
88+
merchant_acceptor_state: 'CA',
8689
merchant_amount: 0,
8790
merchant_currency: 'GBP',
8891
partial_approval_capable: true,
@@ -153,7 +156,10 @@ describe('resource transactions', () => {
153156
descriptor: 'COFFEE SHOP',
154157
pan: '4111111289144142',
155158
mcc: '5812',
159+
merchant_acceptor_city: 'SEATTLE',
160+
merchant_acceptor_country: 'USA',
156161
merchant_acceptor_id: 'XRKGDPOWEWQRRWU',
162+
merchant_acceptor_state: 'WA',
157163
});
158164
});
159165

@@ -178,7 +184,10 @@ describe('resource transactions', () => {
178184
descriptor: 'COFFEE SHOP',
179185
pan: '4111111289144142',
180186
mcc: '5812',
187+
merchant_acceptor_city: 'SEATTLE',
188+
merchant_acceptor_country: 'USA',
181189
merchant_acceptor_id: 'XRKGDPOWEWQRRWU',
190+
merchant_acceptor_state: 'WA',
182191
});
183192
});
184193

0 commit comments

Comments
 (0)