stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +31 -1
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/object_types.rb +3 -0
  5. data/lib/stripe/params/charge_capture_params.rb +0 -169
  6. data/lib/stripe/params/charge_update_params.rb +0 -169
  7. data/lib/stripe/params/gift_card_activate_params.rb +30 -0
  8. data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
  9. data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
  10. data/lib/stripe/params/gift_card_create_params.rb +28 -0
  11. data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
  12. data/lib/stripe/params/gift_card_reload_params.rb +22 -0
  13. data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
  14. data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
  15. data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
  16. data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
  17. data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
  18. data/lib/stripe/params/payment_intent_confirm_params.rb +72 -67
  19. data/lib/stripe/params/payment_intent_create_params.rb +72 -67
  20. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
  21. data/lib/stripe/params/payment_intent_update_params.rb +72 -67
  22. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
  23. data/lib/stripe/params/radar/account_evaluation_create_params.rb +38 -4
  24. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +19 -2
  25. data/lib/stripe/params/tax/calculation_create_params.rb +42 -0
  26. data/lib/stripe/params/tax_fund_list_params.rb +42 -0
  27. data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
  28. data/lib/stripe/params/v2/billing/contract_create_params.rb +1 -1
  29. data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
  30. data/lib/stripe/params.rb +23 -0
  31. data/lib/stripe/resources/charge.rb +31 -1
  32. data/lib/stripe/resources/checkout/session.rb +16 -0
  33. data/lib/stripe/resources/confirmation_token.rb +16 -0
  34. data/lib/stripe/resources/gift_card.rb +144 -0
  35. data/lib/stripe/resources/gift_card_operation.rb +289 -0
  36. data/lib/stripe/resources/issuing/authorization.rb +1 -1
  37. data/lib/stripe/resources/issuing/dispute.rb +24 -0
  38. data/lib/stripe/resources/issuing/token.rb +1 -1
  39. data/lib/stripe/resources/payment_attempt_record.rb +67 -1
  40. data/lib/stripe/resources/payment_intent.rb +86 -19
  41. data/lib/stripe/resources/payment_method.rb +16 -0
  42. data/lib/stripe/resources/payment_record.rb +67 -1
  43. data/lib/stripe/resources/setup_intent.rb +2 -0
  44. data/lib/stripe/resources/tax/calculation_line_item.rb +41 -1
  45. data/lib/stripe/resources/tax/transaction_line_item.rb +41 -1
  46. data/lib/stripe/resources/tax_fund.rb +179 -0
  47. data/lib/stripe/resources/v2/core/account.rb +1 -1
  48. data/lib/stripe/resources/v2/core/fee_batch.rb +86 -3
  49. data/lib/stripe/resources/v2/core/fee_entry.rb +40 -2
  50. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
  51. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  52. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  53. data/lib/stripe/resources.rb +6 -0
  54. data/lib/stripe/services/gift_card_operation_service.rb +17 -0
  55. data/lib/stripe/services/gift_card_service.rb +77 -0
  56. data/lib/stripe/services/payment_intent_service.rb +11 -0
  57. data/lib/stripe/services/tax_fund_service.rb +22 -0
  58. data/lib/stripe/services/v1_services.rb +4 -1
  59. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
  60. data/lib/stripe/services.rb +6 -0
  61. data/lib/stripe/version.rb +1 -1
  62. data/rbi/stripe.rbi +2017 -1228
  63. metadata +19 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 264fab771119158352f8b34c45f00ea443ce746ab873e518777c3228a0e66f92
4
- data.tar.gz: 250dc9e48e5853857726238358f8ad8785467039403cf88cb00d1de190ae7f01
3
+ metadata.gz: d30433088badf7a47839ee36785c170430d18e8aa077e3b830ab53ccd1c137a3
4
+ data.tar.gz: '04807a3cd716d35e479138e6ef26f5879d15d8fde68321c8e50a03b0c07adb6a'
5
5
  SHA512:
