Skip to content

Commit

Permalink
feat(api): api update (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 31, 2025
1 parent 77eb197 commit a7d26b0
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b83233a82025949d61c863da86f7d5cb639e8868924719a83bda389714fbf568.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8682653c46661e7abcd90fefb10194ac68a8caf701a5fbf7ae887fa50c12b0a6.yml
66 changes: 50 additions & 16 deletions src/resources/card-payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,24 @@ export namespace CardPayment {
export interface Element {
/**
* A Card Authentication object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authentication`.
* and only if `category` is equal to `card_authentication`. Card Authentications
* are attempts to authenticate a transaction or a card with 3DS.
*/
card_authentication: Element.CardAuthentication | null;

/**
* A Card Authorization object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authorization`.
* and only if `category` is equal to `card_authorization`. Card Authorizations are
* temporary holds placed on a customers funds with the intent to later clear a
* transaction.
*/
card_authorization: Element.CardAuthorization | null;

/**
* A Card Authorization Expiration object. This field will be present in the JSON
* response if and only if `category` is equal to `card_authorization_expiration`.
* Card Authorization Expirations are cancellations of authorizations that were
* never settled by the acquirer.
*/
card_authorization_expiration: Element.CardAuthorizationExpiration | null;

Expand All @@ -115,37 +120,49 @@ export namespace CardPayment {

/**
* A Card Fuel Confirmation object. This field will be present in the JSON response
* if and only if `category` is equal to `card_fuel_confirmation`.
* if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel
* Confirmations update the amount of a Card Authorization after a fuel pump
* transaction is completed.
*/
card_fuel_confirmation: Element.CardFuelConfirmation | null;

/**
* A Card Increment object. This field will be present in the JSON response if and
* only if `category` is equal to `card_increment`.
* only if `category` is equal to `card_increment`. Card Increments increase the
* pending amount of an authorized transaction.
*/
card_increment: Element.CardIncrement | null;

/**
* A Card Refund object. This field will be present in the JSON response if and
* only if `category` is equal to `card_refund`.
* only if `category` is equal to `card_refund`. Card Refunds move money back to
* the cardholder. While they are usually connected to a Card Settlement an
* acquirer can also refund money directly to a card without relation to a
* transaction.
*/
card_refund: Element.CardRefund | null;

/**
* A Card Reversal object. This field will be present in the JSON response if and
* only if `category` is equal to `card_reversal`.
* only if `category` is equal to `card_reversal`. Card Reversals cancel parts of
* or the entirety of an existing Card Authorization.
*/
card_reversal: Element.CardReversal | null;

/**
* A Card Settlement object. This field will be present in the JSON response if and
* only if `category` is equal to `card_settlement`.
* only if `category` is equal to `card_settlement`. Card Settlements are card
* transactions that have cleared and settled. While a settlement is usually
* preceded by an authorization, an acquirer can also directly clear a transaction
* without first authorizing it.
*/
card_settlement: Element.CardSettlement | null;

/**
* A Card Validation object. This field will be present in the JSON response if and
* only if `category` is equal to `card_validation`.
* only if `category` is equal to `card_validation`. Card Validations are requests
* from a merchant to verify that a card number and optionally its address and/or
* Card Verification Value are valid.
*/
card_validation: Element.CardValidation | null;

Expand Down Expand Up @@ -203,7 +220,8 @@ export namespace CardPayment {
export namespace Element {
/**
* A Card Authentication object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authentication`.
* and only if `category` is equal to `card_authentication`. Card Authentications
* are attempts to authenticate a transaction or a card with 3DS.
*/
export interface CardAuthentication {
/**
Expand Down Expand Up @@ -402,7 +420,9 @@ export namespace CardPayment {

/**
* A Card Authorization object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authorization`.
* and only if `category` is equal to `card_authorization`. Card Authorizations are
* temporary holds placed on a customers funds with the intent to later clear a
* transaction.
*/
export interface CardAuthorization {
/**
Expand Down Expand Up @@ -838,6 +858,8 @@ export namespace CardPayment {
/**
* A Card Authorization Expiration object. This field will be present in the JSON
* response if and only if `category` is equal to `card_authorization_expiration`.
* Card Authorization Expirations are cancellations of authorizations that were
* never settled by the acquirer.
*/
export interface CardAuthorizationExpiration {
/**
Expand Down Expand Up @@ -1377,7 +1399,9 @@ export namespace CardPayment {

/**
* A Card Fuel Confirmation object. This field will be present in the JSON response
* if and only if `category` is equal to `card_fuel_confirmation`.
* if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel
* Confirmations update the amount of a Card Authorization after a fuel pump
* transaction is completed.
*/
export interface CardFuelConfirmation {
/**
Expand Down Expand Up @@ -1462,7 +1486,8 @@ export namespace CardPayment {

/**
* A Card Increment object. This field will be present in the JSON response if and
* only if `category` is equal to `card_increment`.
* only if `category` is equal to `card_increment`. Card Increments increase the
* pending amount of an authorized transaction.
*/
export interface CardIncrement {
/**
Expand Down Expand Up @@ -1575,7 +1600,10 @@ export namespace CardPayment {

/**
* A Card Refund object. This field will be present in the JSON response if and
* only if `category` is equal to `card_refund`.
* only if `category` is equal to `card_refund`. Card Refunds move money back to
* the cardholder. While they are usually connected to a Card Settlement an
* acquirer can also refund money directly to a card without relation to a
* transaction.
*/
export interface CardRefund {
/**
Expand Down Expand Up @@ -2296,7 +2324,8 @@ export namespace CardPayment {

/**
* A Card Reversal object. This field will be present in the JSON response if and
* only if `category` is equal to `card_reversal`.
* only if `category` is equal to `card_reversal`. Card Reversals cancel parts of
* or the entirety of an existing Card Authorization.
*/
export interface CardReversal {
/**
Expand Down Expand Up @@ -2448,7 +2477,10 @@ export namespace CardPayment {

/**
* A Card Settlement object. This field will be present in the JSON response if and
* only if `category` is equal to `card_settlement`.
* only if `category` is equal to `card_settlement`. Card Settlements are card
* transactions that have cleared and settled. While a settlement is usually
* preceded by an authorization, an acquirer can also directly clear a transaction
* without first authorizing it.
*/
export interface CardSettlement {
/**
Expand Down Expand Up @@ -3180,7 +3212,9 @@ export namespace CardPayment {

/**
* A Card Validation object. This field will be present in the JSON response if and
* only if `category` is equal to `card_validation`.
* only if `category` is equal to `card_validation`. Card Validations are requests
* from a merchant to verify that a card number and optionally its address and/or
* Card Verification Value are valid.
*/
export interface CardValidation {
/**
Expand Down
20 changes: 16 additions & 4 deletions src/resources/pending-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export namespace PendingTransaction {

/**
* A Card Authorization object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authorization`.
* and only if `category` is equal to `card_authorization`. Card Authorizations are
* temporary holds placed on a customers funds with the intent to later clear a
* transaction.
*/
card_authorization: Source.CardAuthorization | null;

Expand Down Expand Up @@ -205,13 +207,17 @@ export namespace PendingTransaction {

/**
* An Inbound Funds Hold object. This field will be present in the JSON response if
* and only if `category` is equal to `inbound_funds_hold`.
* and only if `category` is equal to `inbound_funds_hold`. We hold funds for
* certain transaction types to account for return windows where funds might still
* be clawed back by the sending institution.
*/
inbound_funds_hold: Source.InboundFundsHold | null;

/**
* An Inbound Wire Transfer Reversal object. This field will be present in the JSON
* response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
* An Inbound Wire Transfer Reversal is created when Increase has received a wire
* and the User requests that it be reversed.
*/
inbound_wire_transfer_reversal: Source.InboundWireTransferReversal | null;

Expand Down Expand Up @@ -284,7 +290,9 @@ export namespace PendingTransaction {

/**
* A Card Authorization object. This field will be present in the JSON response if
* and only if `category` is equal to `card_authorization`.
* and only if `category` is equal to `card_authorization`. Card Authorizations are
* temporary holds placed on a customers funds with the intent to later clear a
* transaction.
*/
export interface CardAuthorization {
/**
Expand Down Expand Up @@ -789,7 +797,9 @@ export namespace PendingTransaction {

/**
* An Inbound Funds Hold object. This field will be present in the JSON response if
* and only if `category` is equal to `inbound_funds_hold`.
* and only if `category` is equal to `inbound_funds_hold`. We hold funds for
* certain transaction types to account for return windows where funds might still
* be clawed back by the sending institution.
*/
export interface InboundFundsHold {
/**
Expand Down Expand Up @@ -861,6 +871,8 @@ export namespace PendingTransaction {
/**
* An Inbound Wire Transfer Reversal object. This field will be present in the JSON
* response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
* An Inbound Wire Transfer Reversal is created when Increase has received a wire
* and the User requests that it be reversed.
*/
export interface InboundWireTransferReversal {
/**
Expand Down
Loading

0 comments on commit a7d26b0

Please sign in to comment.