Skip to content

Commit 048542a

Browse files
feat(api): api update
1 parent d8d8381 commit 048542a

15 files changed

Lines changed: 289 additions & 289 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 232
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cff24fe63c8cb06a46048b355f873c22def0798a38de892671d379e58d98bc03.yml
3-
openapi_spec_hash: 4f7ae65440fefa73441023480d6ac9a4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-845aba046473ba39ae898570153537fb31dd6f8cb260dd8478a14fd4275ca97f.yml
3+
openapi_spec_hash: 8afbe65f9d6614f0960f141ae0de0c39
44
config_hash: 27e44ed36b9c5617b580ead7231a594a

src/increase/types/account_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ class CreatedByUser(BaseModel):
7979
class CreatedBy(BaseModel):
8080
"""What object created the transfer, either via the API or the dashboard."""
8181

82-
api_key: Optional[CreatedByAPIKey] = None
83-
"""If present, details about the API key that created the transfer."""
84-
8582
category: Literal["api_key", "oauth_application", "user"]
8683
"""The type of object that created this transfer.
8784
@@ -92,6 +89,9 @@ class CreatedBy(BaseModel):
9289
object.
9390
"""
9491

92+
api_key: Optional[CreatedByAPIKey] = None
93+
"""If present, details about the API key that created the transfer."""
94+
9595
oauth_application: Optional[CreatedByOAuthApplication] = None
9696
"""If present, details about the OAuth Application that created the transfer."""
9797

src/increase/types/ach_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ class CreatedByUser(BaseModel):
164164
class CreatedBy(BaseModel):
165165
"""What object created the transfer, either via the API or the dashboard."""
166166

167-
api_key: Optional[CreatedByAPIKey] = None
168-
"""If present, details about the API key that created the transfer."""
169-
170167
category: Literal["api_key", "oauth_application", "user"]
171168
"""The type of object that created this transfer.
172169
@@ -177,6 +174,9 @@ class CreatedBy(BaseModel):
177174
object.
178175
"""
179176

177+
api_key: Optional[CreatedByAPIKey] = None
178+
"""If present, details about the API key that created the transfer."""
179+
180180
oauth_application: Optional[CreatedByOAuthApplication] = None
181181
"""If present, details about the OAuth Application that created the transfer."""
182182

