stripe 10.9.0.pre.beta.1 → 10.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -275
- data/Gemfile +3 -0
- data/Makefile +7 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/VERSION +1 -1
- data/bin/tapioca +27 -0
- data/lib/stripe/api_operations/request.rb +1 -2
- data/lib/stripe/api_resource.rb +10 -1
- data/lib/stripe/api_resource_test_helpers.rb +6 -2
- data/lib/stripe/api_version.rb +0 -1
- data/lib/stripe/list_object.rb +3 -0
- data/lib/stripe/object_types.rb +120 -141
- data/lib/stripe/resources/account.rb +6 -4
- data/lib/stripe/resources/account_link.rb +3 -0
- data/lib/stripe/resources/account_session.rb +3 -0
- data/lib/stripe/resources/apple_pay_domain.rb +3 -0
- data/lib/stripe/resources/application_fee.rb +3 -0
- data/lib/stripe/resources/application_fee_refund.rb +3 -0
- data/lib/stripe/resources/apps/secret.rb +3 -0
- data/lib/stripe/resources/balance.rb +3 -0
- data/lib/stripe/resources/balance_transaction.rb +3 -0
- data/lib/stripe/resources/bank_account.rb +3 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +3 -0
- data/lib/stripe/resources/billing_portal/session.rb +3 -0
- data/lib/stripe/resources/capability.rb +3 -0
- data/lib/stripe/resources/card.rb +3 -0
- data/lib/stripe/resources/cash_balance.rb +3 -0
- data/lib/stripe/resources/charge.rb +3 -0
- data/lib/stripe/resources/checkout/session.rb +3 -0
- data/lib/stripe/resources/climate/order.rb +3 -0
- data/lib/stripe/resources/climate/product.rb +3 -0
- data/lib/stripe/resources/climate/supplier.rb +3 -0
- data/lib/stripe/resources/country_spec.rb +3 -0
- data/lib/stripe/resources/coupon.rb +3 -0
- data/lib/stripe/resources/credit_note.rb +3 -0
- data/lib/stripe/resources/credit_note_line_item.rb +3 -0
- data/lib/stripe/resources/customer.rb +7 -13
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_session.rb +3 -0
- data/lib/stripe/resources/discount.rb +3 -0
- data/lib/stripe/resources/dispute.rb +3 -0
- data/lib/stripe/resources/ephemeral_key.rb +3 -0
- data/lib/stripe/resources/event.rb +3 -0
- data/lib/stripe/resources/exchange_rate.rb +3 -0
- data/lib/stripe/resources/file.rb +6 -0
- data/lib/stripe/resources/file_link.rb +3 -0
- data/lib/stripe/resources/financial_connections/account.rb +3 -3
- data/lib/stripe/resources/financial_connections/account_owner.rb +3 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +3 -0
- data/lib/stripe/resources/financial_connections/session.rb +3 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +3 -0
- data/lib/stripe/resources/funding_instructions.rb +3 -0
- data/lib/stripe/resources/identity/verification_report.rb +3 -0
- data/lib/stripe/resources/identity/verification_session.rb +3 -0
- data/lib/stripe/resources/invoice.rb +2 -52
- data/lib/stripe/resources/invoice_item.rb +3 -0
- data/lib/stripe/resources/invoice_line_item.rb +3 -0
- data/lib/stripe/resources/issuing/authorization.rb +6 -0
- data/lib/stripe/resources/issuing/card.rb +6 -0
- data/lib/stripe/resources/issuing/cardholder.rb +3 -0
- data/lib/stripe/resources/issuing/dispute.rb +3 -0
- data/lib/stripe/resources/issuing/token.rb +3 -0
- data/lib/stripe/resources/issuing/transaction.rb +6 -0
- data/lib/stripe/resources/line_item.rb +3 -0
- data/lib/stripe/resources/login_link.rb +3 -0
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +5 -4
- data/lib/stripe/resources/payment_link.rb +3 -0
- data/lib/stripe/resources/payment_method.rb +3 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3 -0
- data/lib/stripe/resources/payment_method_domain.rb +3 -0
- data/lib/stripe/resources/payout.rb +3 -0
- data/lib/stripe/resources/person.rb +3 -0
- data/lib/stripe/resources/plan.rb +3 -0
- data/lib/stripe/resources/price.rb +3 -0
- data/lib/stripe/resources/product.rb +3 -0
- data/lib/stripe/resources/promotion_code.rb +3 -0
- data/lib/stripe/resources/quote.rb +3 -104
- data/lib/stripe/resources/radar/early_fraud_warning.rb +3 -0
- data/lib/stripe/resources/radar/value_list.rb +3 -0
- data/lib/stripe/resources/radar/value_list_item.rb +3 -0
- data/lib/stripe/resources/refund.rb +6 -0
- data/lib/stripe/resources/reporting/report_run.rb +3 -0
- data/lib/stripe/resources/reporting/report_type.rb +3 -0
- data/lib/stripe/resources/reversal.rb +3 -0
- data/lib/stripe/resources/review.rb +3 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +3 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -0
- data/lib/stripe/resources/source.rb +3 -0
- data/lib/stripe/resources/source_transaction.rb +3 -0
- data/lib/stripe/resources/subscription.rb +3 -0
- data/lib/stripe/resources/subscription_item.rb +3 -0
- data/lib/stripe/resources/subscription_schedule.rb +2 -19
- data/lib/stripe/resources/tax/calculation.rb +3 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
- data/lib/stripe/resources/tax/registration.rb +3 -0
- data/lib/stripe/resources/tax/settings.rb +3 -0
- data/lib/stripe/resources/tax/transaction.rb +3 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
- data/lib/stripe/resources/tax_code.rb +3 -0
- data/lib/stripe/resources/tax_id.rb +5 -4
- data/lib/stripe/resources/tax_rate.rb +3 -0
- data/lib/stripe/resources/terminal/configuration.rb +3 -0
- data/lib/stripe/resources/terminal/connection_token.rb +3 -0
- data/lib/stripe/resources/terminal/location.rb +3 -0
- data/lib/stripe/resources/terminal/reader.rb +6 -60
- data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
- data/lib/stripe/resources/token.rb +3 -0
- data/lib/stripe/resources/topup.rb +3 -0
- data/lib/stripe/resources/transfer.rb +3 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/received_credit.rb +6 -0
- data/lib/stripe/resources/treasury/received_debit.rb +6 -0
- data/lib/stripe/resources/treasury/transaction.rb +3 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +3 -0
- data/lib/stripe/resources/usage_record.rb +3 -0
- data/lib/stripe/resources/usage_record_summary.rb +3 -0
- data/lib/stripe/resources/webhook_endpoint.rb +3 -0
- data/lib/stripe/resources.rb +0 -22
- data/lib/stripe/search_result_object.rb +3 -0
- data/lib/stripe/singleton_api_resource.rb +1 -1
- data/lib/stripe/stripe_client.rb +28 -62
- data/lib/stripe/stripe_configuration.rb +1 -2
- data/lib/stripe/util.rb +1 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/coveralls_reborn.rbi +3 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
- data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +19 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/mocha@1.16.1.rbi +11 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +9454 -0
- data/sorbet/rbi/gems/power_assert@2.0.3.rbi +414 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10085 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +931 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5193 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +2884 -0
- data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3766 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4887 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7004 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56919 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +555 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +8 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.17.rbi +3503 -0
- data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
- data/sorbet/rbi/gems/test-unit@3.6.1.rbi +4403 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1740 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +61 -27
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -29
- data/lib/stripe/resources/capital/financing_offer.rb +0 -46
- data/lib/stripe/resources/capital/financing_summary.rb +0 -12
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
- data/lib/stripe/resources/confirmation_token.rb +0 -13
- data/lib/stripe/resources/customer_entitlement.rb +0 -9
- data/lib/stripe/resources/customer_entitlement_summary.rb +0 -9
- data/lib/stripe/resources/entitlements/event.rb +0 -23
- data/lib/stripe/resources/entitlements/feature.rb +0 -35
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -11
- data/lib/stripe/resources/gift_cards/card.rb +0 -56
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -90
- data/lib/stripe/resources/invoice_payment.rb +0 -9
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -85
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -113
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -23
- data/lib/stripe/resources/margin.rb +0 -34
- data/lib/stripe/resources/order.rb +0 -117
- data/lib/stripe/resources/quote_phase.rb +0 -36
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -40
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -8
- data/lib/stripe/resources/tax/form.rb +0 -46
@@ -0,0 +1,161 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `racc` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem racc`.
|
6
|
+
|
7
|
+
# source://racc//lib/racc/parser.rb#23
|
8
|
+
ParseError = Racc::ParseError
|
9
|
+
|
10
|
+
# source://racc//lib/racc/info.rb#17
|
11
|
+
Racc::Copyright = T.let(T.unsafe(nil), String)
|
12
|
+
|
13
|
+
# source://racc//lib/racc/parser.rb#188
|
14
|
+
class Racc::Parser
|
15
|
+
# source://racc//lib/racc/parser.rb#283
|
16
|
+
def _racc_do_parse_rb(arg, in_debug); end
|
17
|
+
|
18
|
+
# source://racc//lib/racc/parser.rb#483
|
19
|
+
def _racc_do_reduce(arg, act); end
|
20
|
+
|
21
|
+
# common
|
22
|
+
#
|
23
|
+
# source://racc//lib/racc/parser.rb#386
|
24
|
+
def _racc_evalact(act, arg); end
|
25
|
+
|
26
|
+
# source://racc//lib/racc/parser.rb#236
|
27
|
+
def _racc_init_sysvars; end
|
28
|
+
|
29
|
+
# source://racc//lib/racc/parser.rb#224
|
30
|
+
def _racc_setup; end
|
31
|
+
|
32
|
+
# source://racc//lib/racc/parser.rb#333
|
33
|
+
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
|
34
|
+
|
35
|
+
# source://racc//lib/racc/parser.rb#266
|
36
|
+
def do_parse; end
|
37
|
+
|
38
|
+
# The method to fetch next token.
|
39
|
+
# If you use #do_parse method, you must implement #next_token.
|
40
|
+
#
|
41
|
+
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
42
|
+
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
43
|
+
# for 'IDENT'. ";" (String) for ';'.
|
44
|
+
#
|
45
|
+
# The final symbol (End of file) must be false.
|
46
|
+
#
|
47
|
+
# @raise [NotImplementedError]
|
48
|
+
#
|
49
|
+
# source://racc//lib/racc/parser.rb#279
|
50
|
+
def next_token; end
|
51
|
+
|
52
|
+
# This method is called when a parse error is found.
|
53
|
+
#
|
54
|
+
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
55
|
+
# You can get string representation of this ID by calling
|
56
|
+
# #token_to_str.
|
57
|
+
#
|
58
|
+
# ERROR_VALUE is a value of error token.
|
59
|
+
#
|
60
|
+
# value_stack is a stack of symbol values.
|
61
|
+
# DO NOT MODIFY this object.
|
62
|
+
#
|
63
|
+
# This method raises ParseError by default.
|
64
|
+
#
|
65
|
+
# If this method returns, parsers enter "error recovering mode".
|
66
|
+
#
|
67
|
+
# @raise [ParseError]
|
68
|
+
#
|
69
|
+
# source://racc//lib/racc/parser.rb#539
|
70
|
+
def on_error(t, val, vstack); end
|
71
|
+
|
72
|
+
# source://racc//lib/racc/parser.rb#588
|
73
|
+
def racc_accept; end
|
74
|
+
|
75
|
+
# source://racc//lib/racc/parser.rb#593
|
76
|
+
def racc_e_pop(state, tstack, vstack); end
|
77
|
+
|
78
|
+
# source://racc//lib/racc/parser.rb#600
|
79
|
+
def racc_next_state(curstate, state); end
|
80
|
+
|
81
|
+
# source://racc//lib/racc/parser.rb#606
|
82
|
+
def racc_print_stacks(t, v); end
|
83
|
+
|
84
|
+
# source://racc//lib/racc/parser.rb#615
|
85
|
+
def racc_print_states(s); end
|
86
|
+
|
87
|
+
# For debugging output
|
88
|
+
#
|
89
|
+
# source://racc//lib/racc/parser.rb#562
|
90
|
+
def racc_read_token(t, tok, val); end
|
91
|
+
|
92
|
+
# source://racc//lib/racc/parser.rb#575
|
93
|
+
def racc_reduce(toks, sim, tstack, vstack); end
|
94
|
+
|
95
|
+
# source://racc//lib/racc/parser.rb#569
|
96
|
+
def racc_shift(tok, tstack, vstack); end
|
97
|
+
|
98
|
+
# source://racc//lib/racc/parser.rb#622
|
99
|
+
def racc_token2str(tok); end
|
100
|
+
|
101
|
+
# Convert internal ID of token symbol to the string.
|
102
|
+
#
|
103
|
+
# source://racc//lib/racc/parser.rb#628
|
104
|
+
def token_to_str(t); end
|
105
|
+
|
106
|
+
# Exit parser.
|
107
|
+
# Return value is +Symbol_Value_Stack[0]+.
|
108
|
+
#
|
109
|
+
# source://racc//lib/racc/parser.rb#552
|
110
|
+
def yyaccept; end
|
111
|
+
|
112
|
+
# Leave error recovering mode.
|
113
|
+
#
|
114
|
+
# source://racc//lib/racc/parser.rb#557
|
115
|
+
def yyerrok; end
|
116
|
+
|
117
|
+
# Enter error recovering mode.
|
118
|
+
# This method does not call #on_error.
|
119
|
+
#
|
120
|
+
# source://racc//lib/racc/parser.rb#546
|
121
|
+
def yyerror; end
|
122
|
+
|
123
|
+
# source://racc//lib/racc/parser.rb#328
|
124
|
+
def yyparse(recv, mid); end
|
125
|
+
|
126
|
+
class << self
|
127
|
+
# source://racc//lib/racc/parser.rb#220
|
128
|
+
def racc_runtime_type; end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# source://racc//lib/racc/parser.rb#209
|
133
|
+
Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
|
134
|
+
|
135
|
+
Racc::Parser::Racc_Runtime_Core_Id_C = T.let(T.unsafe(nil), String)
|
136
|
+
|
137
|
+
# source://racc//lib/racc/parser.rb#211
|
138
|
+
Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
|
139
|
+
|
140
|
+
Racc::Parser::Racc_Runtime_Core_Version_C = T.let(T.unsafe(nil), String)
|
141
|
+
|
142
|
+
# source://racc//lib/racc/parser.rb#191
|
143
|
+
Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
|
144
|
+
|
145
|
+
# source://racc//lib/racc/parser.rb#212
|
146
|
+
Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
|
147
|
+
|
148
|
+
# source://racc//lib/racc/parser.rb#190
|
149
|
+
Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
|
150
|
+
|
151
|
+
# source://racc//lib/racc/parser.rb#210
|
152
|
+
Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
|
153
|
+
|
154
|
+
# source://racc//lib/racc/parser.rb#185
|
155
|
+
Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
|
156
|
+
|
157
|
+
# source://racc//lib/racc/info.rb#15
|
158
|
+
Racc::VERSION = T.let(T.unsafe(nil), String)
|
159
|
+
|
160
|
+
# source://racc//lib/racc/info.rb#16
|
161
|
+
Racc::Version = T.let(T.unsafe(nil), String)
|