6
- metadata.gz: 161e6ba143626a03a2d38d34e51532dcdf2d2980497c61d24322d1e27258aa662d375b398a87573598e9379e1e5e6fd00d4195cd6720fc6b168fb6534997db95
7
- data.tar.gz: 87b7ce17cf4ca124d4ef3070a9eaaecad38963ad1951c4d78481bbf5b8d02881ee97ea591dc6c0305311473793bf2e771847608fde694631b4c5fc5be1316a20
6
+ metadata.gz: 22e4c6ccf670a11d41d4f9c5219d8eb7c0f9dd96094ad66e38fa149697f449daea9cf6ad3c03c145e9783247a4157bb0d99690588d9e52af2c9c2de1cbd532f9
7
+ data.tar.gz: 96d9af074f01de4dc4e7ea3753cf32760486c6b98e82ee9b880de8d8b83c061abd0bb81a600c7e9821799a0ae0fa02551ffcba73c9ea3c3c014876b5c29c36c9
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "digest"
4
+ require "socket"
3
5
  require "stripe/instrumentation"
4
6
 
5
7
  module Stripe
@@ -1104,6 +1106,31 @@ module Stripe
1104
1106
  # in so that we can generate a rich user agent header to help debug
1105
1107
  # integrations.
1106
1108
  class SystemProfiler
1109
+ UNAME_HASH = begin
1110
+ parts = []
1111
+ parts << if RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
1112
+ begin
1113
+ `ver 2>NUL`.strip
1114
+ rescue StandardError
1115
+ ""
1116
+ end
1117
+ else
1118
+ begin
1119
+ `uname -a 2>/dev/null`.strip
1120
+ rescue StandardError
1121
+ ""
1122
+ end
1123
+ end
1124
+ parts << begin
1125
+ Socket.gethostname
1126
+ rescue StandardError
1127
+ ""
1128
+ end
1129
+ Digest::MD5.hexdigest(parts.join(" "))
1130
+ rescue StandardError
1131
+ ""
1132
+ end
1133
+
1107
1134
  AI_AGENTS = [
1108
1135
  # aiAgents: The beginning of the section generated from our OpenAPI spec
1109
1136
  %w[ANTIGRAVITY_CLI_ALIAS antigravity],
@@ -1139,7 +1166,10 @@ module Stripe
1139
1166
  engine: defined?(RUBY_ENGINE) ? RUBY_ENGINE : "",
1140
1167
  }.delete_if { |_k, v| v.nil? }
1141
1168
 
1142
- ua[:platform] = RUBY_PLATFORM if Stripe.enable_telemetry?
1169
+ if Stripe.enable_telemetry?
1170
+ ua[:platform] = RUBY_PLATFORM
1171
+ ua[:source] = UNAME_HASH unless UNAME_HASH.empty?
1172
+ end
1143
1173
 
1144
1174
  ai_agent = detect_ai_agent
1145
1175
  ua[:ai_agent] = ai_agent unless ai_agent.empty?
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-06-03.preview"
6
+ CURRENT = "2026-06-10.preview"
7
7
  end
8
8
  end
@@ -88,6 +88,8 @@ module Stripe
88
88
  FrMealVouchersOnboarding.object_name => FrMealVouchersOnboarding,
89
89
  FundingInstructions.object_name => FundingInstructions,
90
90
  FxQuote.object_name => FxQuote,
91
+ GiftCard.object_name => GiftCard,
92
+ GiftCardOperation.object_name => GiftCardOperation,
91
93
  Identity::BlocklistEntry.object_name => Identity::BlocklistEntry,
92
94
  Identity::VerificationReport.object_name => Identity::VerificationReport,
93
95
  Identity::VerificationSession.object_name => Identity::VerificationSession,
@@ -181,6 +183,7 @@ module Stripe
181
183
  Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
182
184
  TaxCode.object_name => TaxCode,
183
185
  TaxDeductedAtSource.object_name => TaxDeductedAtSource,
186
+ TaxFund.object_name => TaxFund,
184
187
  TaxId.object_name => TaxId,
185
188
  TaxRate.object_name => TaxRate,
186
189
  Terminal::Configuration.object_name => Terminal::Configuration,
@@ -1638,171 +1638,6 @@ module Stripe
1638
1638
  end
1639
1639
  end
1640
1640
 