src/increase/types/card_dispute.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,15 @@ class VisaNetworkEvent(BaseModel):
802802
Network Event: details will be under the `user_withdrawal_submitted` object.
803803
"""
804804

805+
created_at: datetime
806+
"""
807+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
808+
the Visa Card Dispute Network Event was created.
809+
"""
810+
811+
dispute_financial_transaction_id: Optional[str] = None
812+
"""The dispute financial transaction that resulted from the network event, if any."""
813+
805814
chargeback_accepted: Optional[VisaNetworkEventChargebackAccepted] = None
806815
"""A Card Dispute Chargeback Accepted Visa Network Event object.
807816
@@ -829,15 +838,6 @@ class VisaNetworkEvent(BaseModel):
829838
has timed out in the user's favor.
830839
"""
831840

832-
created_at: datetime
833-
"""
834-
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
835-
the Visa Card Dispute Network Event was created.
836-
"""
837-
838-
dispute_financial_transaction_id: Optional[str] = None
839-
"""The dispute financial transaction that resulted from the network event, if any."""
840-
841841
merchant_prearbitration_decline_submitted: Optional[VisaNetworkEventMerchantPrearbitrationDeclineSubmitted] = None
842842
"""
843843
A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event
@@ -2523,14 +2523,6 @@ class VisaUserSubmission(BaseModel):
25232523
Submission: details will be under the `user_prearbitration` object.
25242524
"""
25252525

2526-
chargeback: Optional[VisaUserSubmissionChargeback] = None
2527-
"""A Visa Card Dispute Chargeback User Submission Chargeback Details object.
2528-
2529-
This field will be present in the JSON response if and only if `category` is
2530-
equal to `chargeback`. Contains the details specific to a Visa chargeback User
2531-
Submission for a Card Dispute.
2532-
"""
2533-
25342526
created_at: datetime
25352527
"""
25362528
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -2555,14 +2547,6 @@ class VisaUserSubmission(BaseModel):
25552547
Visa Card Dispute.
25562548
"""
25572549

2558-
merchant_prearbitration_decline: Optional[VisaUserSubmissionMerchantPrearbitrationDecline] = None
2559-
"""A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object.
2560-
2561-
This field will be present in the JSON response if and only if `category` is
2562-
equal to `merchant_prearbitration_decline`. Contains the details specific to a
2563-
merchant prearbitration decline Visa Card Dispute User Submission.
2564-
"""
2565-
25662550
status: Literal["abandoned", "accepted", "further_information_requested", "pending_reviewing"]
25672551
"""The status of the Visa Card Dispute User Submission.
25682552
@@ -2579,6 +2563,22 @@ class VisaUserSubmission(BaseModel):
25792563
the Visa Card Dispute User Submission was updated.
25802564
"""
25812565

2566+
chargeback: Optional[VisaUserSubmissionChargeback] = None
2567+
"""A Visa Card Dispute Chargeback User Submission Chargeback Details object.
2568+
2569+
This field will be present in the JSON response if and only if `category` is
2570+
equal to `chargeback`. Contains the details specific to a Visa chargeback User
2571+
Submission for a Card Dispute.
2572+
"""
2573+
2574+
merchant_prearbitration_decline: Optional[VisaUserSubmissionMerchantPrearbitrationDecline] = None
2575+
"""A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object.
2576+
2577+
This field will be present in the JSON response if and only if `category` is
2578+
equal to `merchant_prearbitration_decline`. Contains the details specific to a
2579+
merchant prearbitration decline Visa Card Dispute User Submission.
2580+
"""
2581+
25822582
user_prearbitration: Optional[VisaUserSubmissionUserPrearbitration] = None
25832583
"""A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object.
25842584

src/increase/types/card_payment.py

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5510,6 +5510,58 @@ class ElementOther(BaseModel):
55105510

55115511

55125512
class Element(BaseModel):
5513+
category: Literal[
5514+
"card_authorization",
5515+
"card_authentication",
5516+
"card_balance_inquiry",
5517+
"card_validation",
5518+
"card_decline",
5519+
"card_reversal",
5520+
"card_authorization_expiration",
5521+
"card_increment",
5522+
"card_settlement",
5523+
"card_refund",
5524+
"card_fuel_confirmation",
5525+
"card_financial",
5526+
"other",
5527+
]
5528+
"""The type of the resource.
5529+
5530+
We may add additional possible values for this enum over time; your application
5531+
should be able to handle such additions gracefully.
5532+
5533+
- `card_authorization` - Card Authorization: details will be under the
5534+
`card_authorization` object.
5535+
- `card_authentication` - Card Authentication: details will be under the
5536+
`card_authentication` object.
5537+
- `card_balance_inquiry` - Card Balance Inquiry: details will be under the
5538+
`card_balance_inquiry` object.
5539+
- `card_validation` - Inbound Card Validation: details will be under the
5540+
`card_validation` object.
5541+
- `card_decline` - Card Decline: details will be under the `card_decline`
5542+
object.
5543+
- `card_reversal` - Card Reversal: details will be under the `card_reversal`
5544+
object.
5545+
- `card_authorization_expiration` - Card Authorization Expiration: details will
5546+
be under the `card_authorization_expiration` object.
5547+
- `card_increment` - Card Increment: details will be under the `card_increment`
5548+
object.
5549+
- `card_settlement` - Card Settlement: details will be under the
5550+
`card_settlement` object.
5551+
- `card_refund` - Card Refund: details will be under the `card_refund` object.
5552+
- `card_fuel_confirmation` - Card Fuel Confirmation: details will be under the
5553+
`card_fuel_confirmation` object.
5554+
- `card_financial` - Card Financial: details will be under the `card_financial`
5555+
object.
5556+
- `other` - Unknown card payment element.
5557+
"""
5558+
5559+
created_at: datetime
5560+
"""
5561+
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
5562+
the card payment element was created.
5563+
"""
5564+
55135565
card_authentication: Optional[ElementCardAuthentication] = None
55145566
"""A Card Authentication object.
55155567
@@ -5609,58 +5661,6 @@ class Element(BaseModel):
56095661
Verification Value are valid.
56105662
"""
56115663

