Skip to content

Commit 8a8c0d1

Browse files
feat(api): api update
1 parent 2f03822 commit 8a8c0d1

File tree

6 files changed

+154
-2
lines changed

6 files changed

+154
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 228
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e809e9e4e5bc9c602a2ecebfbdb4a77d6c88c6f70f0b47a7a4d1dd1df4aaa66d.yml
3-
openapi_spec_hash: cb6cb9fa09a8e52f6eb89271b559823d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9848b3b7725425c712a5fba932c836f3210adf21b9b7a232370f13960790158c.yml
3+
openapi_spec_hash: 49090a79a8225d8ad36fe249aac2a12a
44
config_hash: eb2035151c7b49c2f12caf55469b8f9a

src/increase/types/card_payment.py

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"ElementCardAuthorizationAdditionalAmounts",
1717
"ElementCardAuthorizationAdditionalAmountsClinic",
1818
"ElementCardAuthorizationAdditionalAmountsDental",
19+
"ElementCardAuthorizationAdditionalAmountsOriginal",
1920
"ElementCardAuthorizationAdditionalAmountsPrescription",
2021
"ElementCardAuthorizationAdditionalAmountsSurcharge",
2122
"ElementCardAuthorizationAdditionalAmountsTotalCumulative",
@@ -34,6 +35,7 @@
3435
"ElementCardDeclineAdditionalAmounts",
3536
"ElementCardDeclineAdditionalAmountsClinic",
3637
"ElementCardDeclineAdditionalAmountsDental",
38+
"ElementCardDeclineAdditionalAmountsOriginal",
3739
"ElementCardDeclineAdditionalAmountsPrescription",
3840
"ElementCardDeclineAdditionalAmountsSurcharge",
3941
"ElementCardDeclineAdditionalAmountsTotalCumulative",
@@ -53,6 +55,7 @@
5355
"ElementCardIncrementAdditionalAmounts",
5456
"ElementCardIncrementAdditionalAmountsClinic",
5557
"ElementCardIncrementAdditionalAmountsDental",
58+
"ElementCardIncrementAdditionalAmountsOriginal",
5659
"ElementCardIncrementAdditionalAmountsPrescription",
5760
"ElementCardIncrementAdditionalAmountsSurcharge",
5861
"ElementCardIncrementAdditionalAmountsTotalCumulative",
@@ -90,6 +93,7 @@
9093
"ElementCardValidationAdditionalAmounts",
9194
"ElementCardValidationAdditionalAmountsClinic",
9295
"ElementCardValidationAdditionalAmountsDental",
96+
"ElementCardValidationAdditionalAmountsOriginal",
9397
"ElementCardValidationAdditionalAmountsPrescription",
9498
"ElementCardValidationAdditionalAmountsSurcharge",
9599
"ElementCardValidationAdditionalAmountsTotalCumulative",
@@ -304,6 +308,21 @@ class ElementCardAuthorizationAdditionalAmountsDental(BaseModel):
304308
"""
305309

306310

311+
class ElementCardAuthorizationAdditionalAmountsOriginal(BaseModel):
312+
amount: int
313+
"""The amount in minor units of the `currency` field.
314+
315+
The amount is positive if it is added to the amount (such as an ATM surcharge
316+
fee) and negative if it is subtracted from the amount (such as a discount).
317+
"""
318+
319+
currency: str
320+
"""
321+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
322+
amount's currency.
323+
"""
324+
325+
307326
class ElementCardAuthorizationAdditionalAmountsPrescription(BaseModel):
308327
amount: int
309328
"""The amount in minor units of the `currency` field.
@@ -416,6 +435,9 @@ class ElementCardAuthorizationAdditionalAmounts(BaseModel):
416435
dental: Optional[ElementCardAuthorizationAdditionalAmountsDental] = None
417436
"""The part of this transaction amount that was for dental-related services."""
418437