1641
- class MoneyServices < ::Stripe::RequestParams
1642
- class AccountFunding < ::Stripe::RequestParams
1643
- class BeneficiaryDetails < ::Stripe::RequestParams
1644
- class Address < ::Stripe::RequestParams
1645
- # City, district, suburb, town, or village.
1646
- attr_accessor :city
1647
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1648
- attr_accessor :country
1649
- # Address line 1, such as the street, PO Box, or company name.
1650
- attr_accessor :line1
1651
- # Address line 2, such as the apartment, suite, unit, or building.
1652
- attr_accessor :line2
1653
- # ZIP or postal code.
1654
- attr_accessor :postal_code
1655
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1656
- attr_accessor :state
1657
-
1658
- def initialize(
1659
- city: nil,
1660
- country: nil,
1661
- line1: nil,
1662
- line2: nil,
1663
- postal_code: nil,
1664
- state: nil
1665
- )
1666
- @city = city
1667
- @country = country
1668
- @line1 = line1
1669
- @line2 = line2
1670
- @postal_code = postal_code
1671
- @state = state
1672
- end
1673
- end
1674
-
1675
- class DateOfBirth < ::Stripe::RequestParams
1676
- # Day of birth, between 1 and 31.
1677
- attr_accessor :day
1678
- # Month of birth, between 1 and 12.
1679
- attr_accessor :month
1680
- # Four-digit year of birth.
1681
- attr_accessor :year
1682
-
1683
- def initialize(day: nil, month: nil, year: nil)
1684
- @day = day
1685
- @month = month
1686
- @year = year
1687
- end
1688
- end
1689
- # Address.
1690
- attr_accessor :address
1691
- # Date of birth.
1692
- attr_accessor :date_of_birth
1693
- # Email address.
1694
- attr_accessor :email
1695
- # Full name.
1696
- attr_accessor :name
1697
- # Phone number.
1698
- attr_accessor :phone
1699
-
1700
- def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1701
- @address = address
1702
- @date_of_birth = date_of_birth
1703
- @email = email
1704
- @name = name
1705
- @phone = phone
1706
- end
1707
- end
1708
-
1709
- class SenderDetails < ::Stripe::RequestParams
1710
- class Address < ::Stripe::RequestParams
1711
- # City, district, suburb, town, or village.
1712
- attr_accessor :city
1713
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1714
- attr_accessor :country
1715
- # Address line 1, such as the street, PO Box, or company name.
1716
- attr_accessor :line1
1717
- # Address line 2, such as the apartment, suite, unit, or building.
1718
- attr_accessor :line2
1719
- # ZIP or postal code.
1720
- attr_accessor :postal_code
1721
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1722
- attr_accessor :state
1723
-
1724
- def initialize(
1725
- city: nil,
1726
- country: nil,
1727
- line1: nil,
1728
- line2: nil,
1729
- postal_code: nil,
1730
- state: nil
1731
- )
1732
- @city = city
1733
- @country = country
1734
- @line1 = line1
1735
- @line2 = line2
1736
- @postal_code = postal_code
1737
- @state = state
1738
- end
1739
- end
1740
-
1741
- class DateOfBirth < ::Stripe::RequestParams
1742
- # Day of birth, between 1 and 31.
1743
- attr_accessor :day
1744
- # Month of birth, between 1 and 12.
1745
- attr_accessor :month
1746
- # Four-digit year of birth.
1747
- attr_accessor :year
1748
-
1749
- def initialize(day: nil, month: nil, year: nil)
1750
- @day = day
1751
- @month = month
1752
- @year = year
1753
- end
1754
- end
1755
- # Address.
1756
- attr_accessor :address
1757
- # Date of birth.
1758
- attr_accessor :date_of_birth
1759
- # Email address.
1760
- attr_accessor :email
1761
- # Full name.
1762
- attr_accessor :name
1763
- # Phone number.
1764
- attr_accessor :phone
1765
-
1766
- def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1767
- @address = address
1768
- @date_of_birth = date_of_birth
1769
- @email = email
1770
- @name = name
1771
- @phone = phone
1772
- end
1773
- end
1774
- # ID of the Account representing the beneficiary in this account funding transaction.
1775
- attr_accessor :beneficiary_account
1776
- # Inline identity details for the beneficiary of this account funding transaction.
1777
- attr_accessor :beneficiary_details
1778
- # ID of the Account representing the sender in this account funding transaction.
1779
- attr_accessor :sender_account
1780
- # Inline identity details for the sender of this account funding transaction.
1781
- attr_accessor :sender_details
1782
-
1783
- def initialize(
1784
- beneficiary_account: nil,
1785
- beneficiary_details: nil,
1786
- sender_account: nil,
1787
- sender_details: nil
1788
- )
1789
- @beneficiary_account = beneficiary_account
1790
- @beneficiary_details = beneficiary_details
1791
- @sender_account = sender_account
1792
- @sender_details = sender_details
1793
- end
1794
- end
1795
- # Account funding transaction details including sender and beneficiary information.
1796
- attr_accessor :account_funding
1797
- # The type of money services transaction.
1798
- attr_accessor :transaction_type
1799
-
1800
- def initialize(account_funding: nil, transaction_type: nil)
1801
- @account_funding = account_funding
1802
- @transaction_type = transaction_type
1803
- end
1804
- end
1805
-
1806
1641
  class Subscription < ::Stripe::RequestParams
