From ef65e7e040bba725360a271ddb61222b8fdd9276 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 22:27:23 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/card_push_transfer.rb | 571 +++++++- .../card_push_transfer_create_params.rb | 541 ++++++- lib/increase/models/transaction.rb | 8 +- lib/increase/resources/card_push_transfers.rb | 6 +- rbi/increase/models/card_push_transfer.rbi | 1272 ++++++++++++++++- .../card_push_transfer_create_params.rbi | 1234 +++++++++++++++- rbi/increase/models/transaction.rbi | 12 +- .../resources/card_push_transfers.rbi | 9 +- sig/increase/models/card_push_transfer.rbs | 707 ++++++++- .../card_push_transfer_create_params.rbs | 680 ++++++++- sig/increase/models/transaction.rbs | 11 +- .../resources/card_push_transfers.rbs | 2 +- .../resources/card_push_transfers_test.rb | 17 +- 14 files changed, 4921 insertions(+), 153 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9a6f8ba02..973bfab07 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 229 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7a6340375b0e06648ff3e7e4b8aa1527b71df0c7a3d793738ba6fe20eef6f624.yml -openapi_spec_hash: 3cb2076c8a4870d3b17d02780a295172 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fadbd087449a336a91be2645c64e2fe1e81e0f52d9810ab5f830af7e1c727138.yml +openapi_spec_hash: 7e44d91e713fb44925a3565b882248d7 config_hash: ca1425272e17fa23d4466d33492334fa diff --git a/lib/increase/models/card_push_transfer.rb b/lib/increase/models/card_push_transfer.rb index 370448486..261c1804c 100644 --- a/lib/increase/models/card_push_transfer.rb +++ b/lib/increase/models/card_push_transfer.rb @@ -23,12 +23,6 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # @return [String] required :account_id, String - # @!attribute amount - # The transfer amount in USD cents. - # - # @return [Integer] - required :amount, Integer - # @!attribute approval # If your account requires approvals for transfers and the transfer was approved, # this will contain details of the approval. @@ -65,13 +59,6 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # @return [Increase::Models::CardPushTransfer::CreatedBy, nil] required :created_by, -> { Increase::CardPushTransfer::CreatedBy }, nil?: true - # @!attribute currency - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - # currency. - # - # @return [Symbol, Increase::Models::CardPushTransfer::Currency] - required :currency, enum: -> { Increase::CardPushTransfer::Currency } - # @!attribute decline # If the transfer is rejected by the card network or the destination financial # institution, this will contain supplemental details. @@ -129,6 +116,14 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # @return [String] required :merchant_state, String + # @!attribute presentment_amount + # The amount that was transferred. The receiving bank will have converted this to + # the cardholder's currency. The amount that is applied to your Increase account + # matches the currency of your account. + # + # @return [Increase::Models::CardPushTransfer::PresentmentAmount] + required :presentment_amount, -> { Increase::CardPushTransfer::PresentmentAmount } + # @!attribute recipient_name # The name of the funds recipient. # @@ -191,7 +186,7 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardPushTransfer::Type] required :type, enum: -> { Increase::CardPushTransfer::Type } - # @!method initialize(id:, acceptance:, account_id:, amount:, approval:, business_application_identifier:, cancellation:, created_at:, created_by:, currency:, decline:, idempotency_key:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, status:, submission:, type:) + # @!method initialize(id:, acceptance:, account_id:, approval:, business_application_identifier:, cancellation:, created_at:, created_by:, decline:, idempotency_key:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, status:, submission:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPushTransfer} for more details. # @@ -203,8 +198,6 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # # @param account_id [String] The Account from which the transfer was sent. # - # @param amount [Integer] The transfer amount in USD cents. - # # @param approval [Increase::Models::CardPushTransfer::Approval, nil] If your account requires approvals for transfers and the transfer was approved, # # @param business_application_identifier [Symbol, Increase::Models::CardPushTransfer::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf @@ -215,8 +208,6 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # # @param created_by [Increase::Models::CardPushTransfer::CreatedBy, nil] What object created the transfer, either via the API or the dashboard. # - # @param currency [Symbol, Increase::Models::CardPushTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's c - # # @param decline [Increase::Models::CardPushTransfer::Decline, nil] If the transfer is rejected by the card network or the destination financial ins # # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre @@ -233,6 +224,8 @@ class CardPushTransfer < Increase::Internal::Type::BaseModel # # @param merchant_state [String] The state of the merchant (generally your business) sending the transfer. # + # @param presentment_amount [Increase::Models::CardPushTransfer::PresentmentAmount] The amount that was transferred. The receiving bank will have converted this to + # # @param recipient_name [String] The name of the funds recipient. # # @param sender_address_city [String] The city of the sender. @@ -282,7 +275,13 @@ class Acceptance < Increase::Internal::Type::BaseModel # @return [String, nil] required :network_transaction_identifier, String, nil?: true - # @!method initialize(accepted_at:, authorization_identification_response:, card_verification_value2_result:, network_transaction_identifier:) + # @!attribute settlement_amount + # The transfer amount in USD cents. + # + # @return [Integer] + required :settlement_amount, Integer + + # @!method initialize(accepted_at:, authorization_identification_response:, card_verification_value2_result:, network_transaction_identifier:, settlement_amount:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPushTransfer::Acceptance} for more details. # @@ -296,6 +295,8 @@ class Acceptance < Increase::Internal::Type::BaseModel # @param card_verification_value2_result [Symbol, Increase::Models::CardPushTransfer::Acceptance::CardVerificationValue2Result, nil] The result of the Card Verification Value 2 match. # # @param network_transaction_identifier [String, nil] A unique identifier for the transaction on the card network. + # + # @param settlement_amount [Integer] The transfer amount in USD cents. # The result of the Card Verification Value 2 match. # @@ -527,20 +528,6 @@ class User < Increase::Internal::Type::BaseModel end end - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - # currency. - # - # @see Increase::Models::CardPushTransfer#currency - module Currency - extend Increase::Internal::Type::Enum - - # US Dollar (USD) - USD = :USD - - # @!method self.values - # @return [Array] - end - # @see Increase::Models::CardPushTransfer#decline class Decline < Increase::Internal::Type::BaseModel # @!attribute declined_at @@ -713,6 +700,524 @@ module Reason end end + # @see Increase::Models::CardPushTransfer#presentment_amount + class PresentmentAmount < Increase::Internal::Type::BaseModel + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + # + # @return [Symbol, Increase::Models::CardPushTransfer::PresentmentAmount::Currency] + required :currency, enum: -> { Increase::CardPushTransfer::PresentmentAmount::Currency } + + # @!attribute value + # The amount value represented as a string containing a decimal number in major + # units (so e.g., "12.34" for $12.34). + # + # @return [String] + required :value, String + + # @!method initialize(currency:, value:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPushTransfer::PresentmentAmount} for more details. + # + # The amount that was transferred. The receiving bank will have converted this to + # the cardholder's currency. The amount that is applied to your Increase account + # matches the currency of your account. + # + # @param currency [Symbol, Increase::Models::CardPushTransfer::PresentmentAmount::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + # + # @param value [String] The amount value represented as a string containing a decimal number in major un + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + # + # @see Increase::Models::CardPushTransfer::PresentmentAmount#currency + module Currency + extend Increase::Internal::Type::Enum + + # AFN + AFN = :AFN + + # EUR + EUR = :EUR + + # ALL + ALL = :ALL + + # DZD + DZD = :DZD + + # USD + USD = :USD + + # AOA + AOA = :AOA + + # ARS + ARS = :ARS + + # AMD + AMD = :AMD + + # AWG + AWG = :AWG + + # AUD + AUD = :AUD + + # AZN + AZN = :AZN + + # BSD + BSD = :BSD + + # BHD + BHD = :BHD + + # BDT + BDT = :BDT + + # BBD + BBD = :BBD + + # BYN + BYN = :BYN + + # BZD + BZD = :BZD + + # BMD + BMD = :BMD + + # INR + INR = :INR + + # BTN + BTN = :BTN + + # BOB + BOB = :BOB + + # BOV + BOV = :BOV + + # BAM + BAM = :BAM + + # BWP + BWP = :BWP + + # NOK + NOK = :NOK + + # BRL + BRL = :BRL + + # BND + BND = :BND + + # BGN + BGN = :BGN + + # BIF + BIF = :BIF + + # CVE + CVE = :CVE + + # KHR + KHR = :KHR + + # CAD + CAD = :CAD + + # KYD + KYD = :KYD + + # CLP + CLP = :CLP + + # CLF + CLF = :CLF + + # CNY + CNY = :CNY + + # COP + COP = :COP + + # COU + COU = :COU + + # KMF + KMF = :KMF + + # CDF + CDF = :CDF + + # NZD + NZD = :NZD + + # CRC + CRC = :CRC + + # CUP + CUP = :CUP + + # CZK + CZK = :CZK + + # DKK + DKK = :DKK + + # DJF + DJF = :DJF + + # DOP + DOP = :DOP + + # EGP + EGP = :EGP + + # SVC + SVC = :SVC + + # ERN + ERN = :ERN + + # SZL + SZL = :SZL + + # ETB + ETB = :ETB + + # FKP + FKP = :FKP + + # FJD + FJD = :FJD + + # GMD + GMD = :GMD + + # GEL + GEL = :GEL + + # GHS + GHS = :GHS + + # GIP + GIP = :GIP + + # GTQ + GTQ = :GTQ + + # GBP + GBP = :GBP + + # GNF + GNF = :GNF + + # GYD + GYD = :GYD + + # HTG + HTG = :HTG + + # HNL + HNL = :HNL + + # HKD + HKD = :HKD + + # HUF + HUF = :HUF + + # ISK + ISK = :ISK + + # IDR + IDR = :IDR + + # IRR + IRR = :IRR + + # IQD + IQD = :IQD + + # ILS + ILS = :ILS + + # JMD + JMD = :JMD + + # JPY + JPY = :JPY + + # JOD + JOD = :JOD + + # KZT + KZT = :KZT + + # KES + KES = :KES + + # KPW + KPW = :KPW + + # KRW + KRW = :KRW + + # KWD + KWD = :KWD + + # KGS + KGS = :KGS + + # LAK + LAK = :LAK + + # LBP + LBP = :LBP + + # LSL + LSL = :LSL + + # ZAR + ZAR = :ZAR + + # LRD + LRD = :LRD + + # LYD + LYD = :LYD + + # CHF + CHF = :CHF + + # MOP + MOP = :MOP + + # MKD + MKD = :MKD + + # MGA + MGA = :MGA + + # MWK + MWK = :MWK + + # MYR + MYR = :MYR + + # MVR + MVR = :MVR + + # MRU + MRU = :MRU + + # MUR + MUR = :MUR + + # MXN + MXN = :MXN + + # MXV + MXV = :MXV + + # MDL + MDL = :MDL + + # MNT + MNT = :MNT + + # MAD + MAD = :MAD + + # MZN + MZN = :MZN + + # MMK + MMK = :MMK + + # NAD + NAD = :NAD + + # NPR + NPR = :NPR + + # NIO + NIO = :NIO + + # NGN + NGN = :NGN + + # OMR + OMR = :OMR + + # PKR + PKR = :PKR + + # PAB + PAB = :PAB + + # PGK + PGK = :PGK + + # PYG + PYG = :PYG + + # PEN + PEN = :PEN + + # PHP + PHP = :PHP + + # PLN + PLN = :PLN + + # QAR + QAR = :QAR + + # RON + RON = :RON + + # RUB + RUB = :RUB + + # RWF + RWF = :RWF + + # SHP + SHP = :SHP + + # WST + WST = :WST + + # STN + STN = :STN + + # SAR + SAR = :SAR + + # RSD + RSD = :RSD + + # SCR + SCR = :SCR + + # SLE + SLE = :SLE + + # SGD + SGD = :SGD + + # SBD + SBD = :SBD + + # SOS + SOS = :SOS + + # SSP + SSP = :SSP + + # LKR + LKR = :LKR + + # SDG + SDG = :SDG + + # SRD + SRD = :SRD + + # SEK + SEK = :SEK + + # CHE + CHE = :CHE + + # CHW + CHW = :CHW + + # SYP + SYP = :SYP + + # TWD + TWD = :TWD + + # TJS + TJS = :TJS + + # TZS + TZS = :TZS + + # THB + THB = :THB + + # TOP + TOP = :TOP + + # TTD + TTD = :TTD + + # TND + TND = :TND + + # TRY + TRY = :TRY + + # TMT + TMT = :TMT + + # UGX + UGX = :UGX + + # UAH + UAH = :UAH + + # AED + AED = :AED + + # USN + USN = :USN + + # UYU + UYU = :UYU + + # UYI + UYI = :UYI + + # UYW + UYW = :UYW + + # UZS + UZS = :UZS + + # VUV + VUV = :VUV + + # VES + VES = :VES + + # VED + VED = :VED + + # VND + VND = :VND + + # YER + YER = :YER + + # ZMW + ZMW = :ZMW + + # ZWG + ZWG = :ZWG + + # @!method self.values + # @return [Array] + end + end + # The lifecycle status of the transfer. # # @see Increase::Models::CardPushTransfer#status diff --git a/lib/increase/models/card_push_transfer_create_params.rb b/lib/increase/models/card_push_transfer_create_params.rb index c38f06826..85d854d03 100644 --- a/lib/increase/models/card_push_transfer_create_params.rb +++ b/lib/increase/models/card_push_transfer_create_params.rb @@ -7,12 +7,6 @@ class CardPushTransferCreateParams < Increase::Internal::Type::BaseModel extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - # @!attribute amount - # The transfer amount in USD cents. For Card Push transfers, must be positive. - # - # @return [Integer] - required :amount, Integer - # @!attribute business_application_identifier # The Business Application Identifier describes the type of transaction being # performed. Your program must be approved for the specified Business Application @@ -71,6 +65,14 @@ class CardPushTransferCreateParams < Increase::Internal::Type::BaseModel # @return [String] required :merchant_state, String + # @!attribute presentment_amount + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + # + # @return [Increase::Models::CardPushTransferCreateParams::PresentmentAmount] + required :presentment_amount, -> { Increase::CardPushTransferCreateParams::PresentmentAmount } + # @!attribute recipient_name # The name of the funds recipient. # @@ -119,12 +121,10 @@ class CardPushTransferCreateParams < Increase::Internal::Type::BaseModel # @return [Boolean, nil] optional :require_approval, Increase::Internal::Type::Boolean - # @!method initialize(amount:, business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {}) + # @!method initialize(business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::CardPushTransferCreateParams} for more details. # - # @param amount [Integer] The transfer amount in USD cents. For Card Push transfers, must be positive. - # # @param business_application_identifier [Symbol, Increase::Models::CardPushTransferCreateParams::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf # # @param card_token_id [String] The Increase identifier for the Card Token that represents the card number you'r @@ -141,6 +141,8 @@ class CardPushTransferCreateParams < Increase::Internal::Type::BaseModel # # @param merchant_state [String] The state of the merchant (generally your business) sending the transfer. # + # @param presentment_amount [Increase::Models::CardPushTransferCreateParams::PresentmentAmount] The amount to transfer. The receiving bank will convert this to the cardholder's + # # @param recipient_name [String] The name of the funds recipient. # # @param sender_address_city [String] The city of the sender. @@ -210,6 +212,527 @@ module BusinessApplicationIdentifier # @!method self.values # @return [Array] end + + class PresentmentAmount < Increase::Internal::Type::BaseModel + # @!attribute currency + # The ISO 4217 currency code representing the currency of the amount. + # + # @return [Symbol, Increase::Models::CardPushTransferCreateParams::PresentmentAmount::Currency] + required :currency, enum: -> { Increase::CardPushTransferCreateParams::PresentmentAmount::Currency } + + # @!attribute value + # The amount value as a decimal string in the currency's major unit. For example, + # for USD, '1234.56' represents 1234 dollars and 56 cents. For JPY, '1234' + # represents 1234 yen. A currency with minor units requires at least one decimal + # place and supports up to the number of decimal places defined by the currency's + # minor units. A currency without minor units does not support any decimal places. + # + # @return [String] + required :value, String + + # @!method initialize(currency:, value:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPushTransferCreateParams::PresentmentAmount} for more + # details. + # + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + # + # @param currency [Symbol, Increase::Models::CardPushTransferCreateParams::PresentmentAmount::Currency] The ISO 4217 currency code representing the currency of the amount. + # + # @param value [String] The amount value as a decimal string in the currency's major unit. For example, + + # The ISO 4217 currency code representing the currency of the amount. + # + # @see Increase::Models::CardPushTransferCreateParams::PresentmentAmount#currency + module Currency + extend Increase::Internal::Type::Enum + + # AFN + AFN = :AFN + + # EUR + EUR = :EUR + + # ALL + ALL = :ALL + + # DZD + DZD = :DZD + + # USD + USD = :USD + + # AOA + AOA = :AOA + + # ARS + ARS = :ARS + + # AMD + AMD = :AMD + + # AWG + AWG = :AWG + + # AUD + AUD = :AUD + + # AZN + AZN = :AZN + + # BSD + BSD = :BSD + + # BHD + BHD = :BHD + + # BDT + BDT = :BDT + + # BBD + BBD = :BBD + + # BYN + BYN = :BYN + + # BZD + BZD = :BZD + + # BMD + BMD = :BMD + + # INR + INR = :INR + + # BTN + BTN = :BTN + + # BOB + BOB = :BOB + + # BOV + BOV = :BOV + + # BAM + BAM = :BAM + + # BWP + BWP = :BWP + + # NOK + NOK = :NOK + + # BRL + BRL = :BRL + + # BND + BND = :BND + + # BGN + BGN = :BGN + + # BIF + BIF = :BIF + + # CVE + CVE = :CVE + + # KHR + KHR = :KHR + + # CAD + CAD = :CAD + + # KYD + KYD = :KYD + + # CLP + CLP = :CLP + + # CLF + CLF = :CLF + + # CNY + CNY = :CNY + + # COP + COP = :COP + + # COU + COU = :COU + + # KMF + KMF = :KMF + + # CDF + CDF = :CDF + + # NZD + NZD = :NZD + + # CRC + CRC = :CRC + + # CUP + CUP = :CUP + + # CZK + CZK = :CZK + + # DKK + DKK = :DKK + + # DJF + DJF = :DJF + + # DOP + DOP = :DOP + + # EGP + EGP = :EGP + + # SVC + SVC = :SVC + + # ERN + ERN = :ERN + + # SZL + SZL = :SZL + + # ETB + ETB = :ETB + + # FKP + FKP = :FKP + + # FJD + FJD = :FJD + + # GMD + GMD = :GMD + + # GEL + GEL = :GEL + + # GHS + GHS = :GHS + + # GIP + GIP = :GIP + + # GTQ + GTQ = :GTQ + + # GBP + GBP = :GBP + + # GNF + GNF = :GNF + + # GYD + GYD = :GYD + + # HTG + HTG = :HTG + + # HNL + HNL = :HNL + + # HKD + HKD = :HKD + + # HUF + HUF = :HUF + + # ISK + ISK = :ISK + + # IDR + IDR = :IDR + + # IRR + IRR = :IRR + + # IQD + IQD = :IQD + + # ILS + ILS = :ILS + + # JMD + JMD = :JMD + + # JPY + JPY = :JPY + + # JOD + JOD = :JOD + + # KZT + KZT = :KZT + + # KES + KES = :KES + + # KPW + KPW = :KPW + + # KRW + KRW = :KRW + + # KWD + KWD = :KWD + + # KGS + KGS = :KGS + + # LAK + LAK = :LAK + + # LBP + LBP = :LBP + + # LSL + LSL = :LSL + + # ZAR + ZAR = :ZAR + + # LRD + LRD = :LRD + + # LYD + LYD = :LYD + + # CHF + CHF = :CHF + + # MOP + MOP = :MOP + + # MKD + MKD = :MKD + + # MGA + MGA = :MGA + + # MWK + MWK = :MWK + + # MYR + MYR = :MYR + + # MVR + MVR = :MVR + + # MRU + MRU = :MRU + + # MUR + MUR = :MUR + + # MXN + MXN = :MXN + + # MXV + MXV = :MXV + + # MDL + MDL = :MDL + + # MNT + MNT = :MNT + + # MAD + MAD = :MAD + + # MZN + MZN = :MZN + + # MMK + MMK = :MMK + + # NAD + NAD = :NAD + + # NPR + NPR = :NPR + + # NIO + NIO = :NIO + + # NGN + NGN = :NGN + + # OMR + OMR = :OMR + + # PKR + PKR = :PKR + + # PAB + PAB = :PAB + + # PGK + PGK = :PGK + + # PYG + PYG = :PYG + + # PEN + PEN = :PEN + + # PHP + PHP = :PHP + + # PLN + PLN = :PLN + + # QAR + QAR = :QAR + + # RON + RON = :RON + + # RUB + RUB = :RUB + + # RWF + RWF = :RWF + + # SHP + SHP = :SHP + + # WST + WST = :WST + + # STN + STN = :STN + + # SAR + SAR = :SAR + + # RSD + RSD = :RSD + + # SCR + SCR = :SCR + + # SLE + SLE = :SLE + + # SGD + SGD = :SGD + + # SBD + SBD = :SBD + + # SOS + SOS = :SOS + + # SSP + SSP = :SSP + + # LKR + LKR = :LKR + + # SDG + SDG = :SDG + + # SRD + SRD = :SRD + + # SEK + SEK = :SEK + + # CHE + CHE = :CHE + + # CHW + CHW = :CHW + + # SYP + SYP = :SYP + + # TWD + TWD = :TWD + + # TJS + TJS = :TJS + + # TZS + TZS = :TZS + + # THB + THB = :THB + + # TOP + TOP = :TOP + + # TTD + TTD = :TTD + + # TND + TND = :TND + + # TRY + TRY = :TRY + + # TMT + TMT = :TMT + + # UGX + UGX = :UGX + + # UAH + UAH = :UAH + + # AED + AED = :AED + + # USN + USN = :USN + + # UYU + UYU = :UYU + + # UYI + UYI = :UYI + + # UYW + UYW = :UYW + + # UZS + UZS = :UZS + + # VUV + VUV = :VUV + + # VES + VES = :VES + + # VED + VED = :VED + + # VND + VND = :VND + + # YER + YER = :YER + + # ZMW + ZMW = :ZMW + + # ZWG + ZWG = :ZWG + + # @!method self.values + # @return [Array] + end + end end end end diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index a19c1822c..a2210fa23 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -2421,11 +2421,11 @@ module Result # @see Increase::Models::Transaction::Source#card_push_transfer_acceptance class CardPushTransferAcceptance < Increase::Internal::Type::BaseModel - # @!attribute amount + # @!attribute settlement_amount # The transfer amount in USD cents. # # @return [Integer] - required :amount, Integer + required :settlement_amount, Integer # @!attribute transfer_id # The identifier of the Card Push Transfer that led to this Transaction. @@ -2433,13 +2433,13 @@ class CardPushTransferAcceptance < Increase::Internal::Type::BaseModel # @return [String] required :transfer_id, String - # @!method initialize(amount:, transfer_id:) + # @!method initialize(settlement_amount:, transfer_id:) # A Card Push Transfer Acceptance object. This field will be present in the JSON # response if and only if `category` is equal to `card_push_transfer_acceptance`. # A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer # sent from Increase is accepted by the receiving bank. # - # @param amount [Integer] The transfer amount in USD cents. + # @param settlement_amount [Integer] The transfer amount in USD cents. # # @param transfer_id [String] The identifier of the Card Push Transfer that led to this Transaction. end diff --git a/lib/increase/resources/card_push_transfers.rb b/lib/increase/resources/card_push_transfers.rb index b71157931..45fd50e78 100644 --- a/lib/increase/resources/card_push_transfers.rb +++ b/lib/increase/resources/card_push_transfers.rb @@ -8,9 +8,7 @@ class CardPushTransfers # # Create a Card Push Transfer # - # @overload create(amount:, business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {}) - # - # @param amount [Integer] The transfer amount in USD cents. For Card Push transfers, must be positive. + # @overload create(business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {}) # # @param business_application_identifier [Symbol, Increase::Models::CardPushTransferCreateParams::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf # @@ -28,6 +26,8 @@ class CardPushTransfers # # @param merchant_state [String] The state of the merchant (generally your business) sending the transfer. # + # @param presentment_amount [Increase::Models::CardPushTransferCreateParams::PresentmentAmount] The amount to transfer. The receiving bank will convert this to the cardholder's + # # @param recipient_name [String] The name of the funds recipient. # # @param sender_address_city [String] The city of the sender. diff --git a/rbi/increase/models/card_push_transfer.rbi b/rbi/increase/models/card_push_transfer.rbi index 657a06bbc..47b69a966 100644 --- a/rbi/increase/models/card_push_transfer.rbi +++ b/rbi/increase/models/card_push_transfer.rbi @@ -28,10 +28,6 @@ module Increase sig { returns(String) } attr_accessor :account_id - # The transfer amount in USD cents. - sig { returns(Integer) } - attr_accessor :amount - # If your account requires approvals for transfers and the transfer was approved, # this will contain details of the approval. sig { returns(T.nilable(Increase::CardPushTransfer::Approval)) } @@ -83,11 +79,6 @@ module Increase end attr_writer :created_by - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - # currency. - sig { returns(Increase::CardPushTransfer::Currency::TaggedSymbol) } - attr_accessor :currency - # If the transfer is rejected by the card network or the destination financial # institution, this will contain supplemental details. sig { returns(T.nilable(Increase::CardPushTransfer::Decline)) } @@ -136,6 +127,20 @@ module Increase sig { returns(String) } attr_accessor :merchant_state + # The amount that was transferred. The receiving bank will have converted this to + # the cardholder's currency. The amount that is applied to your Increase account + # matches the currency of your account. + sig { returns(Increase::CardPushTransfer::PresentmentAmount) } + attr_reader :presentment_amount + + sig do + params( + presentment_amount: + Increase::CardPushTransfer::PresentmentAmount::OrHash + ).void + end + attr_writer :presentment_amount + # The name of the funds recipient. sig { returns(String) } attr_accessor :recipient_name @@ -191,7 +196,6 @@ module Increase id: String, acceptance: T.nilable(Increase::CardPushTransfer::Acceptance::OrHash), account_id: String, - amount: Integer, approval: T.nilable(Increase::CardPushTransfer::Approval::OrHash), business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier::OrSymbol, @@ -199,7 +203,6 @@ module Increase T.nilable(Increase::CardPushTransfer::Cancellation::OrHash), created_at: Time, created_by: T.nilable(Increase::CardPushTransfer::CreatedBy::OrHash), - currency: Increase::CardPushTransfer::Currency::OrSymbol, decline: T.nilable(Increase::CardPushTransfer::Decline::OrHash), idempotency_key: T.nilable(String), merchant_category_code: String, @@ -208,6 +211,8 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: + Increase::CardPushTransfer::PresentmentAmount::OrHash, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -228,8 +233,6 @@ module Increase acceptance:, # The Account from which the transfer was sent. account_id:, - # The transfer amount in USD cents. - amount:, # If your account requires approvals for transfers and the transfer was approved, # this will contain details of the approval. approval:, @@ -245,9 +248,6 @@ module Increase created_at:, # What object created the transfer, either via the API or the dashboard. created_by:, - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - # currency. - currency:, # If the transfer is rejected by the card network or the destination financial # institution, this will contain supplemental details. decline:, @@ -273,6 +273,10 @@ module Increase merchant_postal_code:, # The state of the merchant (generally your business) sending the transfer. merchant_state:, + # The amount that was transferred. The receiving bank will have converted this to + # the cardholder's currency. The amount that is applied to your Increase account + # matches the currency of your account. + presentment_amount:, # The name of the funds recipient. recipient_name:, # The city of the sender. @@ -304,14 +308,12 @@ module Increase id: String, acceptance: T.nilable(Increase::CardPushTransfer::Acceptance), account_id: String, - amount: Integer, approval: T.nilable(Increase::CardPushTransfer::Approval), business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier::TaggedSymbol, cancellation: T.nilable(Increase::CardPushTransfer::Cancellation), created_at: Time, created_by: T.nilable(Increase::CardPushTransfer::CreatedBy), - currency: Increase::CardPushTransfer::Currency::TaggedSymbol, decline: T.nilable(Increase::CardPushTransfer::Decline), idempotency_key: T.nilable(String), merchant_category_code: String, @@ -320,6 +322,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -368,6 +371,10 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :network_transaction_identifier + # The transfer amount in USD cents. + sig { returns(Integer) } + attr_accessor :settlement_amount + # If the transfer is accepted by the recipient bank, this will contain # supplemental details. sig do @@ -378,7 +385,8 @@ module Increase T.nilable( Increase::CardPushTransfer::Acceptance::CardVerificationValue2Result::OrSymbol ), - network_transaction_identifier: T.nilable(String) + network_transaction_identifier: T.nilable(String), + settlement_amount: Integer ).returns(T.attached_class) end def self.new( @@ -390,7 +398,9 @@ module Increase # The result of the Card Verification Value 2 match. card_verification_value2_result:, # A unique identifier for the transaction on the card network. - network_transaction_identifier: + network_transaction_identifier:, + # The transfer amount in USD cents. + settlement_amount: ) end @@ -403,7 +413,8 @@ module Increase T.nilable( Increase::CardPushTransfer::Acceptance::CardVerificationValue2Result::TaggedSymbol ), - network_transaction_identifier: T.nilable(String) + network_transaction_identifier: T.nilable(String), + settlement_amount: Integer } ) end @@ -886,27 +897,6 @@ module Increase end end - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - # currency. - module Currency - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Increase::CardPushTransfer::Currency) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # US Dollar (USD) - USD = T.let(:USD, Increase::CardPushTransfer::Currency::TaggedSymbol) - - sig do - override.returns( - T::Array[Increase::CardPushTransfer::Currency::TaggedSymbol] - ) - end - def self.values - end - end - class Decline < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -1279,6 +1269,1204 @@ module Increase end end + class PresentmentAmount < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPushTransfer::PresentmentAmount, + Increase::Internal::AnyHash + ) + end + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + sig do + returns( + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + end + attr_accessor :currency + + # The amount value represented as a string containing a decimal number in major + # units (so e.g., "12.34" for $12.34). + sig { returns(String) } + attr_accessor :value + + # The amount that was transferred. The receiving bank will have converted this to + # the cardholder's currency. The amount that is applied to your Increase account + # matches the currency of your account. + sig do + params( + currency: + Increase::CardPushTransfer::PresentmentAmount::Currency::OrSymbol, + value: String + ).returns(T.attached_class) + end + def self.new( + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + currency:, + # The amount value represented as a string containing a decimal number in major + # units (so e.g., "12.34" for $12.34). + value: + ) + end + + sig do + override.returns( + { + currency: + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol, + value: String + } + ) + end + def to_hash + end + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + module Currency + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardPushTransfer::PresentmentAmount::Currency + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # AFN + AFN = + T.let( + :AFN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # EUR + EUR = + T.let( + :EUR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ALL + ALL = + T.let( + :ALL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # DZD + DZD = + T.let( + :DZD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # USD + USD = + T.let( + :USD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AOA + AOA = + T.let( + :AOA, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ARS + ARS = + T.let( + :ARS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AMD + AMD = + T.let( + :AMD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AWG + AWG = + T.let( + :AWG, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AUD + AUD = + T.let( + :AUD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AZN + AZN = + T.let( + :AZN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BSD + BSD = + T.let( + :BSD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BHD + BHD = + T.let( + :BHD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BDT + BDT = + T.let( + :BDT, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BBD + BBD = + T.let( + :BBD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BYN + BYN = + T.let( + :BYN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BZD + BZD = + T.let( + :BZD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BMD + BMD = + T.let( + :BMD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # INR + INR = + T.let( + :INR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BTN + BTN = + T.let( + :BTN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BOB + BOB = + T.let( + :BOB, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BOV + BOV = + T.let( + :BOV, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BAM + BAM = + T.let( + :BAM, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BWP + BWP = + T.let( + :BWP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NOK + NOK = + T.let( + :NOK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BRL + BRL = + T.let( + :BRL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BND + BND = + T.let( + :BND, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BGN + BGN = + T.let( + :BGN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # BIF + BIF = + T.let( + :BIF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CVE + CVE = + T.let( + :CVE, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KHR + KHR = + T.let( + :KHR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CAD + CAD = + T.let( + :CAD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KYD + KYD = + T.let( + :KYD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CLP + CLP = + T.let( + :CLP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CLF + CLF = + T.let( + :CLF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CNY + CNY = + T.let( + :CNY, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # COP + COP = + T.let( + :COP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # COU + COU = + T.let( + :COU, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KMF + KMF = + T.let( + :KMF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CDF + CDF = + T.let( + :CDF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NZD + NZD = + T.let( + :NZD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CRC + CRC = + T.let( + :CRC, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CUP + CUP = + T.let( + :CUP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CZK + CZK = + T.let( + :CZK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # DKK + DKK = + T.let( + :DKK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # DJF + DJF = + T.let( + :DJF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # DOP + DOP = + T.let( + :DOP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # EGP + EGP = + T.let( + :EGP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SVC + SVC = + T.let( + :SVC, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ERN + ERN = + T.let( + :ERN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SZL + SZL = + T.let( + :SZL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ETB + ETB = + T.let( + :ETB, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # FKP + FKP = + T.let( + :FKP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # FJD + FJD = + T.let( + :FJD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GMD + GMD = + T.let( + :GMD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GEL + GEL = + T.let( + :GEL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GHS + GHS = + T.let( + :GHS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GIP + GIP = + T.let( + :GIP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GTQ + GTQ = + T.let( + :GTQ, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GBP + GBP = + T.let( + :GBP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GNF + GNF = + T.let( + :GNF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # GYD + GYD = + T.let( + :GYD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # HTG + HTG = + T.let( + :HTG, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # HNL + HNL = + T.let( + :HNL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # HKD + HKD = + T.let( + :HKD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # HUF + HUF = + T.let( + :HUF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ISK + ISK = + T.let( + :ISK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # IDR + IDR = + T.let( + :IDR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # IRR + IRR = + T.let( + :IRR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # IQD + IQD = + T.let( + :IQD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ILS + ILS = + T.let( + :ILS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # JMD + JMD = + T.let( + :JMD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # JPY + JPY = + T.let( + :JPY, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # JOD + JOD = + T.let( + :JOD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KZT + KZT = + T.let( + :KZT, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KES + KES = + T.let( + :KES, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KPW + KPW = + T.let( + :KPW, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KRW + KRW = + T.let( + :KRW, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KWD + KWD = + T.let( + :KWD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # KGS + KGS = + T.let( + :KGS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LAK + LAK = + T.let( + :LAK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LBP + LBP = + T.let( + :LBP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LSL + LSL = + T.let( + :LSL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZAR + ZAR = + T.let( + :ZAR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LRD + LRD = + T.let( + :LRD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LYD + LYD = + T.let( + :LYD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHF + CHF = + T.let( + :CHF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MOP + MOP = + T.let( + :MOP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MKD + MKD = + T.let( + :MKD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MGA + MGA = + T.let( + :MGA, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MWK + MWK = + T.let( + :MWK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MYR + MYR = + T.let( + :MYR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MVR + MVR = + T.let( + :MVR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MRU + MRU = + T.let( + :MRU, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MUR + MUR = + T.let( + :MUR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MXN + MXN = + T.let( + :MXN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MXV + MXV = + T.let( + :MXV, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MDL + MDL = + T.let( + :MDL, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MNT + MNT = + T.let( + :MNT, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MAD + MAD = + T.let( + :MAD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MZN + MZN = + T.let( + :MZN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # MMK + MMK = + T.let( + :MMK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NAD + NAD = + T.let( + :NAD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NPR + NPR = + T.let( + :NPR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NIO + NIO = + T.let( + :NIO, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # NGN + NGN = + T.let( + :NGN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # OMR + OMR = + T.let( + :OMR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PKR + PKR = + T.let( + :PKR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PAB + PAB = + T.let( + :PAB, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PGK + PGK = + T.let( + :PGK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PYG + PYG = + T.let( + :PYG, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PEN + PEN = + T.let( + :PEN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PHP + PHP = + T.let( + :PHP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # PLN + PLN = + T.let( + :PLN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # QAR + QAR = + T.let( + :QAR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # RON + RON = + T.let( + :RON, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # RUB + RUB = + T.let( + :RUB, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # RWF + RWF = + T.let( + :RWF, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SHP + SHP = + T.let( + :SHP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # WST + WST = + T.let( + :WST, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # STN + STN = + T.let( + :STN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SAR + SAR = + T.let( + :SAR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # RSD + RSD = + T.let( + :RSD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SCR + SCR = + T.let( + :SCR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SLE + SLE = + T.let( + :SLE, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SGD + SGD = + T.let( + :SGD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SBD + SBD = + T.let( + :SBD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SOS + SOS = + T.let( + :SOS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SSP + SSP = + T.let( + :SSP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # LKR + LKR = + T.let( + :LKR, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SDG + SDG = + T.let( + :SDG, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SRD + SRD = + T.let( + :SRD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SEK + SEK = + T.let( + :SEK, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHE + CHE = + T.let( + :CHE, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHW + CHW = + T.let( + :CHW, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # SYP + SYP = + T.let( + :SYP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TWD + TWD = + T.let( + :TWD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TJS + TJS = + T.let( + :TJS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TZS + TZS = + T.let( + :TZS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # THB + THB = + T.let( + :THB, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TOP + TOP = + T.let( + :TOP, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TTD + TTD = + T.let( + :TTD, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TND + TND = + T.let( + :TND, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TRY + TRY = + T.let( + :TRY, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # TMT + TMT = + T.let( + :TMT, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UGX + UGX = + T.let( + :UGX, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UAH + UAH = + T.let( + :UAH, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # AED + AED = + T.let( + :AED, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # USN + USN = + T.let( + :USN, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYU + UYU = + T.let( + :UYU, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYI + UYI = + T.let( + :UYI, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYW + UYW = + T.let( + :UYW, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # UZS + UZS = + T.let( + :UZS, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # VUV + VUV = + T.let( + :VUV, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # VES + VES = + T.let( + :VES, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # VED + VED = + T.let( + :VED, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # VND + VND = + T.let( + :VND, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # YER + YER = + T.let( + :YER, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZMW + ZMW = + T.let( + :ZMW, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZWG + ZWG = + T.let( + :ZWG, + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol + ] + ) + end + def self.values + end + end + end + # The lifecycle status of the transfer. module Status extend Increase::Internal::Type::Enum diff --git a/rbi/increase/models/card_push_transfer_create_params.rbi b/rbi/increase/models/card_push_transfer_create_params.rbi index 49bc1610e..891b5c161 100644 --- a/rbi/increase/models/card_push_transfer_create_params.rbi +++ b/rbi/increase/models/card_push_transfer_create_params.rbi @@ -14,10 +14,6 @@ module Increase ) end - # The transfer amount in USD cents. For Card Push transfers, must be positive. - sig { returns(Integer) } - attr_accessor :amount - # The Business Application Identifier describes the type of transaction being # performed. Your program must be approved for the specified Business Application # Identifier in order to use it. @@ -63,6 +59,20 @@ module Increase sig { returns(String) } attr_accessor :merchant_state + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + sig { returns(Increase::CardPushTransferCreateParams::PresentmentAmount) } + attr_reader :presentment_amount + + sig do + params( + presentment_amount: + Increase::CardPushTransferCreateParams::PresentmentAmount::OrHash + ).void + end + attr_writer :presentment_amount + # The name of the funds recipient. sig { returns(String) } attr_accessor :recipient_name @@ -100,7 +110,6 @@ module Increase sig do params( - amount: Integer, business_application_identifier: Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol, card_token_id: String, @@ -110,6 +119,8 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: + Increase::CardPushTransferCreateParams::PresentmentAmount::OrHash, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -122,8 +133,6 @@ module Increase ).returns(T.attached_class) end def self.new( - # The transfer amount in USD cents. For Card Push transfers, must be positive. - amount:, # The Business Application Identifier describes the type of transaction being # performed. Your program must be approved for the specified Business Application # Identifier in order to use it. @@ -149,6 +158,10 @@ module Increase merchant_postal_code:, # The state of the merchant (generally your business) sending the transfer. merchant_state:, + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + presentment_amount:, # The name of the funds recipient. recipient_name:, # The city of the sender. @@ -172,7 +185,6 @@ module Increase sig do override.returns( { - amount: Integer, business_application_identifier: Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol, card_token_id: String, @@ -182,6 +194,8 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: + Increase::CardPushTransferCreateParams::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -320,6 +334,1210 @@ module Increase def self.values end end + + class PresentmentAmount < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPushTransferCreateParams::PresentmentAmount, + Increase::Internal::AnyHash + ) + end + + # The ISO 4217 currency code representing the currency of the amount. + sig do + returns( + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::OrSymbol + ) + end + attr_accessor :currency + + # The amount value as a decimal string in the currency's major unit. For example, + # for USD, '1234.56' represents 1234 dollars and 56 cents. For JPY, '1234' + # represents 1234 yen. A currency with minor units requires at least one decimal + # place and supports up to the number of decimal places defined by the currency's + # minor units. A currency without minor units does not support any decimal places. + sig { returns(String) } + attr_accessor :value + + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + sig do + params( + currency: + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::OrSymbol, + value: String + ).returns(T.attached_class) + end + def self.new( + # The ISO 4217 currency code representing the currency of the amount. + currency:, + # The amount value as a decimal string in the currency's major unit. For example, + # for USD, '1234.56' represents 1234 dollars and 56 cents. For JPY, '1234' + # represents 1234 yen. A currency with minor units requires at least one decimal + # place and supports up to the number of decimal places defined by the currency's + # minor units. A currency without minor units does not support any decimal places. + value: + ) + end + + sig do + override.returns( + { + currency: + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::OrSymbol, + value: String + } + ) + end + def to_hash + end + + # The ISO 4217 currency code representing the currency of the amount. + module Currency + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # AFN + AFN = + T.let( + :AFN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # EUR + EUR = + T.let( + :EUR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ALL + ALL = + T.let( + :ALL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # DZD + DZD = + T.let( + :DZD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # USD + USD = + T.let( + :USD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AOA + AOA = + T.let( + :AOA, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ARS + ARS = + T.let( + :ARS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AMD + AMD = + T.let( + :AMD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AWG + AWG = + T.let( + :AWG, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AUD + AUD = + T.let( + :AUD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AZN + AZN = + T.let( + :AZN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BSD + BSD = + T.let( + :BSD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BHD + BHD = + T.let( + :BHD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BDT + BDT = + T.let( + :BDT, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BBD + BBD = + T.let( + :BBD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BYN + BYN = + T.let( + :BYN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BZD + BZD = + T.let( + :BZD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BMD + BMD = + T.let( + :BMD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # INR + INR = + T.let( + :INR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BTN + BTN = + T.let( + :BTN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BOB + BOB = + T.let( + :BOB, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BOV + BOV = + T.let( + :BOV, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BAM + BAM = + T.let( + :BAM, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BWP + BWP = + T.let( + :BWP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NOK + NOK = + T.let( + :NOK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BRL + BRL = + T.let( + :BRL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BND + BND = + T.let( + :BND, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BGN + BGN = + T.let( + :BGN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # BIF + BIF = + T.let( + :BIF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CVE + CVE = + T.let( + :CVE, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KHR + KHR = + T.let( + :KHR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CAD + CAD = + T.let( + :CAD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KYD + KYD = + T.let( + :KYD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CLP + CLP = + T.let( + :CLP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CLF + CLF = + T.let( + :CLF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CNY + CNY = + T.let( + :CNY, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # COP + COP = + T.let( + :COP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # COU + COU = + T.let( + :COU, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KMF + KMF = + T.let( + :KMF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CDF + CDF = + T.let( + :CDF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NZD + NZD = + T.let( + :NZD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CRC + CRC = + T.let( + :CRC, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CUP + CUP = + T.let( + :CUP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CZK + CZK = + T.let( + :CZK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # DKK + DKK = + T.let( + :DKK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # DJF + DJF = + T.let( + :DJF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # DOP + DOP = + T.let( + :DOP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # EGP + EGP = + T.let( + :EGP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SVC + SVC = + T.let( + :SVC, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ERN + ERN = + T.let( + :ERN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SZL + SZL = + T.let( + :SZL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ETB + ETB = + T.let( + :ETB, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # FKP + FKP = + T.let( + :FKP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # FJD + FJD = + T.let( + :FJD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GMD + GMD = + T.let( + :GMD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GEL + GEL = + T.let( + :GEL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GHS + GHS = + T.let( + :GHS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GIP + GIP = + T.let( + :GIP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GTQ + GTQ = + T.let( + :GTQ, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GBP + GBP = + T.let( + :GBP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GNF + GNF = + T.let( + :GNF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # GYD + GYD = + T.let( + :GYD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # HTG + HTG = + T.let( + :HTG, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # HNL + HNL = + T.let( + :HNL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # HKD + HKD = + T.let( + :HKD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # HUF + HUF = + T.let( + :HUF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ISK + ISK = + T.let( + :ISK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # IDR + IDR = + T.let( + :IDR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # IRR + IRR = + T.let( + :IRR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # IQD + IQD = + T.let( + :IQD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ILS + ILS = + T.let( + :ILS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # JMD + JMD = + T.let( + :JMD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # JPY + JPY = + T.let( + :JPY, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # JOD + JOD = + T.let( + :JOD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KZT + KZT = + T.let( + :KZT, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KES + KES = + T.let( + :KES, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KPW + KPW = + T.let( + :KPW, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KRW + KRW = + T.let( + :KRW, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KWD + KWD = + T.let( + :KWD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # KGS + KGS = + T.let( + :KGS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LAK + LAK = + T.let( + :LAK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LBP + LBP = + T.let( + :LBP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LSL + LSL = + T.let( + :LSL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZAR + ZAR = + T.let( + :ZAR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LRD + LRD = + T.let( + :LRD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LYD + LYD = + T.let( + :LYD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHF + CHF = + T.let( + :CHF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MOP + MOP = + T.let( + :MOP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MKD + MKD = + T.let( + :MKD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MGA + MGA = + T.let( + :MGA, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MWK + MWK = + T.let( + :MWK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MYR + MYR = + T.let( + :MYR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MVR + MVR = + T.let( + :MVR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MRU + MRU = + T.let( + :MRU, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MUR + MUR = + T.let( + :MUR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MXN + MXN = + T.let( + :MXN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MXV + MXV = + T.let( + :MXV, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MDL + MDL = + T.let( + :MDL, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MNT + MNT = + T.let( + :MNT, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MAD + MAD = + T.let( + :MAD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MZN + MZN = + T.let( + :MZN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # MMK + MMK = + T.let( + :MMK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NAD + NAD = + T.let( + :NAD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NPR + NPR = + T.let( + :NPR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NIO + NIO = + T.let( + :NIO, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # NGN + NGN = + T.let( + :NGN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # OMR + OMR = + T.let( + :OMR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PKR + PKR = + T.let( + :PKR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PAB + PAB = + T.let( + :PAB, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PGK + PGK = + T.let( + :PGK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PYG + PYG = + T.let( + :PYG, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PEN + PEN = + T.let( + :PEN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PHP + PHP = + T.let( + :PHP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # PLN + PLN = + T.let( + :PLN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # QAR + QAR = + T.let( + :QAR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # RON + RON = + T.let( + :RON, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # RUB + RUB = + T.let( + :RUB, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # RWF + RWF = + T.let( + :RWF, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SHP + SHP = + T.let( + :SHP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # WST + WST = + T.let( + :WST, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # STN + STN = + T.let( + :STN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SAR + SAR = + T.let( + :SAR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # RSD + RSD = + T.let( + :RSD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SCR + SCR = + T.let( + :SCR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SLE + SLE = + T.let( + :SLE, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SGD + SGD = + T.let( + :SGD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SBD + SBD = + T.let( + :SBD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SOS + SOS = + T.let( + :SOS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SSP + SSP = + T.let( + :SSP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # LKR + LKR = + T.let( + :LKR, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SDG + SDG = + T.let( + :SDG, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SRD + SRD = + T.let( + :SRD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SEK + SEK = + T.let( + :SEK, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHE + CHE = + T.let( + :CHE, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # CHW + CHW = + T.let( + :CHW, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # SYP + SYP = + T.let( + :SYP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TWD + TWD = + T.let( + :TWD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TJS + TJS = + T.let( + :TJS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TZS + TZS = + T.let( + :TZS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # THB + THB = + T.let( + :THB, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TOP + TOP = + T.let( + :TOP, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TTD + TTD = + T.let( + :TTD, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TND + TND = + T.let( + :TND, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TRY + TRY = + T.let( + :TRY, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # TMT + TMT = + T.let( + :TMT, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UGX + UGX = + T.let( + :UGX, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UAH + UAH = + T.let( + :UAH, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # AED + AED = + T.let( + :AED, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # USN + USN = + T.let( + :USN, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYU + UYU = + T.let( + :UYU, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYI + UYI = + T.let( + :UYI, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UYW + UYW = + T.let( + :UYW, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # UZS + UZS = + T.let( + :UZS, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # VUV + VUV = + T.let( + :VUV, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # VES + VES = + T.let( + :VES, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # VED + VED = + T.let( + :VED, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # VND + VND = + T.let( + :VND, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # YER + YER = + T.let( + :YER, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZMW + ZMW = + T.let( + :ZMW, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + # ZWG + ZWG = + T.let( + :ZWG, + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol + ] + ) + end + def self.values + end + end + end end end end diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index cb0f6e7cb..f55b11f0b 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -4811,7 +4811,7 @@ module Increase # The transfer amount in USD cents. sig { returns(Integer) } - attr_accessor :amount + attr_accessor :settlement_amount # The identifier of the Card Push Transfer that led to this Transaction. sig { returns(String) } @@ -4822,19 +4822,23 @@ module Increase # A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer # sent from Increase is accepted by the receiving bank. sig do - params(amount: Integer, transfer_id: String).returns( + params(settlement_amount: Integer, transfer_id: String).returns( T.attached_class ) end def self.new( # The transfer amount in USD cents. - amount:, + settlement_amount:, # The identifier of the Card Push Transfer that led to this Transaction. transfer_id: ) end - sig { override.returns({ amount: Integer, transfer_id: String }) } + sig do + override.returns( + { settlement_amount: Integer, transfer_id: String } + ) + end def to_hash end end diff --git a/rbi/increase/resources/card_push_transfers.rbi b/rbi/increase/resources/card_push_transfers.rbi index 64108e7f9..b6db20c0e 100644 --- a/rbi/increase/resources/card_push_transfers.rbi +++ b/rbi/increase/resources/card_push_transfers.rbi @@ -6,7 +6,6 @@ module Increase # Create a Card Push Transfer sig do params( - amount: Integer, business_application_identifier: Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol, card_token_id: String, @@ -16,6 +15,8 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: + Increase::CardPushTransferCreateParams::PresentmentAmount::OrHash, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -28,8 +29,6 @@ module Increase ).returns(Increase::CardPushTransfer) end def create( - # The transfer amount in USD cents. For Card Push transfers, must be positive. - amount:, # The Business Application Identifier describes the type of transaction being # performed. Your program must be approved for the specified Business Application # Identifier in order to use it. @@ -55,6 +54,10 @@ module Increase merchant_postal_code:, # The state of the merchant (generally your business) sending the transfer. merchant_state:, + # The amount to transfer. The receiving bank will convert this to the cardholder's + # currency. The amount that is applied to your Increase account matches the + # currency of your account. + presentment_amount:, # The name of the funds recipient. recipient_name:, # The city of the sender. diff --git a/sig/increase/models/card_push_transfer.rbs b/sig/increase/models/card_push_transfer.rbs index ad2f3ae4c..9e4fb9d5c 100644 --- a/sig/increase/models/card_push_transfer.rbs +++ b/sig/increase/models/card_push_transfer.rbs @@ -5,13 +5,11 @@ module Increase id: String, acceptance: Increase::CardPushTransfer::Acceptance?, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval?, business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier, cancellation: Increase::CardPushTransfer::Cancellation?, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy?, - currency: Increase::Models::CardPushTransfer::currency, decline: Increase::CardPushTransfer::Decline?, idempotency_key: String?, merchant_category_code: String, @@ -20,6 +18,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, :sender_address_line1 => String, @@ -39,8 +38,6 @@ module Increase attr_accessor account_id: String - attr_accessor amount: Integer - attr_accessor approval: Increase::CardPushTransfer::Approval? attr_accessor business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier @@ -51,8 +48,6 @@ module Increase attr_accessor created_by: Increase::CardPushTransfer::CreatedBy? - attr_accessor currency: Increase::Models::CardPushTransfer::currency - attr_accessor decline: Increase::CardPushTransfer::Decline? attr_accessor idempotency_key: String? @@ -69,6 +64,8 @@ module Increase attr_accessor merchant_state: String + attr_accessor presentment_amount: Increase::CardPushTransfer::PresentmentAmount + attr_accessor recipient_name: String attr_accessor sender_address_city: String @@ -93,13 +90,11 @@ module Increase id: String, acceptance: Increase::CardPushTransfer::Acceptance?, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval?, business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier, cancellation: Increase::CardPushTransfer::Cancellation?, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy?, - currency: Increase::Models::CardPushTransfer::currency, decline: Increase::CardPushTransfer::Decline?, idempotency_key: String?, merchant_category_code: String, @@ -108,6 +103,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -124,13 +120,11 @@ module Increase id: String, acceptance: Increase::CardPushTransfer::Acceptance?, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval?, business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier, cancellation: Increase::CardPushTransfer::Cancellation?, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy?, - currency: Increase::Models::CardPushTransfer::currency, decline: Increase::CardPushTransfer::Decline?, idempotency_key: String?, merchant_category_code: String, @@ -139,6 +133,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, :sender_address_line1 => String, @@ -156,7 +151,8 @@ module Increase accepted_at: Time, authorization_identification_response: String, :card_verification_value2_result => Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?, - network_transaction_identifier: String? + network_transaction_identifier: String?, + settlement_amount: Integer } class Acceptance < Increase::Internal::Type::BaseModel @@ -168,18 +164,22 @@ module Increase attr_accessor network_transaction_identifier: String? + attr_accessor settlement_amount: Integer + def initialize: ( accepted_at: Time, authorization_identification_response: String, card_verification_value2_result: Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?, - network_transaction_identifier: String? + network_transaction_identifier: String?, + settlement_amount: Integer ) -> void def to_hash: -> { accepted_at: Time, authorization_identification_response: String, :card_verification_value2_result => Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?, - network_transaction_identifier: String? + network_transaction_identifier: String?, + settlement_amount: Integer } type card_verification_value2_result = :match | :no_match @@ -364,17 +364,6 @@ module Increase end end - type currency = :USD - - module Currency - extend Increase::Internal::Type::Enum - - # US Dollar (USD) - USD: :USD - - def self?.values: -> ::Array[Increase::Models::CardPushTransfer::currency] - end - type decline = { declined_at: Time, @@ -578,6 +567,676 @@ module Increase end end + type presentment_amount = + { + currency: Increase::Models::CardPushTransfer::PresentmentAmount::currency, + value: String + } + + class PresentmentAmount < Increase::Internal::Type::BaseModel + attr_accessor currency: Increase::Models::CardPushTransfer::PresentmentAmount::currency + + attr_accessor value: String + + def initialize: ( + currency: Increase::Models::CardPushTransfer::PresentmentAmount::currency, + value: String + ) -> void + + def to_hash: -> { + currency: Increase::Models::CardPushTransfer::PresentmentAmount::currency, + value: String + } + + type currency = + :AFN + | :EUR + | :ALL + | :DZD + | :USD + | :AOA + | :ARS + | :AMD + | :AWG + | :AUD + | :AZN + | :BSD + | :BHD + | :BDT + | :BBD + | :BYN + | :BZD + | :BMD + | :INR + | :BTN + | :BOB + | :BOV + | :BAM + | :BWP + | :NOK + | :BRL + | :BND + | :BGN + | :BIF + | :CVE + | :KHR + | :CAD + | :KYD + | :CLP + | :CLF + | :CNY + | :COP + | :COU + | :KMF + | :CDF + | :NZD + | :CRC + | :CUP + | :CZK + | :DKK + | :DJF + | :DOP + | :EGP + | :SVC + | :ERN + | :SZL + | :ETB + | :FKP + | :FJD + | :GMD + | :GEL + | :GHS + | :GIP + | :GTQ + | :GBP + | :GNF + | :GYD + | :HTG + | :HNL + | :HKD + | :HUF + | :ISK + | :IDR + | :IRR + | :IQD + | :ILS + | :JMD + | :JPY + | :JOD + | :KZT + | :KES + | :KPW + | :KRW + | :KWD + | :KGS + | :LAK + | :LBP + | :LSL + | :ZAR + | :LRD + | :LYD + | :CHF + | :MOP + | :MKD + | :MGA + | :MWK + | :MYR + | :MVR + | :MRU + | :MUR + | :MXN + | :MXV + | :MDL + | :MNT + | :MAD + | :MZN + | :MMK + | :NAD + | :NPR + | :NIO + | :NGN + | :OMR + | :PKR + | :PAB + | :PGK + | :PYG + | :PEN + | :PHP + | :PLN + | :QAR + | :RON + | :RUB + | :RWF + | :SHP + | :WST + | :STN + | :SAR + | :RSD + | :SCR + | :SLE + | :SGD + | :SBD + | :SOS + | :SSP + | :LKR + | :SDG + | :SRD + | :SEK + | :CHE + | :CHW + | :SYP + | :TWD + | :TJS + | :TZS + | :THB + | :TOP + | :TTD + | :TND + | :TRY + | :TMT + | :UGX + | :UAH + | :AED + | :USN + | :UYU + | :UYI + | :UYW + | :UZS + | :VUV + | :VES + | :VED + | :VND + | :YER + | :ZMW + | :ZWG + + module Currency + extend Increase::Internal::Type::Enum + + # AFN + AFN: :AFN + + # EUR + EUR: :EUR + + # ALL + ALL: :ALL + + # DZD + DZD: :DZD + + # USD + USD: :USD + + # AOA + AOA: :AOA + + # ARS + ARS: :ARS + + # AMD + AMD: :AMD + + # AWG + AWG: :AWG + + # AUD + AUD: :AUD + + # AZN + AZN: :AZN + + # BSD + BSD: :BSD + + # BHD + BHD: :BHD + + # BDT + BDT: :BDT + + # BBD + BBD: :BBD + + # BYN + BYN: :BYN + + # BZD + BZD: :BZD + + # BMD + BMD: :BMD + + # INR + INR: :INR + + # BTN + BTN: :BTN + + # BOB + BOB: :BOB + + # BOV + BOV: :BOV + + # BAM + BAM: :BAM + + # BWP + BWP: :BWP + + # NOK + NOK: :NOK + + # BRL + BRL: :BRL + + # BND + BND: :BND + + # BGN + BGN: :BGN + + # BIF + BIF: :BIF + + # CVE + CVE: :CVE + + # KHR + KHR: :KHR + + # CAD + CAD: :CAD + + # KYD + KYD: :KYD + + # CLP + CLP: :CLP + + # CLF + CLF: :CLF + + # CNY + CNY: :CNY + + # COP + COP: :COP + + # COU + COU: :COU + + # KMF + KMF: :KMF + + # CDF + CDF: :CDF + + # NZD + NZD: :NZD + + # CRC + CRC: :CRC + + # CUP + CUP: :CUP + + # CZK + CZK: :CZK + + # DKK + DKK: :DKK + + # DJF + DJF: :DJF + + # DOP + DOP: :DOP + + # EGP + EGP: :EGP + + # SVC + SVC: :SVC + + # ERN + ERN: :ERN + + # SZL + SZL: :SZL + + # ETB + ETB: :ETB + + # FKP + FKP: :FKP + + # FJD + FJD: :FJD + + # GMD + GMD: :GMD + + # GEL + GEL: :GEL + + # GHS + GHS: :GHS + + # GIP + GIP: :GIP + + # GTQ + GTQ: :GTQ + + # GBP + GBP: :GBP + + # GNF + GNF: :GNF + + # GYD + GYD: :GYD + + # HTG + HTG: :HTG + + # HNL + HNL: :HNL + + # HKD + HKD: :HKD + + # HUF + HUF: :HUF + + # ISK + ISK: :ISK + + # IDR + IDR: :IDR + + # IRR + IRR: :IRR + + # IQD + IQD: :IQD + + # ILS + ILS: :ILS + + # JMD + JMD: :JMD + + # JPY + JPY: :JPY + + # JOD + JOD: :JOD + + # KZT + KZT: :KZT + + # KES + KES: :KES + + # KPW + KPW: :KPW + + # KRW + KRW: :KRW + + # KWD + KWD: :KWD + + # KGS + KGS: :KGS + + # LAK + LAK: :LAK + + # LBP + LBP: :LBP + + # LSL + LSL: :LSL + + # ZAR + ZAR: :ZAR + + # LRD + LRD: :LRD + + # LYD + LYD: :LYD + + # CHF + CHF: :CHF + + # MOP + MOP: :MOP + + # MKD + MKD: :MKD + + # MGA + MGA: :MGA + + # MWK + MWK: :MWK + + # MYR + MYR: :MYR + + # MVR + MVR: :MVR + + # MRU + MRU: :MRU + + # MUR + MUR: :MUR + + # MXN + MXN: :MXN + + # MXV + MXV: :MXV + + # MDL + MDL: :MDL + + # MNT + MNT: :MNT + + # MAD + MAD: :MAD + + # MZN + MZN: :MZN + + # MMK + MMK: :MMK + + # NAD + NAD: :NAD + + # NPR + NPR: :NPR + + # NIO + NIO: :NIO + + # NGN + NGN: :NGN + + # OMR + OMR: :OMR + + # PKR + PKR: :PKR + + # PAB + PAB: :PAB + + # PGK + PGK: :PGK + + # PYG + PYG: :PYG + + # PEN + PEN: :PEN + + # PHP + PHP: :PHP + + # PLN + PLN: :PLN + + # QAR + QAR: :QAR + + # RON + RON: :RON + + # RUB + RUB: :RUB + + # RWF + RWF: :RWF + + # SHP + SHP: :SHP + + # WST + WST: :WST + + # STN + STN: :STN + + # SAR + SAR: :SAR + + # RSD + RSD: :RSD + + # SCR + SCR: :SCR + + # SLE + SLE: :SLE + + # SGD + SGD: :SGD + + # SBD + SBD: :SBD + + # SOS + SOS: :SOS + + # SSP + SSP: :SSP + + # LKR + LKR: :LKR + + # SDG + SDG: :SDG + + # SRD + SRD: :SRD + + # SEK + SEK: :SEK + + # CHE + CHE: :CHE + + # CHW + CHW: :CHW + + # SYP + SYP: :SYP + + # TWD + TWD: :TWD + + # TJS + TJS: :TJS + + # TZS + TZS: :TZS + + # THB + THB: :THB + + # TOP + TOP: :TOP + + # TTD + TTD: :TTD + + # TND + TND: :TND + + # TRY + TRY: :TRY + + # TMT + TMT: :TMT + + # UGX + UGX: :UGX + + # UAH + UAH: :UAH + + # AED + AED: :AED + + # USN + USN: :USN + + # UYU + UYU: :UYU + + # UYI + UYI: :UYI + + # UYW + UYW: :UYW + + # UZS + UZS: :UZS + + # VUV + VUV: :VUV + + # VES + VES: :VES + + # VED + VED: :VED + + # VND + VND: :VND + + # YER + YER: :YER + + # ZMW + ZMW: :ZMW + + # ZWG + ZWG: :ZWG + + def self?.values: -> ::Array[Increase::Models::CardPushTransfer::PresentmentAmount::currency] + end + end + type status = :pending_approval | :canceled diff --git a/sig/increase/models/card_push_transfer_create_params.rbs b/sig/increase/models/card_push_transfer_create_params.rbs index baedb4cee..fc14dc1ac 100644 --- a/sig/increase/models/card_push_transfer_create_params.rbs +++ b/sig/increase/models/card_push_transfer_create_params.rbs @@ -2,7 +2,6 @@ module Increase module Models type card_push_transfer_create_params = { - amount: Integer, business_application_identifier: Increase::Models::CardPushTransferCreateParams::business_application_identifier, card_token_id: String, merchant_category_code: String, @@ -11,6 +10,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransferCreateParams::PresentmentAmount, recipient_name: String, sender_address_city: String, :sender_address_line1 => String, @@ -26,8 +26,6 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters - attr_accessor amount: Integer - attr_accessor business_application_identifier: Increase::Models::CardPushTransferCreateParams::business_application_identifier attr_accessor card_token_id: String @@ -44,6 +42,8 @@ module Increase attr_accessor merchant_state: String + attr_accessor presentment_amount: Increase::CardPushTransferCreateParams::PresentmentAmount + attr_accessor recipient_name: String attr_accessor sender_address_city: String @@ -63,7 +63,6 @@ module Increase def require_approval=: (bool) -> bool def initialize: ( - amount: Integer, business_application_identifier: Increase::Models::CardPushTransferCreateParams::business_application_identifier, card_token_id: String, merchant_category_code: String, @@ -72,6 +71,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransferCreateParams::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -84,7 +84,6 @@ module Increase ) -> void def to_hash: -> { - amount: Integer, business_application_identifier: Increase::Models::CardPushTransferCreateParams::business_application_identifier, card_token_id: String, merchant_category_code: String, @@ -93,6 +92,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransferCreateParams::PresentmentAmount, recipient_name: String, sender_address_city: String, :sender_address_line1 => String, @@ -167,6 +167,676 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardPushTransferCreateParams::business_application_identifier] end + + type presentment_amount = + { + currency: Increase::Models::CardPushTransferCreateParams::PresentmentAmount::currency, + value: String + } + + class PresentmentAmount < Increase::Internal::Type::BaseModel + attr_accessor currency: Increase::Models::CardPushTransferCreateParams::PresentmentAmount::currency + + attr_accessor value: String + + def initialize: ( + currency: Increase::Models::CardPushTransferCreateParams::PresentmentAmount::currency, + value: String + ) -> void + + def to_hash: -> { + currency: Increase::Models::CardPushTransferCreateParams::PresentmentAmount::currency, + value: String + } + + type currency = + :AFN + | :EUR + | :ALL + | :DZD + | :USD + | :AOA + | :ARS + | :AMD + | :AWG + | :AUD + | :AZN + | :BSD + | :BHD + | :BDT + | :BBD + | :BYN + | :BZD + | :BMD + | :INR + | :BTN + | :BOB + | :BOV + | :BAM + | :BWP + | :NOK + | :BRL + | :BND + | :BGN + | :BIF + | :CVE + | :KHR + | :CAD + | :KYD + | :CLP + | :CLF + | :CNY + | :COP + | :COU + | :KMF + | :CDF + | :NZD + | :CRC + | :CUP + | :CZK + | :DKK + | :DJF + | :DOP + | :EGP + | :SVC + | :ERN + | :SZL + | :ETB + | :FKP + | :FJD + | :GMD + | :GEL + | :GHS + | :GIP + | :GTQ + | :GBP + | :GNF + | :GYD + | :HTG + | :HNL + | :HKD + | :HUF + | :ISK + | :IDR + | :IRR + | :IQD + | :ILS + | :JMD + | :JPY + | :JOD + | :KZT + | :KES + | :KPW + | :KRW + | :KWD + | :KGS + | :LAK + | :LBP + | :LSL + | :ZAR + | :LRD + | :LYD + | :CHF + | :MOP + | :MKD + | :MGA + | :MWK + | :MYR + | :MVR + | :MRU + | :MUR + | :MXN + | :MXV + | :MDL + | :MNT + | :MAD + | :MZN + | :MMK + | :NAD + | :NPR + | :NIO + | :NGN + | :OMR + | :PKR + | :PAB + | :PGK + | :PYG + | :PEN + | :PHP + | :PLN + | :QAR + | :RON + | :RUB + | :RWF + | :SHP + | :WST + | :STN + | :SAR + | :RSD + | :SCR + | :SLE + | :SGD + | :SBD + | :SOS + | :SSP + | :LKR + | :SDG + | :SRD + | :SEK + | :CHE + | :CHW + | :SYP + | :TWD + | :TJS + | :TZS + | :THB + | :TOP + | :TTD + | :TND + | :TRY + | :TMT + | :UGX + | :UAH + | :AED + | :USN + | :UYU + | :UYI + | :UYW + | :UZS + | :VUV + | :VES + | :VED + | :VND + | :YER + | :ZMW + | :ZWG + + module Currency + extend Increase::Internal::Type::Enum + + # AFN + AFN: :AFN + + # EUR + EUR: :EUR + + # ALL + ALL: :ALL + + # DZD + DZD: :DZD + + # USD + USD: :USD + + # AOA + AOA: :AOA + + # ARS + ARS: :ARS + + # AMD + AMD: :AMD + + # AWG + AWG: :AWG + + # AUD + AUD: :AUD + + # AZN + AZN: :AZN + + # BSD + BSD: :BSD + + # BHD + BHD: :BHD + + # BDT + BDT: :BDT + + # BBD + BBD: :BBD + + # BYN + BYN: :BYN + + # BZD + BZD: :BZD + + # BMD + BMD: :BMD + + # INR + INR: :INR + + # BTN + BTN: :BTN + + # BOB + BOB: :BOB + + # BOV + BOV: :BOV + + # BAM + BAM: :BAM + + # BWP + BWP: :BWP + + # NOK + NOK: :NOK + + # BRL + BRL: :BRL + + # BND + BND: :BND + + # BGN + BGN: :BGN + + # BIF + BIF: :BIF + + # CVE + CVE: :CVE + + # KHR + KHR: :KHR + + # CAD + CAD: :CAD + + # KYD + KYD: :KYD + + # CLP + CLP: :CLP + + # CLF + CLF: :CLF + + # CNY + CNY: :CNY + + # COP + COP: :COP + + # COU + COU: :COU + + # KMF + KMF: :KMF + + # CDF + CDF: :CDF + + # NZD + NZD: :NZD + + # CRC + CRC: :CRC + + # CUP + CUP: :CUP + + # CZK + CZK: :CZK + + # DKK + DKK: :DKK + + # DJF + DJF: :DJF + + # DOP + DOP: :DOP + + # EGP + EGP: :EGP + + # SVC + SVC: :SVC + + # ERN + ERN: :ERN + + # SZL + SZL: :SZL + + # ETB + ETB: :ETB + + # FKP + FKP: :FKP + + # FJD + FJD: :FJD + + # GMD + GMD: :GMD + + # GEL + GEL: :GEL + + # GHS + GHS: :GHS + + # GIP + GIP: :GIP + + # GTQ + GTQ: :GTQ + + # GBP + GBP: :GBP + + # GNF + GNF: :GNF + + # GYD + GYD: :GYD + + # HTG + HTG: :HTG + + # HNL + HNL: :HNL + + # HKD + HKD: :HKD + + # HUF + HUF: :HUF + + # ISK + ISK: :ISK + + # IDR + IDR: :IDR + + # IRR + IRR: :IRR + + # IQD + IQD: :IQD + + # ILS + ILS: :ILS + + # JMD + JMD: :JMD + + # JPY + JPY: :JPY + + # JOD + JOD: :JOD + + # KZT + KZT: :KZT + + # KES + KES: :KES + + # KPW + KPW: :KPW + + # KRW + KRW: :KRW + + # KWD + KWD: :KWD + + # KGS + KGS: :KGS + + # LAK + LAK: :LAK + + # LBP + LBP: :LBP + + # LSL + LSL: :LSL + + # ZAR + ZAR: :ZAR + + # LRD + LRD: :LRD + + # LYD + LYD: :LYD + + # CHF + CHF: :CHF + + # MOP + MOP: :MOP + + # MKD + MKD: :MKD + + # MGA + MGA: :MGA + + # MWK + MWK: :MWK + + # MYR + MYR: :MYR + + # MVR + MVR: :MVR + + # MRU + MRU: :MRU + + # MUR + MUR: :MUR + + # MXN + MXN: :MXN + + # MXV + MXV: :MXV + + # MDL + MDL: :MDL + + # MNT + MNT: :MNT + + # MAD + MAD: :MAD + + # MZN + MZN: :MZN + + # MMK + MMK: :MMK + + # NAD + NAD: :NAD + + # NPR + NPR: :NPR + + # NIO + NIO: :NIO + + # NGN + NGN: :NGN + + # OMR + OMR: :OMR + + # PKR + PKR: :PKR + + # PAB + PAB: :PAB + + # PGK + PGK: :PGK + + # PYG + PYG: :PYG + + # PEN + PEN: :PEN + + # PHP + PHP: :PHP + + # PLN + PLN: :PLN + + # QAR + QAR: :QAR + + # RON + RON: :RON + + # RUB + RUB: :RUB + + # RWF + RWF: :RWF + + # SHP + SHP: :SHP + + # WST + WST: :WST + + # STN + STN: :STN + + # SAR + SAR: :SAR + + # RSD + RSD: :RSD + + # SCR + SCR: :SCR + + # SLE + SLE: :SLE + + # SGD + SGD: :SGD + + # SBD + SBD: :SBD + + # SOS + SOS: :SOS + + # SSP + SSP: :SSP + + # LKR + LKR: :LKR + + # SDG + SDG: :SDG + + # SRD + SRD: :SRD + + # SEK + SEK: :SEK + + # CHE + CHE: :CHE + + # CHW + CHW: :CHW + + # SYP + SYP: :SYP + + # TWD + TWD: :TWD + + # TJS + TJS: :TJS + + # TZS + TZS: :TZS + + # THB + THB: :THB + + # TOP + TOP: :TOP + + # TTD + TTD: :TTD + + # TND + TND: :TND + + # TRY + TRY: :TRY + + # TMT + TMT: :TMT + + # UGX + UGX: :UGX + + # UAH + UAH: :UAH + + # AED + AED: :AED + + # USN + USN: :USN + + # UYU + UYU: :UYU + + # UYI + UYI: :UYI + + # UYW + UYW: :UYW + + # UZS + UZS: :UZS + + # VUV + VUV: :VUV + + # VES + VES: :VES + + # VED + VED: :VED + + # VND + VND: :VND + + # YER + YER: :YER + + # ZMW + ZMW: :ZMW + + # ZWG + ZWG: :ZWG + + def self?.values: -> ::Array[Increase::Models::CardPushTransferCreateParams::PresentmentAmount::currency] + end + end end end end diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index ebd98b315..fa3d985a6 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -1660,16 +1660,19 @@ module Increase end type card_push_transfer_acceptance = - { amount: Integer, transfer_id: String } + { settlement_amount: Integer, transfer_id: String } class CardPushTransferAcceptance < Increase::Internal::Type::BaseModel - attr_accessor amount: Integer + attr_accessor settlement_amount: Integer attr_accessor transfer_id: String - def initialize: (amount: Integer, transfer_id: String) -> void + def initialize: ( + settlement_amount: Integer, + transfer_id: String + ) -> void - def to_hash: -> { amount: Integer, transfer_id: String } + def to_hash: -> { settlement_amount: Integer, transfer_id: String } end type card_refund = diff --git a/sig/increase/resources/card_push_transfers.rbs b/sig/increase/resources/card_push_transfers.rbs index 9ac7ce96c..e0d4f4eb6 100644 --- a/sig/increase/resources/card_push_transfers.rbs +++ b/sig/increase/resources/card_push_transfers.rbs @@ -2,7 +2,6 @@ module Increase module Resources class CardPushTransfers def create: ( - amount: Integer, business_application_identifier: Increase::Models::CardPushTransferCreateParams::business_application_identifier, card_token_id: String, merchant_category_code: String, @@ -11,6 +10,7 @@ module Increase merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransferCreateParams::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, diff --git a/test/increase/resources/card_push_transfers_test.rb b/test/increase/resources/card_push_transfers_test.rb index 2857de4ca..0b49f77ec 100644 --- a/test/increase/resources/card_push_transfers_test.rb +++ b/test/increase/resources/card_push_transfers_test.rb @@ -6,7 +6,6 @@ class Increase::Test::Resources::CardPushTransfersTest < Increase::Test::Resourc def test_create_required_params response = @increase.card_push_transfers.create( - amount: 100, business_application_identifier: :funds_disbursement, card_token_id: "outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code: "1234", @@ -15,6 +14,7 @@ def test_create_required_params merchant_name_prefix: "Acme", merchant_postal_code: "10045", merchant_state: "NY", + presentment_amount: {currency: :USD, value: "1234.56"}, recipient_name: "Ian Crease", sender_address_city: "New York", sender_address_line1: "33 Liberty Street", @@ -33,13 +33,11 @@ def test_create_required_params id: String, acceptance: Increase::CardPushTransfer::Acceptance | nil, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval | nil, business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier, cancellation: Increase::CardPushTransfer::Cancellation | nil, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy | nil, - currency: Increase::CardPushTransfer::Currency, decline: Increase::CardPushTransfer::Decline | nil, idempotency_key: String | nil, merchant_category_code: String, @@ -48,6 +46,7 @@ def test_create_required_params merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -74,13 +73,11 @@ def test_retrieve id: String, acceptance: Increase::CardPushTransfer::Acceptance | nil, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval | nil, business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier, cancellation: Increase::CardPushTransfer::Cancellation | nil, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy | nil, - currency: Increase::CardPushTransfer::Currency, decline: Increase::CardPushTransfer::Decline | nil, idempotency_key: String | nil, merchant_category_code: String, @@ -89,6 +86,7 @@ def test_retrieve merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -122,13 +120,11 @@ def test_list id: String, acceptance: Increase::CardPushTransfer::Acceptance | nil, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval | nil, business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier, cancellation: Increase::CardPushTransfer::Cancellation | nil, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy | nil, - currency: Increase::CardPushTransfer::Currency, decline: Increase::CardPushTransfer::Decline | nil, idempotency_key: String | nil, merchant_category_code: String, @@ -137,6 +133,7 @@ def test_list merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -163,13 +160,11 @@ def test_approve id: String, acceptance: Increase::CardPushTransfer::Acceptance | nil, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval | nil, business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier, cancellation: Increase::CardPushTransfer::Cancellation | nil, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy | nil, - currency: Increase::CardPushTransfer::Currency, decline: Increase::CardPushTransfer::Decline | nil, idempotency_key: String | nil, merchant_category_code: String, @@ -178,6 +173,7 @@ def test_approve merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, @@ -204,13 +200,11 @@ def test_cancel id: String, acceptance: Increase::CardPushTransfer::Acceptance | nil, account_id: String, - amount: Integer, approval: Increase::CardPushTransfer::Approval | nil, business_application_identifier: Increase::CardPushTransfer::BusinessApplicationIdentifier, cancellation: Increase::CardPushTransfer::Cancellation | nil, created_at: Time, created_by: Increase::CardPushTransfer::CreatedBy | nil, - currency: Increase::CardPushTransfer::Currency, decline: Increase::CardPushTransfer::Decline | nil, idempotency_key: String | nil, merchant_category_code: String, @@ -219,6 +213,7 @@ def test_cancel merchant_name_prefix: String, merchant_postal_code: String, merchant_state: String, + presentment_amount: Increase::CardPushTransfer::PresentmentAmount, recipient_name: String, sender_address_city: String, sender_address_line1: String, From c1ca1098f6519adfa0be8cb7554f5b6d8d87b805 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 22:27:46 +0000 Subject: [PATCH 2/2] release: 1.144.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c7a8ee3e1..5e144b20e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.143.0" + ".": "1.144.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 81cc4f0a9..76589447a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.144.0 (2025-11-18) + +Full Changelog: [v1.143.0...v1.144.0](https://github.com/Increase/increase-ruby/compare/v1.143.0...v1.144.0) + +### Features + +* **api:** api update ([ef65e7e](https://github.com/Increase/increase-ruby/commit/ef65e7e040bba725360a271ddb61222b8fdd9276)) + ## 1.143.0 (2025-11-14) Full Changelog: [v1.142.0...v1.143.0](https://github.com/Increase/increase-ruby/compare/v1.142.0...v1.143.0) diff --git a/Gemfile.lock b/Gemfile.lock index 5b689bade..b72f37292 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.143.0) + increase (1.144.0) connection_pool GEM diff --git a/README.md b/README.md index d4f613bb3..aae8703c9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.143.0" +gem "increase", "~> 1.144.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 9b83c569b..9ec23f9e6 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.143.0" + VERSION = "1.144.0" end