438+
original: Optional[ElementCardAuthorizationAdditionalAmountsOriginal] = None
439+
"""The original pre-authorized amount."""
440+
419441
prescription: Optional[ElementCardAuthorizationAdditionalAmountsPrescription] = None
420442
"""The part of this transaction amount that was for healthcare prescriptions."""
421443

@@ -920,6 +942,21 @@ class ElementCardDeclineAdditionalAmountsDental(BaseModel):
920942
"""
921943

922944

945+
class ElementCardDeclineAdditionalAmountsOriginal(BaseModel):
946+
amount: int
947+
"""The amount in minor units of the `currency` field.
948+
949+
The amount is positive if it is added to the amount (such as an ATM surcharge
950+
fee) and negative if it is subtracted from the amount (such as a discount).
951+
"""
952+
953+
currency: str
954+
"""
955+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
956+
amount's currency.
957+
"""
958+
959+
923960
class ElementCardDeclineAdditionalAmountsPrescription(BaseModel):
924961
amount: int
925962
"""The amount in minor units of the `currency` field.
@@ -1032,6 +1069,9 @@ class ElementCardDeclineAdditionalAmounts(BaseModel):
10321069
dental: Optional[ElementCardDeclineAdditionalAmountsDental] = None
10331070
"""The part of this transaction amount that was for dental-related services."""
10341071

1072+
original: Optional[ElementCardDeclineAdditionalAmountsOriginal] = None
1073+
"""The original pre-authorized amount."""
1074+
10351075
prescription: Optional[ElementCardDeclineAdditionalAmountsPrescription] = None
10361076
"""The part of this transaction amount that was for healthcare prescriptions."""
10371077

@@ -1651,6 +1691,21 @@ class ElementCardIncrementAdditionalAmountsDental(BaseModel):
16511691
"""
16521692

16531693

1694+
class ElementCardIncrementAdditionalAmountsOriginal(BaseModel):
1695+
amount: int
1696+
"""The amount in minor units of the `currency` field.
1697+
1698+
The amount is positive if it is added to the amount (such as an ATM surcharge
1699+
fee) and negative if it is subtracted from the amount (such as a discount).
1700+
"""
1701+
1702+
currency: str
1703+
"""
1704+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1705+
amount's currency.
1706+
"""
1707+
1708+
16541709
class ElementCardIncrementAdditionalAmountsPrescription(BaseModel):
16551710
amount: int
16561711
"""The amount in minor units of the `currency` field.
@@ -1763,6 +1818,9 @@ class ElementCardIncrementAdditionalAmounts(BaseModel):
17631818
dental: Optional[ElementCardIncrementAdditionalAmountsDental] = None
17641819
"""The part of this transaction amount that was for dental-related services."""
17651820

1821+
original: Optional[ElementCardIncrementAdditionalAmountsOriginal] = None
1822+
"""The original pre-authorized amount."""
1823+
17661824
prescription: Optional[ElementCardIncrementAdditionalAmountsPrescription] = None
17671825
"""The part of this transaction amount that was for healthcare prescriptions."""
17681826

@@ -3252,6 +3310,21 @@ class ElementCardValidationAdditionalAmountsDental(BaseModel):
32523310
"""
32533311

32543312

3313+
class ElementCardValidationAdditionalAmountsOriginal(BaseModel):
3314+
amount: int
3315+
"""The amount in minor units of the `currency` field.
3316+
3317+
The amount is positive if it is added to the amount (such as an ATM surcharge
3318+
fee) and negative if it is subtracted from the amount (such as a discount).
3319+
"""
3320+
3321+
currency: str
3322+
"""
3323+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
3324+
amount's currency.
3325+
"""
3326+
3327+
32553328
class ElementCardValidationAdditionalAmountsPrescription(BaseModel):
32563329
amount: int
32573330
"""The amount in minor units of the `currency` field.
@@ -3364,6 +3437,9 @@ class ElementCardValidationAdditionalAmounts(BaseModel):
33643437
dental: Optional[ElementCardValidationAdditionalAmountsDental] = None
33653438
"""The part of this transaction amount that was for dental-related services."""
33663439