1807
1642
  class Affiliate < ::Stripe::RequestParams
1808
1643
  # The name of the affiliate that originated the purchase.
@@ -1873,8 +1708,6 @@ module Stripe
1873
1708
  attr_accessor :lodging
1874
1709
  # Lodging data for this PaymentIntent.
1875
1710
  attr_accessor :lodging_data
1876
- # Money services details for this PaymentIntent.
1877
- attr_accessor :money_services
1878
1711
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1879
1712
  #
1880
1713
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
@@ -1892,7 +1725,6 @@ module Stripe
1892
1725
  flight_data: nil,
1893
1726
  lodging: nil,
1894
1727
  lodging_data: nil,
1895
- money_services: nil,
1896
1728
  order_reference: nil,
1897
1729
  subscription: nil
1898
1730
  )
@@ -1905,7 +1737,6 @@ module Stripe
1905
1737
  @flight_data = flight_data
1906
1738
  @lodging = lodging
1907
1739
  @lodging_data = lodging_data
1908
- @money_services = money_services
1909
1740
  @order_reference = order_reference
1910
1741
  @subscription = subscription
1911
1742
  end
@@ -1647,171 +1647,6 @@ module Stripe
1647
1647
  end
1648
1648
  end
1649
1649
 
1650
- class MoneyServices < ::Stripe::RequestParams
1651
- class AccountFunding < ::Stripe::RequestParams
1652
- class BeneficiaryDetails < ::Stripe::RequestParams
1653
- class Address < ::Stripe::RequestParams
1654
- # City, district, suburb, town, or village.
1655
- attr_accessor :city
1656
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1657
- attr_accessor :country
1658
- # Address line 1, such as the street, PO Box, or company name.
1659
- attr_accessor :line1
1660
- # Address line 2, such as the apartment, suite, unit, or building.
1661
- attr_accessor :line2
1662
- # ZIP or postal code.
1663
- attr_accessor :postal_code
1664
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1665
- attr_accessor :state
1666
-
1667
- def initialize(
1668
- city: nil,
1669
- country: nil,
1670
- line1: nil,
1671
- line2: nil,
1672
- postal_code: nil,
1673
- state: nil
1674
- )
1675
- @city = city
1676
- @country = country
1677
- @line1 = line1
1678
- @line2 = line2
1679
- @postal_code = postal_code
1680
- @state = state
1681
- end
1682
- end
1683
-
1684
- class DateOfBirth < ::Stripe::RequestParams
1685
- # Day of birth, between 1 and 31.
1686
- attr_accessor :day
1687
- # Month of birth, between 1 and 12.
1688
- attr_accessor :month
1689
- # Four-digit year of birth.
1690
- attr_accessor :year
1691
-
1692
- def initialize(day: nil, month: nil, year: nil)
1693
- @day = day
1694
- @month = month
1695
- @year = year
1696
- end
1697
- end
1698
- # Address.
1699
- attr_accessor :address
1700
- # Date of birth.
1701
- attr_accessor :date_of_birth
1702
- # Email address.
1703
- attr_accessor :email
1704
- # Full name.
1705
- attr_accessor :name
1706
- # Phone number.
1707
- attr_accessor :phone
1708
-
1709
- def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1710
- @address = address
1711
- @date_of_birth = date_of_birth
1712
- @email = email
1713
- @name = name
1714
- @phone = phone
1715
- end
1716
- end
1717
-
1718
- class SenderDetails < ::Stripe::RequestParams
1719
- class Address < ::Stripe::RequestParams
1720
- # City, district, suburb, town, or village.
1721
- attr_accessor :city
1722
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1723
- attr_accessor :country
1724
- # Address line 1, such as the street, PO Box, or company name.
1725
- attr_accessor :line1
1726
- # Address line 2, such as the apartment, suite, unit, or building.
1727
- attr_accessor :line2
1728
- # ZIP or postal code.
1729
- attr_accessor :postal_code
1730
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1731
- attr_accessor :state
1732
-
1733
- def initialize(
1734
- city: nil,
1735
- country: nil,
1736
- line1: nil,
1737
- line2: nil,
1738
- postal_code: nil,
1739
- state: nil
1740
- )
1741
- @city = city
1742
- @country = country
1743
- @line1 = line1
1744
- @line2 = line2
1745
- @postal_code = postal_code
1746
- @state = state
1747
- end
1748
- end
1749
-
1750
- class DateOfBirth < ::Stripe::RequestParams
1751
- # Day of birth, between 1 and 31.
1752
- attr_accessor :day
1753
- # Month of birth, between 1 and 12.
1754
- attr_accessor :month
1755
- # Four-digit year of birth.
1756
- attr_accessor :year
1757
-
1758
- def initialize(day: nil, month: nil, year: nil)
1759
- @day = day
1760
- @month = month
1761
- @year = year
1762
- end
1763
- end
1764
- # Address.
1765
- attr_accessor :address
1766
- # Date of birth.
1767
- attr_accessor :date_of_birth
1768
- # Email address.
1769
- attr_accessor :email
1770
- # Full name.
1771
- attr_accessor :name
1772
- # Phone number.
1773
- attr_accessor :phone
1774
-
1775
- def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1776
- @address = address
1777
- @date_of_birth = date_of_birth
1778
- @email = email
1779
- @name = name
1780
- @phone = phone
1781
- end
1782
- end
1783
- # ID of the Account representing the beneficiary in this account funding transaction.
1784
- attr_accessor :beneficiary_account
1785
- # Inline identity details for the beneficiary of this account funding transaction.
1786
- attr_accessor :beneficiary_details
1787
- # ID of the Account representing the sender in this account funding transaction.
1788
- attr_accessor :sender_account
1789
- # Inline identity details for the sender of this account funding transaction.
1790
- attr_accessor :sender_details
1791
-
1792
- def initialize(
1793
- beneficiary_account: nil,
1794
- beneficiary_details: nil,
1795
- sender_account: nil,
1796
- sender_details: nil
1797
- )
1798
- @beneficiary_account = beneficiary_account
1799
- @beneficiary_details = beneficiary_details
1800
- @sender_account = sender_account
1801
- @sender_details = sender_details
1802
- end
1803
- end
1804
- # Account funding transaction details including sender and beneficiary information.
1805
- attr_accessor :account_funding
1806
- # The type of money services transaction.
1807
- attr_accessor :transaction_type
1808
-
1809
- def initialize(account_funding: nil, transaction_type: nil)
1810
- @account_funding = account_funding
1811
- @transaction_type = transaction_type
1812
- end
1813
- end
1814
-
1815
1650
  class Subscription < ::Stripe::RequestParams
