stripe 20.2.0.pre.alpha.1 → 20.2.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.
- checksums.yaml +4 -4
- data/lib/stripe/event_types.rb +28 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- 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/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +46 -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/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- 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 +58 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -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 +42 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- 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 +19 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
- data/lib/stripe/params/setup_intent_create_params.rb +50 -1
- data/lib/stripe/params/setup_intent_update_params.rb +34 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -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/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +27 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +373 -5
- data/lib/stripe/resources/checkout/session.rb +32 -0
- data/lib/stripe/resources/confirmation_token.rb +103 -3
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +151 -2
- data/lib/stripe/resources/payment_intent.rb +126 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +103 -3
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +151 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +21 -2
- data/lib/stripe/resources/setup_intent.rb +38 -2
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- 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/terminal/reader.rb +18 -1
- 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/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -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/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- 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/core/vault/network_token_service.rb +1 -0
- 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/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_event_notification_handler.rb +28 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +5856 -213
- metadata +32 -2
|
@@ -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
|
|
@@ -46,7 +46,7 @@ module Stripe
|
|
|
46
46
|
attr_reader :currency
|
|
47
47
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
48
48
|
attr_reader :description
|
|
49
|
-
#
|
|
49
|
+
# The exchange rate used for this transaction, if applicable. Multiplying the source `amount` by the `exchange_rate` gives the destination `amount`, both in their currencies' smallest units. For example, `1000` EUR cents converts to `1234` USD cents at `1.234`. For a zero-decimal currency such as JPY, `1000` JPY converts to `640` USD cents (6.40 USD) at `0.64`, equivalent to `0.0064` USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents.
|
|
50
50
|
attr_reader :exchange_rate
|
|
51
51
|
# Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
|
|
52
52
|
attr_reader :fee
|