3440+
original: Optional[ElementCardValidationAdditionalAmountsOriginal] = None
3441+
"""The original pre-authorized amount."""
3442+
33673443
prescription: Optional[ElementCardValidationAdditionalAmountsPrescription] = None
33683444
"""The part of this transaction amount that was for healthcare prescriptions."""
33693445

src/increase/types/declined_transaction.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"SourceCardDeclineAdditionalAmounts",
1515
"SourceCardDeclineAdditionalAmountsClinic",
1616
"SourceCardDeclineAdditionalAmountsDental",
17+
"SourceCardDeclineAdditionalAmountsOriginal",
1718
"SourceCardDeclineAdditionalAmountsPrescription",
1819
"SourceCardDeclineAdditionalAmountsSurcharge",
1920
"SourceCardDeclineAdditionalAmountsTotalCumulative",
@@ -152,6 +153,21 @@ class SourceCardDeclineAdditionalAmountsDental(BaseModel):
152153
"""
153154

154155

156+
class SourceCardDeclineAdditionalAmountsOriginal(BaseModel):
157+
amount: int
158+
"""The amount in minor units of the `currency` field.
159+
160+
The amount is positive if it is added to the amount (such as an ATM surcharge
161+
fee) and negative if it is subtracted from the amount (such as a discount).
162+
"""
163+
164+
currency: str
165+
"""
166+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
167+
amount's currency.
168+
"""
169+
170+
155171
class SourceCardDeclineAdditionalAmountsPrescription(BaseModel):
156172
amount: int
157173
"""The amount in minor units of the `currency` field.
@@ -264,6 +280,9 @@ class SourceCardDeclineAdditionalAmounts(BaseModel):
264280
dental: Optional[SourceCardDeclineAdditionalAmountsDental] = None
265281
"""The part of this transaction amount that was for dental-related services."""
266282

283+
original: Optional[SourceCardDeclineAdditionalAmountsOriginal] = None
284+
"""The original pre-authorized amount."""
285+
267286
prescription: Optional[SourceCardDeclineAdditionalAmountsPrescription] = None
268287
"""The part of this transaction amount that was for healthcare prescriptions."""
269288

src/increase/types/pending_transaction.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"SourceCardAuthorizationAdditionalAmounts",
1616
"SourceCardAuthorizationAdditionalAmountsClinic",
1717
"SourceCardAuthorizationAdditionalAmountsDental",
18+
"SourceCardAuthorizationAdditionalAmountsOriginal",
1819
"SourceCardAuthorizationAdditionalAmountsPrescription",
1920
"SourceCardAuthorizationAdditionalAmountsSurcharge",
2021
"SourceCardAuthorizationAdditionalAmountsTotalCumulative",
@@ -102,6 +103,21 @@ class SourceCardAuthorizationAdditionalAmountsDental(BaseModel):
102103
"""
103104

104105

106+
class SourceCardAuthorizationAdditionalAmountsOriginal(BaseModel):
107+
amount: int
108+
"""The amount in minor units of the `currency` field.
109+
110+
The amount is positive if it is added to the amount (such as an ATM surcharge
111+
fee) and negative if it is subtracted from the amount (such as a discount).
112+
"""
113+
114+
currency: str
115+
"""
116+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
117+
amount's currency.
118+
"""
119+
120+
105121
class SourceCardAuthorizationAdditionalAmountsPrescription(BaseModel):
106122
amount: int
107123
"""The amount in minor units of the `currency` field.
@@ -214,6 +230,9 @@ class SourceCardAuthorizationAdditionalAmounts(BaseModel):
214230
dental: Optional[SourceCardAuthorizationAdditionalAmountsDental] = None
215231
"""The part of this transaction amount that was for dental-related services."""
216232