1816
1651
  class Affiliate < ::Stripe::RequestParams
1817
1652
  # The name of the affiliate that originated the purchase.
@@ -1882,8 +1717,6 @@ module Stripe
1882
1717
  attr_accessor :lodging
1883
1718
  # Lodging data for this PaymentIntent.
1884
1719
  attr_accessor :lodging_data
1885
- # Money services details for this PaymentIntent.
1886
- attr_accessor :money_services
1887
1720
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1888
1721
  #
1889
1722
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
@@ -1901,7 +1734,6 @@ module Stripe
1901
1734
  flight_data: nil,
1902
1735
  lodging: nil,
1903
1736
  lodging_data: nil,
1904
- money_services: nil,
1905
1737
  order_reference: nil,
1906
1738
  subscription: nil
1907
1739
  )
@@ -1914,7 +1746,6 @@ module Stripe
1914
1746
  @flight_data = flight_data
1915
1747
  @lodging = lodging
1916
1748
  @lodging_data = lodging_data
1917
- @money_services = money_services
1918
1749
  @order_reference = order_reference
1919
1750
  @subscription = subscription
1920
1751
  end
@@ -0,0 +1,30 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardActivateParams < ::Stripe::RequestParams
6
+ class Balance < ::Stripe::RequestParams
7
+ # The initial balance amount to be loaded when activating the gift card, in the smallest currency unit
8
+ attr_accessor :amount
9
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
10
+ attr_accessor :currency
11
+
12
+ def initialize(amount: nil, currency: nil)
13
+ @amount = amount
14
+ @currency = currency
15
+ end
16
+ end
17
+ # The initial balance to set on the gift card.
18
+ attr_accessor :balance
19
+ # Specifies which fields in the response should be expanded.
20
+ attr_accessor :expand
21
+ # The Stripe account ID to process the gift card operation on behalf of.
22
+ attr_accessor :on_behalf_of
23
+
24
+ def initialize(balance: nil, expand: nil, on_behalf_of: nil)
25
+ @balance = balance
26
+ @expand = expand
27
+ @on_behalf_of = on_behalf_of
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardCashoutParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+ # The Stripe account ID to process the gift card operation on behalf of.
9
+ attr_accessor :on_behalf_of
10
+
11
+ def initialize(expand: nil, on_behalf_of: nil)
12
+ @expand = expand
13
+ @on_behalf_of = on_behalf_of
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardCheckBalanceParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+ # The Stripe account ID to process the gift card operation on behalf of.
9
+ attr_accessor :on_behalf_of
10
+
11
+ def initialize(expand: nil, on_behalf_of: nil)
12
+ @expand = expand
13
+ @on_behalf_of = on_behalf_of
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardCreateParams < ::Stripe::RequestParams
6
+ # The brand of the gift card.
7
+ attr_accessor :brand
8
+ # Two-digit number representing the gift card's expiration month.
9
+ attr_accessor :exp_month
10
+ # Four-digit number representing the gift card's expiration year.
11
+ attr_accessor :exp_year
12
+ # Specifies which fields in the response should be expanded.
13
+ attr_accessor :expand
14
+ # The gift card number.
15
+ attr_accessor :number
16
+ # The gift card PIN.
17
+ attr_accessor :pin
18
+
19
+ def initialize(brand: nil, exp_month: nil, exp_year: nil, expand: nil, number: nil, pin: nil)
20
+ @brand = brand
21
+ @exp_month = exp_month
22
+ @exp_year = exp_year
23
+ @expand = expand
24
+ @number = number
25
+ @pin = pin
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardOperationRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardReloadParams < ::Stripe::RequestParams
6
+ # The amount to add to the gift card balance, in the smallest currency unit.
7
+ attr_accessor :amount
8
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
9
+ attr_accessor :currency
10
+ # Specifies which fields in the response should be expanded.
11
+ attr_accessor :expand
12
+ # The Stripe account ID to process the gift card operation on behalf of.
13
+ attr_accessor :on_behalf_of
14
+
15
+ def initialize(amount: nil, currency: nil, expand: nil, on_behalf_of: nil)
16
+ @amount = amount
17
+ @currency = currency
18
+ @expand = expand
19
+ @on_behalf_of = on_behalf_of
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class GiftCardVoidOperationParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+ # The Stripe account ID to process the gift card operation on behalf of.
9
+ attr_accessor :on_behalf_of
10
+ # The ID of the gift card operation to void.
11
+ attr_accessor :operation
12
+
13
+ def initialize(expand: nil, on_behalf_of: nil, operation: nil)
14
+ @expand = expand
15
+ @on_behalf_of = on_behalf_of
16
+ @operation = operation
17
+ end
18
+ end
19
+ end