stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2
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/event_types.rb +8 -0
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +42 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
- data/lib/stripe/params/setup_intent_create_params.rb +37 -0
- data/lib/stripe/params/setup_intent_update_params.rb +21 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/charge.rb +354 -2
- data/lib/stripe/resources/checkout/session.rb +30 -0
- data/lib/stripe/resources/confirmation_token.rb +84 -0
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/payment_attempt_record.rb +133 -0
- data/lib/stripe/resources/payment_intent.rb +100 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +84 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +133 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services.rb +9 -0
- data/lib/stripe/stripe_event_notification_handler.rb +8 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -1
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe.rbi +4320 -69
- metadata +20 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Extend
|
|
7
|
+
module ObjectDefinitions
|
|
8
|
+
class VersionListParams < ::Stripe::RequestParams
|
|
9
|
+
# Maximum page size.
|
|
10
|
+
attr_accessor :limit
|
|
11
|
+
|
|
12
|
+
def initialize(limit: nil)
|
|
13
|
+
@limit = limit
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/stripe/params.rb
CHANGED
|
@@ -733,6 +733,11 @@ module Stripe
|
|
|
733
733
|
autoload :CalculationLineItemListParams, "stripe/params/tax/calculation_line_item_list_params"
|
|
734
734
|
autoload :CalculationListLineItemsParams, "stripe/params/tax/calculation_list_line_items_params"
|
|
735
735
|
autoload :CalculationRetrieveParams, "stripe/params/tax/calculation_retrieve_params"
|
|
736
|
+
autoload :CertificateCreateParams, "stripe/params/tax/certificate_create_params"
|
|
737
|
+
autoload :CertificateDeleteParams, "stripe/params/tax/certificate_delete_params"
|
|
738
|
+
autoload :CertificateListParams, "stripe/params/tax/certificate_list_params"
|
|
739
|
+
autoload :CertificateRetrieveParams, "stripe/params/tax/certificate_retrieve_params"
|
|
740
|
+
autoload :FormCreateParams, "stripe/params/tax/form_create_params"
|
|
736
741
|
autoload :FormListParams, "stripe/params/tax/form_list_params"
|
|
737
742
|
autoload :FormPdfParams, "stripe/params/tax/form_pdf_params"
|
|
738
743
|
autoload :FormRetrieveParams, "stripe/params/tax/form_retrieve_params"
|
|
@@ -1207,11 +1212,18 @@ module Stripe
|
|
|
1207
1212
|
end
|
|
1208
1213
|
|
|
1209
1214
|
module Extend
|
|
1215
|
+
autoload :ObjectDefinitionListParams, "stripe/params/v2/extend/object_definition_list_params"
|
|
1216
|
+
autoload :ObjectDefinitionRetrieveParams, "stripe/params/v2/extend/object_definition_retrieve_params"
|
|
1210
1217
|
autoload :WorkflowInvokeParams, "stripe/params/v2/extend/workflow_invoke_params"
|
|
1211
1218
|
autoload :WorkflowListParams, "stripe/params/v2/extend/workflow_list_params"
|
|
1212
1219
|
autoload :WorkflowRetrieveParams, "stripe/params/v2/extend/workflow_retrieve_params"
|
|
1213
1220
|
autoload :WorkflowRunListParams, "stripe/params/v2/extend/workflow_run_list_params"
|
|
1214
1221
|
autoload :WorkflowRunRetrieveParams, "stripe/params/v2/extend/workflow_run_retrieve_params"
|
|
1222
|
+
|
|
1223
|
+
module ObjectDefinitions
|
|
1224
|
+
autoload :VersionListParams, "stripe/params/v2/extend/object_definitions/version_list_params"
|
|
1225
|
+
autoload :VersionRetrieveParams, "stripe/params/v2/extend/object_definitions/version_retrieve_params"
|
|
1226
|
+
end
|
|
1215
1227
|
end
|
|
1216
1228
|
|
|
1217
1229
|
module Iam
|
|
@@ -2098,6 +2110,11 @@ module Stripe
|
|
|
2098
2110
|
stripe/params/tax/calculation_line_item_list_params
|
|
2099
2111
|
stripe/params/tax/calculation_list_line_items_params
|
|
2100
2112
|
stripe/params/tax/calculation_retrieve_params
|
|
2113
|
+
stripe/params/tax/certificate_create_params
|
|
2114
|
+
stripe/params/tax/certificate_delete_params
|
|
2115
|
+
stripe/params/tax/certificate_list_params
|
|
2116
|
+
stripe/params/tax/certificate_retrieve_params
|
|
2117
|
+
stripe/params/tax/form_create_params
|
|
2101
2118
|
stripe/params/tax/form_list_params
|
|
2102
2119
|
stripe/params/tax/form_pdf_params
|
|
2103
2120
|
stripe/params/tax/form_retrieve_params
|
|
@@ -2467,6 +2484,10 @@ module Stripe
|
|
|
2467
2484
|
stripe/params/v2/data/reporting/query_run_retrieve_params
|
|
2468
2485
|
stripe/params/v2/data/schema_list_params
|
|
2469
2486
|
stripe/params/v2/data/schema_retrieve_params
|
|
2487
|
+
stripe/params/v2/extend/object_definition_list_params
|
|
2488
|
+
stripe/params/v2/extend/object_definition_retrieve_params
|
|
2489
|
+
stripe/params/v2/extend/object_definitions/version_list_params
|
|
2490
|
+
stripe/params/v2/extend/object_definitions/version_retrieve_params
|
|
2470
2491
|
stripe/params/v2/extend/workflow_invoke_params
|
|
2471
2492
|
stripe/params/v2/extend/workflow_list_params
|
|
2472
2493
|
stripe/params/v2/extend/workflow_retrieve_params
|
|
@@ -393,6 +393,30 @@ module Stripe
|
|
|
393
393
|
end
|
|
394
394
|
end
|
|
395
395
|
|
|
396
|
+
class ExportTaxTransactions < ::Stripe::StripeObject
|
|
397
|
+
class Features < ::Stripe::StripeObject
|
|
398
|
+
def self.inner_class_types
|
|
399
|
+
@inner_class_types = {}
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
def self.field_remappings
|
|
403
|
+
@field_remappings = {}
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
# Whether the embedded component is enabled.
|
|
407
|
+
attr_reader :enabled
|
|
408
|
+
# Attribute for field features
|
|
409
|
+
attr_reader :features
|
|
410
|
+
|
|
411
|
+
def self.inner_class_types
|
|
412
|
+
@inner_class_types = { features: Features }
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
def self.field_remappings
|
|
416
|
+
@field_remappings = {}
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
396
420
|
class FinancialAccount < ::Stripe::StripeObject
|
|
397
421
|
class Features < ::Stripe::StripeObject
|
|
398
422
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
@@ -938,6 +962,30 @@ module Stripe
|
|
|
938
962
|
end
|
|
939
963
|
end
|
|
940
964
|
|
|
965
|
+
class ProductTaxCodeSelector < ::Stripe::StripeObject
|
|
966
|
+
class Features < ::Stripe::StripeObject
|
|
967
|
+
def self.inner_class_types
|
|
968
|
+
@inner_class_types = {}
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
def self.field_remappings
|
|
972
|
+
@field_remappings = {}
|
|
973
|
+
end
|
|
974
|
+
end
|
|
975
|
+
# Whether the embedded component is enabled.
|
|
976
|
+
attr_reader :enabled
|
|
977
|
+
# Attribute for field features
|
|
978
|
+
attr_reader :features
|
|
979
|
+
|
|
980
|
+
def self.inner_class_types
|
|
981
|
+
@inner_class_types = { features: Features }
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
def self.field_remappings
|
|
985
|
+
@field_remappings = {}
|
|
986
|
+
end
|
|
987
|
+
end
|
|
988
|
+
|
|
941
989
|
class RecipientsList < ::Stripe::StripeObject
|
|
942
990
|
class Features < ::Stripe::StripeObject
|
|
943
991
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
|
|
@@ -1039,6 +1087,30 @@ module Stripe
|
|
|
1039
1087
|
end
|
|
1040
1088
|
end
|
|
1041
1089
|
|
|
1090
|
+
class TaxThresholdMonitoring < ::Stripe::StripeObject
|
|
1091
|
+
class Features < ::Stripe::StripeObject
|
|
1092
|
+
def self.inner_class_types
|
|
1093
|
+
@inner_class_types = {}
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
def self.field_remappings
|
|
1097
|
+
@field_remappings = {}
|
|
1098
|
+
end
|
|
1099
|
+
end
|
|
1100
|
+
# Whether the embedded component is enabled.
|
|
1101
|
+
attr_reader :enabled
|
|
1102
|
+
# Attribute for field features
|
|
1103
|
+
attr_reader :features
|
|
1104
|
+
|
|
1105
|
+
def self.inner_class_types
|
|
1106
|
+
@inner_class_types = { features: Features }
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
def self.field_remappings
|
|
1110
|
+
@field_remappings = {}
|
|
1111
|
+
end
|
|
1112
|
+
end
|
|
1113
|
+
|
|
1042
1114
|
class TerminalHardwareOrders < ::Stripe::StripeObject
|
|
1043
1115
|
class Features < ::Stripe::StripeObject
|
|
1044
1116
|
def self.inner_class_types
|
|
@@ -1114,6 +1186,8 @@ module Stripe
|
|
|
1114
1186
|
attr_reader :disputes_list
|
|
1115
1187
|
# Attribute for field documents
|
|
1116
1188
|
attr_reader :documents
|
|
1189
|
+
# Attribute for field export_tax_transactions
|
|
1190
|
+
attr_reader :export_tax_transactions
|
|
1117
1191
|
# Attribute for field financial_account
|
|
1118
1192
|
attr_reader :financial_account
|
|
1119
1193
|
# Configuration for the [financial account rewards](/connect/supported-embedded-components/financial-account-rewards/) embedded component.
|
|
@@ -1150,6 +1224,8 @@ module Stripe
|
|
|
1150
1224
|
attr_reader :payouts
|
|
1151
1225
|
# Attribute for field payouts_list
|
|
1152
1226
|
attr_reader :payouts_list
|
|
1227
|
+
# Attribute for field product_tax_code_selector
|
|
1228
|
+
attr_reader :product_tax_code_selector
|
|
1153
1229
|
# Configuration for the [recipients list](/connect/supported-embedded-components/recipients-list/) embedded component.
|
|
1154
1230
|
attr_reader :recipients_list
|
|
1155
1231
|
# Attribute for field reporting_chart
|
|
@@ -1158,6 +1234,8 @@ module Stripe
|
|
|
1158
1234
|
attr_reader :tax_registrations
|
|
1159
1235
|
# Attribute for field tax_settings
|
|
1160
1236
|
attr_reader :tax_settings
|
|
1237
|
+
# Attribute for field tax_threshold_monitoring
|
|
1238
|
+
attr_reader :tax_threshold_monitoring
|
|
1161
1239
|
# Attribute for field terminal_hardware_orders
|
|
1162
1240
|
attr_reader :terminal_hardware_orders
|
|
1163
1241
|
# Attribute for field terminal_hardware_shop
|
|
@@ -1179,6 +1257,7 @@ module Stripe
|
|
|
1179
1257
|
check_scanning: CheckScanning,
|
|
1180
1258
|
disputes_list: DisputesList,
|
|
1181
1259
|
documents: Documents,
|
|
1260
|
+
export_tax_transactions: ExportTaxTransactions,
|
|
1182
1261
|
financial_account: FinancialAccount,
|
|
1183
1262
|
financial_account_rewards: FinancialAccountRewards,
|
|
1184
1263
|
financial_account_transactions: FinancialAccountTransactions,
|
|
@@ -1197,10 +1276,12 @@ module Stripe
|
|
|
1197
1276
|
payout_reconciliation_report: PayoutReconciliationReport,
|
|
1198
1277
|
payouts: Payouts,
|
|
1199
1278
|
payouts_list: PayoutsList,
|
|
1279
|
+
product_tax_code_selector: ProductTaxCodeSelector,
|
|
1200
1280
|
recipients_list: RecipientsList,
|
|
1201
1281
|
reporting_chart: ReportingChart,
|
|
1202
1282
|
tax_registrations: TaxRegistrations,
|
|
1203
1283
|
tax_settings: TaxSettings,
|
|
1284
|
+
tax_threshold_monitoring: TaxThresholdMonitoring,
|
|
1204
1285
|
terminal_hardware_orders: TerminalHardwareOrders,
|
|
1205
1286
|
terminal_hardware_shop: TerminalHardwareShop,
|
|
1206
1287
|
}
|
|
@@ -81,7 +81,7 @@ module Stripe
|
|
|
81
81
|
# The status of the app install.
|
|
82
82
|
attr_reader :status
|
|
83
83
|
|
|
84
|
-
# Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
|
|
84
|
+
# Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned.
|
|
85
85
|
def self.create(params = {}, opts = {})
|
|
86
86
|
request_stripe_object(method: :post, path: "/v1/apps/installs", params: params, opts: opts)
|
|
87
87
|
end
|