5612-
category: Literal[
5613-
"card_authorization",
5614-
"card_authentication",
5615-
"card_balance_inquiry",
5616-
"card_validation",
5617-
"card_decline",
5618-
"card_reversal",
5619-
"card_authorization_expiration",
5620-
"card_increment",
5621-
"card_settlement",
5622-
"card_refund",
5623-
"card_fuel_confirmation",
5624-
"card_financial",
5625-
"other",
5626-
]
5627-
"""The type of the resource.
5628-
5629-
We may add additional possible values for this enum over time; your application
5630-
should be able to handle such additions gracefully.
5631-
5632-
- `card_authorization` - Card Authorization: details will be under the
5633-
`card_authorization` object.
5634-
- `card_authentication` - Card Authentication: details will be under the
5635-
`card_authentication` object.
5636-
- `card_balance_inquiry` - Card Balance Inquiry: details will be under the
5637-
`card_balance_inquiry` object.
5638-
- `card_validation` - Inbound Card Validation: details will be under the
5639-
`card_validation` object.
5640-
- `card_decline` - Card Decline: details will be under the `card_decline`
5641-
object.
5642-
- `card_reversal` - Card Reversal: details will be under the `card_reversal`
5643-
object.
5644-
- `card_authorization_expiration` - Card Authorization Expiration: details will
5645-
be under the `card_authorization_expiration` object.
5646-
- `card_increment` - Card Increment: details will be under the `card_increment`
5647-
object.
5648-
- `card_settlement` - Card Settlement: details will be under the
5649-
`card_settlement` object.
5650-
- `card_refund` - Card Refund: details will be under the `card_refund` object.
5651-
- `card_fuel_confirmation` - Card Fuel Confirmation: details will be under the
5652-
`card_fuel_confirmation` object.
5653-
- `card_financial` - Card Financial: details will be under the `card_financial`
5654-
object.
5655-
- `other` - Unknown card payment element.
5656-
"""
5657-
5658-
created_at: datetime
5659-
"""
5660-
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
5661-
the card payment element was created.
5662-
"""
5663-
56645664
other: Optional[ElementOther] = None
56655665
"""
56665666
If the category of this Transaction source is equal to `other`, this field will

src/increase/types/card_push_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ class CreatedByUser(BaseModel):
112112
class CreatedBy(BaseModel):
113113
"""What object created the transfer, either via the API or the dashboard."""
114114

115-
api_key: Optional[CreatedByAPIKey] = None
116-
"""If present, details about the API key that created the transfer."""
117-
118115
category: Literal["api_key", "oauth_application", "user"]
119116
"""The type of object that created this transfer.
120117
@@ -125,6 +122,9 @@ class CreatedBy(BaseModel):
125122
object.
126123
"""
127124

125+
api_key: Optional[CreatedByAPIKey] = None
126+
"""If present, details about the API key that created the transfer."""
127+
128128
oauth_application: Optional[CreatedByOAuthApplication] = None
129129
"""If present, details about the OAuth Application that created the transfer."""
130130

src/increase/types/card_validation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ class CreatedByUser(BaseModel):
122122
class CreatedBy(BaseModel):
123123
"""What object created the validation, either via the API or the dashboard."""
124124

125-
api_key: Optional[CreatedByAPIKey] = None
126-
"""If present, details about the API key that created the transfer."""
127-
128125
category: Literal["api_key", "oauth_application", "user"]
129126
"""The type of object that created this transfer.
130127
@@ -135,6 +132,9 @@ class CreatedBy(BaseModel):
135132
object.
136133
"""
137134

135+
api_key: Optional[CreatedByAPIKey] = None
136+
"""If present, details about the API key that created the transfer."""
137+
138138
oauth_application: Optional[CreatedByOAuthApplication] = None
139139
"""If present, details about the OAuth Application that created the transfer."""
140140

src/increase/types/check_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ class CreatedByUser(BaseModel):
8989
class CreatedBy(BaseModel):
9090
"""What object created the transfer, either via the API or the dashboard."""
9191

92-
api_key: Optional[CreatedByAPIKey] = None
93-
"""If present, details about the API key that created the transfer."""
94-
9592
category: Literal["api_key", "oauth_application", "user"]
9693
"""The type of object that created this transfer.
9794
@@ -102,6 +99,9 @@ class CreatedBy(BaseModel):
10299
object.
103100
"""
104101

102+
api_key: Optional[CreatedByAPIKey] = None
103+
"""If present, details about the API key that created the transfer."""
104+
105105
oauth_application: Optional[CreatedByOAuthApplication] = None
106106
"""If present, details about the OAuth Application that created the transfer."""
107107

src/increase/types/declined_transaction.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,20 +1225,6 @@ class Source(BaseModel):
12251225
This is an object giving more details on the network-level event that caused the Declined Transaction. For example, for a card transaction this lists the merchant's industry and location. Note that for backwards compatibility reasons, additional undocumented keys may appear in this object. These should be treated as deprecated and will be removed in the future.
12261226
"""
12271227

