stripe 19.3.0.pre.alpha.2 → 19.3.0.pre.alpha.4
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.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +31 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/charge_capture_params.rb +0 -169
- data/lib/stripe/params/charge_update_params.rb +0 -169
- data/lib/stripe/params/checkout/session_create_params.rb +13 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/gift_card_activate_params.rb +30 -0
- data/lib/stripe/params/gift_card_cashout_params.rb +16 -0
- data/lib/stripe/params/gift_card_check_balance_params.rb +16 -0
- data/lib/stripe/params/gift_card_create_params.rb +28 -0
- data/lib/stripe/params/gift_card_operation_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_reload_params.rb +22 -0
- data/lib/stripe/params/gift_card_retrieve_params.rb +13 -0
- data/lib/stripe/params/gift_card_void_operation_params.rb +19 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +22 -1
- data/lib/stripe/params/order_create_params.rb +4 -1
- data/lib/stripe/params/order_update_params.rb +4 -1
- data/lib/stripe/params/payment_attempt_record_report_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_attempt_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -169
- data/lib/stripe/params/payment_intent_confirm_params.rb +197 -211
- data/lib/stripe/params/payment_intent_create_params.rb +197 -211
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +19 -0
- data/lib/stripe/params/payment_intent_update_params.rb +197 -211
- data/lib/stripe/params/payment_method_create_params.rb +5 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +10 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +38 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +27 -1
- data/lib/stripe/params/payment_record_report_refund_params.rb +20 -0
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +38 -4
- data/lib/stripe/params/radar/customer_evaluation_create_params.rb +19 -2
- data/lib/stripe/params/radar/customer_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/refund_list_params.rb +8 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +5 -0
- data/lib/stripe/params/setup_intent_create_params.rb +5 -0
- data/lib/stripe/params/setup_intent_update_params.rb +5 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +42 -0
- data/lib/stripe/params/tax_fund_list_params.rb +42 -0
- data/lib/stripe/params/tax_fund_retrieve_params.rb +13 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +5 -0
- data/lib/stripe/params/v2/billing/contract_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +1 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +1620 -81
- data/lib/stripe/params/v2/core/account_update_params.rb +1620 -81
- data/lib/stripe/params.rb +25 -0
- data/lib/stripe/resources/account_session.rb +2 -0
- data/lib/stripe/resources/charge.rb +49 -3
- data/lib/stripe/resources/checkout/session.rb +16 -2
- data/lib/stripe/resources/confirmation_token.rb +29 -2
- data/lib/stripe/resources/gift_card.rb +146 -0
- data/lib/stripe/resources/gift_card_operation.rb +289 -0
- data/lib/stripe/resources/issuing/authorization.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +24 -0
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/mandate.rb +18 -0
- data/lib/stripe/resources/order.rb +2 -0
- data/lib/stripe/resources/payment_attempt_record.rb +83 -1
- data/lib/stripe/resources/payment_intent.rb +281 -82
- data/lib/stripe/resources/payment_method.rb +29 -2
- data/lib/stripe/resources/payment_record.rb +83 -1
- data/lib/stripe/resources/product.rb +32 -0
- data/lib/stripe/resources/setup_intent.rb +18 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +13 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +41 -1
- data/lib/stripe/resources/tax/transaction_line_item.rb +41 -1
- data/lib/stripe/resources/tax_fund.rb +179 -0
- data/lib/stripe/resources/v2/core/account.rb +11540 -326
- data/lib/stripe/resources/v2/core/fee_batch.rb +86 -3
- data/lib/stripe/resources/v2/core/fee_entry.rb +40 -2
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources.rb +6 -0
- data/lib/stripe/services/gift_card_operation_service.rb +17 -0
- data/lib/stripe/services/gift_card_service.rb +77 -0
- data/lib/stripe/services/payment_intent_service.rb +11 -0
- data/lib/stripe/services/radar/customer_evaluation_service.rb +11 -0
- data/lib/stripe/services/tax_fund_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +4 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
- data/lib/stripe/services.rb +6 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +19043 -2521
- metadata +23 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2eb96bb7744d73267612e216f61c240873c83e409b782f0011fcec3c1be8dcf2
|
|
4
|
+
data.tar.gz: 62978eb5bff3b925480f19781a019d5c387ec119b26eb4238af30e40d2e338e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bef31833bb0c2883af7d915d5c754fb93f0ee03bec23208de2ce710bb71a2ecd43ec35121365bf253180f065017a40856d2bdb50e44c001e63656e9655ec098
|
|
7
|
+
data.tar.gz: bd157ce91d3030cb2dbbf04e0459606cb73a3918953420517d4c9add76718941eaa1b472b95879d1c7c5ffa8c50bf7519a14a7b85e2471109ad618883320218b
|
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -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
|
-
|
|
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?
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
|
@@ -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
|
|
@@ -541,6 +541,15 @@ module Stripe
|
|
|
541
541
|
end
|
|
542
542
|
end
|
|
543
543
|
|
|
544
|
+
class Item < ::Stripe::RequestParams
|
|
545
|
+
# The type of item.
|
|
546
|
+
attr_accessor :type
|
|
547
|
+
|
|
548
|
+
def initialize(type: nil)
|
|
549
|
+
@type = type
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
544
553
|
class LineItem < ::Stripe::RequestParams
|
|
545
554
|
class AdjustableQuantity < ::Stripe::RequestParams
|
|
546
555
|
# Set to true if the quantity can be adjusted to any non-negative integer.
|
|
@@ -2709,6 +2718,8 @@ module Stripe
|
|
|
2709
2718
|
attr_accessor :integration_identifier
|
|
2710
2719
|
# Generate a post-purchase Invoice for one-time payments.
|
|
2711
2720
|
attr_accessor :invoice_creation
|
|
2721
|
+
# A list of items the customer will purchase.
|
|
2722
|
+
attr_accessor :items
|
|
2712
2723
|
# A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
|
|
2713
2724
|
#
|
|
2714
2725
|
# For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
|
|
@@ -2843,6 +2854,7 @@ module Stripe
|
|
|
2843
2854
|
expires_at: nil,
|
|
2844
2855
|
integration_identifier: nil,
|
|
2845
2856
|
invoice_creation: nil,
|
|
2857
|
+
items: nil,
|
|
2846
2858
|
line_items: nil,
|
|
2847
2859
|
locale: nil,
|
|
2848
2860
|
managed_payments: nil,
|
|
@@ -2899,6 +2911,7 @@ module Stripe
|
|
|
2899
2911
|
@expires_at = expires_at
|
|
2900
2912
|
@integration_identifier = integration_identifier
|
|
2901
2913
|
@invoice_creation = invoice_creation
|
|
2914
|
+
@items = items
|
|
2902
2915
|
@line_items = line_items
|
|
2903
2916
|
@locale = locale
|
|
2904
2917
|
@managed_payments = managed_payments
|
|
@@ -348,6 +348,7 @@ module Stripe
|
|
|
348
348
|
|
|
349
349
|
class Sunbit < ::Stripe::RequestParams; end
|
|
350
350
|
class Swish < ::Stripe::RequestParams; end
|
|
351
|
+
class Tamara < ::Stripe::RequestParams; end
|
|
351
352
|
class Twint < ::Stripe::RequestParams; end
|
|
352
353
|
|
|
353
354
|
class Upi < ::Stripe::RequestParams
|
|
@@ -529,6 +530,8 @@ module Stripe
|
|
|
529
530
|
attr_accessor :sunbit
|
|
530
531
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
531
532
|
attr_accessor :swish
|
|
533
|
+
# If this is a `tamara` PaymentMethod, this hash contains details about the Tamara payment method.
|
|
534
|
+
attr_accessor :tamara
|
|
532
535
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
533
536
|
attr_accessor :twint
|
|
534
537
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
@@ -605,6 +608,7 @@ module Stripe
|
|
|
605
608
|
stripe_balance: nil,
|
|
606
609
|
sunbit: nil,
|
|
607
610
|
swish: nil,
|
|
611
|
+
tamara: nil,
|
|
608
612
|
twint: nil,
|
|
609
613
|
type: nil,
|
|
610
614
|
upi: nil,
|
|
@@ -674,6 +678,7 @@ module Stripe
|
|
|
674
678
|
@stripe_balance = stripe_balance
|
|
675
679
|
@sunbit = sunbit
|
|
676
680
|
@swish = swish
|
|
681
|
+
@tamara = tamara
|
|
677
682
|
@twint = twint
|
|
678
683
|
@type = type
|
|
679
684
|
@upi = upi
|
|
@@ -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
|