Skip to content

Commit e11b75b

Browse files
feat(api): api update
1 parent b695707 commit e11b75b

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-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: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5ad75c7a80acd1cb3ff0483fa0b5b2eb9d73287f107f53a8fb3a3a0b6a32ed8.yml
3-
openapi_spec_hash: da73faf476df3eddcf0ac51c38dd1b17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-81da26cfd6540bc5195c268095b26df132373e932997f224d19247a36e1a1183.yml
3+
openapi_spec_hash: 7b9bbc35378f2fc47629810923bd0017
44
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

cardpushtransfer.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ type CardPushTransfer struct {
162162
PresentmentAmount CardPushTransferPresentmentAmount `json:"presentment_amount" api:"required"`
163163
// The name of the funds recipient.
164164
RecipientName string `json:"recipient_name" api:"required"`
165+
// The card network route used for the transfer.
166+
Route CardPushTransferRoute `json:"route" api:"required"`
165167
// The city of the sender.
166168
SenderAddressCity string `json:"sender_address_city" api:"required"`
167169
// The address line 1 of the sender.
@@ -208,6 +210,7 @@ type cardPushTransferJSON struct {
208210
MerchantState apijson.Field
209211
PresentmentAmount apijson.Field
210212
RecipientName apijson.Field
213+
Route apijson.Field
211214
SenderAddressCity apijson.Field
212215
SenderAddressLine1 apijson.Field
213216
SenderAddressPostalCode apijson.Field
@@ -778,6 +781,22 @@ func (r CardPushTransferPresentmentAmountCurrency) IsKnown() bool {
778781
return false
779782
}
780783

784+
// The card network route used for the transfer.
785+
type CardPushTransferRoute string
786+
787+
const (
788+
CardPushTransferRouteVisa CardPushTransferRoute = "visa"
789+
CardPushTransferRouteMastercard CardPushTransferRoute = "mastercard"
790+
)
791+
792+
func (r CardPushTransferRoute) IsKnown() bool {
793+
switch r {
794+
case CardPushTransferRouteVisa, CardPushTransferRouteMastercard:
795+
return true
796+
}
797+
return false
798+
}
799+
781800
// The lifecycle status of the transfer.
782801
type CardPushTransferStatus string
783802

cardvalidation.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ type CardValidation struct {
127127
MerchantPostalCode string `json:"merchant_postal_code" api:"required"`
128128
// The U.S. state where the merchant (typically your business) is located.
129129
MerchantState string `json:"merchant_state" api:"required"`
130+
// The card network route used for the validation.
131+
Route CardValidationRoute `json:"route" api:"required"`
130132
// The lifecycle status of the validation.
131133
Status CardValidationStatus `json:"status" api:"required"`
132134
// After the validation is submitted to the card network, this will contain
@@ -159,6 +161,7 @@ type cardValidationJSON struct {
159161
MerchantName apijson.Field
160162
MerchantPostalCode apijson.Field
161163
MerchantState apijson.Field
164+
Route apijson.Field
162165
Status apijson.Field
163166
Submission apijson.Field
164167
Type apijson.Field
@@ -547,6 +550,22 @@ func (r CardValidationDeclineReason) IsKnown() bool {
547550
return false
548551
}
549552

553+
// The card network route used for the validation.
554+
type CardValidationRoute string
555+
556+
const (
557+
CardValidationRouteVisa CardValidationRoute = "visa"
558+
CardValidationRouteMastercard CardValidationRoute = "mastercard"
559+
)
560+
561+
func (r CardValidationRoute) IsKnown() bool {
562+
switch r {
563+
case CardValidationRouteVisa, CardValidationRouteMastercard:
564+
return true
565+
}
566+
return false
567+
}
568+
550569
// The lifecycle status of the validation.
551570
type CardValidationStatus string
552571

0 commit comments

Comments
 (0)