1228-
ach_decline: Optional[SourceACHDecline] = None
1229-
"""An ACH Decline object.
1230-
1231-
This field will be present in the JSON response if and only if `category` is
1232-
equal to `ach_decline`.
1233-
"""
1234-
1235-
card_decline: Optional[SourceCardDecline] = None
1236-
"""A Card Decline object.
1237-
1238-
This field will be present in the JSON response if and only if `category` is
1239-
equal to `card_decline`.
1240-
"""
1241-
12421228
category: Literal[
12431229
"ach_decline",
12441230
"card_decline",
@@ -1272,6 +1258,20 @@ class Source(BaseModel):
12721258
reason.
12731259
"""
12741260

1261+
ach_decline: Optional[SourceACHDecline] = None
1262+
"""An ACH Decline object.
1263+
1264+
This field will be present in the JSON response if and only if `category` is
1265+
equal to `ach_decline`.
1266+
"""
1267+
1268+
card_decline: Optional[SourceCardDecline] = None
1269+
"""A Card Decline object.
1270+
1271+
This field will be present in the JSON response if and only if `category` is
1272+
equal to `card_decline`.
1273+
"""
1274+
12751275
check_decline: Optional[SourceCheckDecline] = None
12761276
"""A Check Decline object.
12771277

src/increase/types/fednow_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class CreatedByUser(BaseModel):
5151
class CreatedBy(BaseModel):
5252
"""What object created the transfer, either via the API or the dashboard."""
5353

54-
api_key: Optional[CreatedByAPIKey] = None
55-
"""If present, details about the API key that created the transfer."""
56-
5754
category: Literal["api_key", "oauth_application", "user"]
5855
"""The type of object that created this transfer.
5956
@@ -64,6 +61,9 @@ class CreatedBy(BaseModel):
6461
object.
6562
"""
6663

64+
api_key: Optional[CreatedByAPIKey] = None
65+
"""If present, details about the API key that created the transfer."""
66+
6767
oauth_application: Optional[CreatedByOAuthApplication] = None
6868
"""If present, details about the OAuth Application that created the transfer."""
6969

0 commit comments

Comments
 (0)