233+
original: Optional[SourceCardAuthorizationAdditionalAmountsOriginal] = None
234+
"""The original pre-authorized amount."""
235+
217236
prescription: Optional[SourceCardAuthorizationAdditionalAmountsPrescription] = None
218237
"""The part of this transaction amount that was for healthcare prescriptions."""
219238

src/increase/types/real_time_decision.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"CardAuthorizationAdditionalAmounts",
1515
"CardAuthorizationAdditionalAmountsClinic",
1616
"CardAuthorizationAdditionalAmountsDental",
17+
"CardAuthorizationAdditionalAmountsOriginal",
1718
"CardAuthorizationAdditionalAmountsPrescription",
1819
"CardAuthorizationAdditionalAmountsSurcharge",
1920
"CardAuthorizationAdditionalAmountsTotalCumulative",
@@ -115,6 +116,21 @@ class CardAuthorizationAdditionalAmountsDental(BaseModel):
115116
"""
116117

117118

119+
class CardAuthorizationAdditionalAmountsOriginal(BaseModel):
120+
amount: int
121+
"""The amount in minor units of the `currency` field.
122+
123+
The amount is positive if it is added to the amount (such as an ATM surcharge
124+
fee) and negative if it is subtracted from the amount (such as a discount).
125+
"""
126+
127+
currency: str
128+
"""
129+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
130+
amount's currency.
131+
"""
132+
133+
118134
class CardAuthorizationAdditionalAmountsPrescription(BaseModel):
119135
amount: int
120136
"""The amount in minor units of the `currency` field.
@@ -227,6 +243,9 @@ class CardAuthorizationAdditionalAmounts(BaseModel):
227243
dental: Optional[CardAuthorizationAdditionalAmountsDental] = None
228244
"""The part of this transaction amount that was for dental-related services."""
229245

246+
original: Optional[CardAuthorizationAdditionalAmountsOriginal] = None
247+
"""The original pre-authorized amount."""
248+
230249
prescription: Optional[CardAuthorizationAdditionalAmountsPrescription] = None
231250
"""The part of this transaction amount that was for healthcare prescriptions."""
232251

src/increase/types/transaction.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"SourceCardFinancialAdditionalAmounts",
2323
"SourceCardFinancialAdditionalAmountsClinic",
2424
"SourceCardFinancialAdditionalAmountsDental",
25+
"SourceCardFinancialAdditionalAmountsOriginal",
2526
"SourceCardFinancialAdditionalAmountsPrescription",
2627
"SourceCardFinancialAdditionalAmountsSurcharge",
2728
"SourceCardFinancialAdditionalAmountsTotalCumulative",
@@ -521,6 +522,21 @@ class SourceCardFinancialAdditionalAmountsDental(BaseModel):
521522
"""
522523

523524

525+
class SourceCardFinancialAdditionalAmountsOriginal(BaseModel):
526+
amount: int
527+
"""The amount in minor units of the `currency` field.
528+
529+
The amount is positive if it is added to the amount (such as an ATM surcharge
530+
fee) and negative if it is subtracted from the amount (such as a discount).
531+
"""
532+
533+
currency: str
534+
"""
535+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
536+
amount's currency.
537+
"""
538+
539+
524540
class SourceCardFinancialAdditionalAmountsPrescription(BaseModel):
525541
amount: int
526542
"""The amount in minor units of the `currency` field.
@@ -633,6 +649,9 @@ class SourceCardFinancialAdditionalAmounts(BaseModel):
633649
dental: Optional[SourceCardFinancialAdditionalAmountsDental] = None
634650
"""The part of this transaction amount that was for dental-related services."""
635651

652+
original: Optional[SourceCardFinancialAdditionalAmountsOriginal] = None
653+
"""The original pre-authorized amount."""
654+
636655
prescription: Optional[SourceCardFinancialAdditionalAmountsPrescription] = None
637656
"""The part of this transaction amount that was for healthcare prescriptions."""
638657

0 commit comments

Comments
 (0)