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
|
@@ -83,6 +83,21 @@ module Stripe
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
class Bizum < ::Stripe::StripeObject
|
|
87
|
+
# The reference assigned to the refund.
|
|
88
|
+
attr_reader :reference
|
|
89
|
+
# Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
90
|
+
attr_reader :reference_status
|
|
91
|
+
|
|
92
|
+
def self.inner_class_types
|
|
93
|
+
@inner_class_types = {}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.field_remappings
|
|
97
|
+
@field_remappings = {}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
86
101
|
class Blik < ::Stripe::StripeObject
|
|
87
102
|
# For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
|
|
88
103
|
attr_reader :network_decline_code
|
|
@@ -451,6 +466,21 @@ module Stripe
|
|
|
451
466
|
end
|
|
452
467
|
end
|
|
453
468
|
|
|
469
|
+
class Upi < ::Stripe::StripeObject
|
|
470
|
+
# The reference assigned to the refund.
|
|
471
|
+
attr_reader :reference
|
|
472
|
+
# Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
473
|
+
attr_reader :reference_status
|
|
474
|
+
|
|
475
|
+
def self.inner_class_types
|
|
476
|
+
@inner_class_types = {}
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
def self.field_remappings
|
|
480
|
+
@field_remappings = {}
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
454
484
|
class UsBankTransfer < ::Stripe::StripeObject
|
|
455
485
|
# The reference assigned to the refund.
|
|
456
486
|
attr_reader :reference
|
|
@@ -497,6 +527,8 @@ module Stripe
|
|
|
497
527
|
attr_reader :amazon_pay
|
|
498
528
|
# Attribute for field au_bank_transfer
|
|
499
529
|
attr_reader :au_bank_transfer
|
|
530
|
+
# Attribute for field bizum
|
|
531
|
+
attr_reader :bizum
|
|
500
532
|
# Attribute for field blik
|
|
501
533
|
attr_reader :blik
|
|
502
534
|
# Attribute for field br_bank_transfer
|
|
@@ -555,6 +587,8 @@ module Stripe
|
|
|
555
587
|
attr_reader :twint
|
|
556
588
|
# The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction.
|
|
557
589
|
attr_reader :type
|
|
590
|
+
# Attribute for field upi
|
|
591
|
+
attr_reader :upi
|
|
558
592
|
# Attribute for field us_bank_transfer
|
|
559
593
|
attr_reader :us_bank_transfer
|
|
560
594
|
# Attribute for field wechat_pay
|
|
@@ -570,6 +604,7 @@ module Stripe
|
|
|
570
604
|
alma: Alma,
|
|
571
605
|
amazon_pay: AmazonPay,
|
|
572
606
|
au_bank_transfer: AuBankTransfer,
|
|
607
|
+
bizum: Bizum,
|
|
573
608
|
blik: Blik,
|
|
574
609
|
br_bank_transfer: BrBankTransfer,
|
|
575
610
|
card: Card,
|
|
@@ -598,6 +633,7 @@ module Stripe
|
|
|
598
633
|
swish: Swish,
|
|
599
634
|
th_bank_transfer: ThBankTransfer,
|
|
600
635
|
twint: Twint,
|
|
636
|
+
upi: Upi,
|
|
601
637
|
us_bank_transfer: UsBankTransfer,
|
|
602
638
|
wechat_pay: WechatPay,
|
|
603
639
|
zip: Zip,
|
|
@@ -702,6 +738,8 @@ module Stripe
|
|
|
702
738
|
attr_reader :payment_intent
|
|
703
739
|
# ID of the payment method associated with this refund.
|
|
704
740
|
attr_reader :payment_method
|
|
741
|
+
# ID of the PaymentRecord associated with the payment that has been refunded.
|
|
742
|
+
attr_reader :payment_record
|
|
705
743
|
# Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`.
|
|
706
744
|
attr_reader :pending_reason
|
|
707
745
|
# Attribute for field presentment_details
|
|
@@ -35,6 +35,8 @@ module Stripe
|
|
|
35
35
|
attr_reader :payout
|
|
36
36
|
# Category of balance transactions to be included in the report run.
|
|
37
37
|
attr_reader :reporting_category
|
|
38
|
+
# The tax invoice month in YYYY-MM format.
|
|
39
|
+
attr_reader :tax_invoice_month
|
|
38
40
|
# Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
|
|
39
41
|
attr_reader :timezone
|
|
40
42
|
|
|
@@ -385,6 +385,9 @@ module Stripe
|
|
|
385
385
|
end
|
|
386
386
|
|
|
387
387
|
class Paypay < ::Stripe::StripeObject
|
|
388
|
+
# Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
|
|
389
|
+
attr_reader :fingerprint
|
|
390
|
+
|
|
388
391
|
def self.inner_class_types
|
|
389
392
|
@inner_class_types = {}
|
|
390
393
|
end
|
|
@@ -255,7 +255,7 @@ module Stripe
|
|
|
255
255
|
end
|
|
256
256
|
|
|
257
257
|
class VerifyWithMicrodeposits < ::Stripe::StripeObject
|
|
258
|
-
# The timestamp when the microdeposits are expected to land.
|
|
258
|
+
# The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
|
|
259
259
|
attr_reader :arrival_date
|
|
260
260
|
# The URL for the hosted verification page, which allows customers to verify their bank account.
|
|
261
261
|
attr_reader :hosted_verification_url
|
|
@@ -845,6 +845,21 @@ module Stripe
|
|
|
845
845
|
end
|
|
846
846
|
end
|
|
847
847
|
|
|
848
|
+
class RadarOptions < ::Stripe::StripeObject
|
|
849
|
+
# The value you provided for whether this transaction starts a free trial. This is null if you haven't explicitly set it.
|
|
850
|
+
attr_reader :is_free_trial_transaction
|
|
851
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
852
|
+
attr_reader :session
|
|
853
|
+
|
|
854
|
+
def self.inner_class_types
|
|
855
|
+
@inner_class_types = {}
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
def self.field_remappings
|
|
859
|
+
@field_remappings = {}
|
|
860
|
+
end
|
|
861
|
+
end
|
|
862
|
+
|
|
848
863
|
class Redaction < ::Stripe::StripeObject
|
|
849
864
|
# Indicates whether this object and its related objects have been redacted or not.
|
|
850
865
|
attr_reader :status
|
|
@@ -960,6 +975,8 @@ module Stripe
|
|
|
960
975
|
attr_reader :payment_method_options
|
|
961
976
|
# The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
962
977
|
attr_reader :payment_method_types
|
|
978
|
+
# Options to configure Radar.
|
|
979
|
+
attr_reader :radar_options
|
|
963
980
|
# Redaction status of this SetupIntent. If the SetupIntent isn't redacted, this field is null.
|
|
964
981
|
attr_reader :redaction
|
|
965
982
|
# Attribute for field setup_details
|
|
@@ -1094,6 +1111,7 @@ module Stripe
|
|
|
1094
1111
|
next_action: NextAction,
|
|
1095
1112
|
payment_method_configuration_details: PaymentMethodConfigurationDetails,
|
|
1096
1113
|
payment_method_options: PaymentMethodOptions,
|
|
1114
|
+
radar_options: RadarOptions,
|
|
1097
1115
|
redaction: Redaction,
|
|
1098
1116
|
setup_details: SetupDetails,
|
|
1099
1117
|
}
|
|
@@ -1013,12 +1013,14 @@ module Stripe
|
|
|
1013
1013
|
attr_reader :application_fee_percent
|
|
1014
1014
|
# Attribute for field automatic_tax
|
|
1015
1015
|
attr_reader :automatic_tax
|
|
1016
|
-
# The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
1016
|
+
# The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
1017
1017
|
attr_reader :billing_cadence
|
|
1018
1018
|
# The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
|
|
1019
1019
|
attr_reader :billing_cycle_anchor
|
|
1020
1020
|
# The fixed values used to calculate the `billing_cycle_anchor`.
|
|
1021
1021
|
attr_reader :billing_cycle_anchor_config
|
|
1022
|
+
# The Billing Group which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
1023
|
+
attr_reader :billing_group
|
|
1022
1024
|
# The billing mode of the subscription.
|
|
1023
1025
|
attr_reader :billing_mode
|
|
1024
1026
|
# Billing schedules for this subscription.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# Tax exemption and resale certificates associated with tax exemptions.
|
|
7
|
+
class Certificate < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
include Stripe::APIOperations::Delete
|
|
10
|
+
extend Stripe::APIOperations::List
|
|
11
|
+
|
|
12
|
+
OBJECT_NAME = "tax.certificate"
|
|
13
|
+
def self.object_name
|
|
14
|
+
"tax.certificate"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
18
|
+
attr_reader :created
|
|
19
|
+
# Whether the certificate has been deleted.
|
|
20
|
+
attr_reader :deleted
|
|
21
|
+
# The uploaded certificate file.
|
|
22
|
+
attr_reader :file
|
|
23
|
+
# Unique identifier for the object.
|
|
24
|
+
attr_reader :id
|
|
25
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
26
|
+
attr_reader :livemode
|
|
27
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
28
|
+
attr_reader :object
|
|
29
|
+
# The tax exemption associated with this certificate.
|
|
30
|
+
attr_reader :tax_exemption
|
|
31
|
+
|
|
32
|
+
# Create a tax certificate associated with a tax exemption.
|
|
33
|
+
def self.create(params = {}, opts = {})
|
|
34
|
+
request_stripe_object(
|
|
35
|
+
method: :post,
|
|
36
|
+
path: "/v1/tax/certificates",
|
|
37
|
+
params: params,
|
|
38
|
+
opts: opts
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Delete a tax certificate associated with a tax exemption.
|
|
43
|
+
def self.delete(id, params = {}, opts = {})
|
|
44
|
+
request_stripe_object(
|
|
45
|
+
method: :delete,
|
|
46
|
+
path: format("/v1/tax/certificates/%<id>s", { id: CGI.escape(id) }),
|
|
47
|
+
params: params,
|
|
48
|
+
opts: opts
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Delete a tax certificate associated with a tax exemption.
|
|
53
|
+
def delete(params = {}, opts = {})
|
|
54
|
+
request_stripe_object(
|
|
55
|
+
method: :delete,
|
|
56
|
+
path: format("/v1/tax/certificates/%<id>s", { id: CGI.escape(self["id"]) }),
|
|
57
|
+
params: params,
|
|
58
|
+
opts: opts
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# List certificates for an existing tax exemption.
|
|
63
|
+
def self.list(params = {}, opts = {})
|
|
64
|
+
request_stripe_object(
|
|
65
|
+
method: :get,
|
|
66
|
+
path: "/v1/tax/certificates",
|
|
67
|
+
params: params,
|
|
68
|
+
opts: opts
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def self.inner_class_types
|
|
73
|
+
@inner_class_types = {}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def self.field_remappings
|
|
77
|
+
@field_remappings = {}
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -7,6 +7,7 @@ module Stripe
|
|
|
7
7
|
#
|
|
8
8
|
# Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
|
|
9
9
|
class Form < APIResource
|
|
10
|
+
extend Stripe::APIOperations::Create
|
|
10
11
|
extend Stripe::APIOperations::List
|
|
11
12
|
|
|
12
13
|
OBJECT_NAME = "tax.form"
|
|
@@ -750,6 +751,16 @@ module Stripe
|
|
|
750
751
|
# Attribute for field us_1099_nec
|
|
751
752
|
attr_reader :us_1099_nec
|
|
752
753
|
|
|
754
|
+
# Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically.
|
|
755
|
+
def self.create(id, params = {}, opts = {})
|
|
756
|
+
request_stripe_object(
|
|
757
|
+
method: :post,
|
|
758
|
+
path: format("/v1/tax/forms/%<id>s/corrections", { id: CGI.escape(id) }),
|
|
759
|
+
params: params,
|
|
760
|
+
opts: opts
|
|
761
|
+
)
|
|
762
|
+
end
|
|
763
|
+
|
|
753
764
|
# Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
|
|
754
765
|
def self.list(params = {}, opts = {})
|
|
755
766
|
request_stripe_object(method: :get, path: "/v1/tax/forms", params: params, opts: opts)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# Corrections to filed tax forms.
|
|
7
|
+
class FormCorrection < APIResource
|
|
8
|
+
OBJECT_NAME = "tax.form_correction"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"tax.form_correction"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class CorrectionForm < ::Stripe::StripeObject
|
|
14
|
+
# The kind of information changed by this correction.
|
|
15
|
+
attr_reader :correction_type
|
|
16
|
+
# The corrected tax form.
|
|
17
|
+
attr_reader :form
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# The tax forms created by the correction.
|
|
28
|
+
attr_reader :correction_forms
|
|
29
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
30
|
+
attr_reader :object
|
|
31
|
+
# The original tax form that was corrected.
|
|
32
|
+
attr_reader :original_form
|
|
33
|
+
|
|
34
|
+
def self.inner_class_types
|
|
35
|
+
@inner_class_types = { correction_forms: CorrectionForm }
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.field_remappings
|
|
39
|
+
@field_remappings = {}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -18,11 +18,39 @@ module Stripe
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
class FailureDetails < ::Stripe::StripeObject
|
|
21
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
22
|
+
class Ach < ::Stripe::StripeObject
|
|
23
|
+
# NACHA ACH return code.
|
|
24
|
+
attr_reader :return_code
|
|
25
|
+
# NACHA ACH return reason.
|
|
26
|
+
attr_reader :return_reason
|
|
27
|
+
|
|
28
|
+
def self.inner_class_types
|
|
29
|
+
@inner_class_types = {}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.field_remappings
|
|
33
|
+
@field_remappings = {}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
# ACH return details.
|
|
37
|
+
attr_reader :ach
|
|
38
|
+
|
|
39
|
+
def self.inner_class_types
|
|
40
|
+
@inner_class_types = { ach: Ach }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
21
47
|
# Reason for the failure.
|
|
22
48
|
attr_reader :code
|
|
49
|
+
# Money movement network-specific details regarding the failure.
|
|
50
|
+
attr_reader :network_details
|
|
23
51
|
|
|
24
52
|
def self.inner_class_types
|
|
25
|
-
@inner_class_types = {}
|
|
53
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
26
54
|
end
|
|
27
55
|
|
|
28
56
|
def self.field_remappings
|
|
@@ -138,13 +138,41 @@ module Stripe
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
class ReturnedDetails < ::Stripe::StripeObject
|
|
141
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
142
|
+
class Ach < ::Stripe::StripeObject
|
|
143
|
+
# NACHA ACH return code.
|
|
144
|
+
attr_reader :return_code
|
|
145
|
+
# NACHA ACH return reason.
|
|
146
|
+
attr_reader :return_reason
|
|
147
|
+
|
|
148
|
+
def self.inner_class_types
|
|
149
|
+
@inner_class_types = {}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self.field_remappings
|
|
153
|
+
@field_remappings = {}
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
# ACH return details.
|
|
157
|
+
attr_reader :ach
|
|
158
|
+
|
|
159
|
+
def self.inner_class_types
|
|
160
|
+
@inner_class_types = { ach: Ach }
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def self.field_remappings
|
|
164
|
+
@field_remappings = {}
|
|
165
|
+
end
|
|
166
|
+
end
|
|
141
167
|
# Reason for the return.
|
|
142
168
|
attr_reader :code
|
|
169
|
+
# Money movement network-specific details regarding the failure.
|
|
170
|
+
attr_reader :network_details
|
|
143
171
|
# The Transaction associated with this object.
|
|
144
172
|
attr_reader :transaction
|
|
145
173
|
|
|
146
174
|
def self.inner_class_types
|
|
147
|
-
@inner_class_types = {}
|
|
175
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
148
176
|
end
|
|
149
177
|
|
|
150
178
|
def self.field_remappings
|
|
@@ -150,13 +150,41 @@ module Stripe
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
class ReturnedDetails < ::Stripe::StripeObject
|
|
153
|
+
class NetworkDetails < ::Stripe::StripeObject
|
|
154
|
+
class Ach < ::Stripe::StripeObject
|
|
155
|
+
# NACHA ACH return code.
|
|
156
|
+
attr_reader :return_code
|
|
157
|
+
# NACHA ACH return reason.
|
|
158
|
+
attr_reader :return_reason
|
|
159
|
+
|
|
160
|
+
def self.inner_class_types
|
|
161
|
+
@inner_class_types = {}
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def self.field_remappings
|
|
165
|
+
@field_remappings = {}
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
# ACH return details.
|
|
169
|
+
attr_reader :ach
|
|
170
|
+
|
|
171
|
+
def self.inner_class_types
|
|
172
|
+
@inner_class_types = { ach: Ach }
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def self.field_remappings
|
|
176
|
+
@field_remappings = {}
|
|
177
|
+
end
|
|
178
|
+
end
|
|
153
179
|
# Reason for the return.
|
|
154
180
|
attr_reader :code
|
|
181
|
+
# Money movement network-specific details regarding the failure.
|
|
182
|
+
attr_reader :network_details
|
|
155
183
|
# The Transaction associated with this object.
|
|
156
184
|
attr_reader :transaction
|
|
157
185
|
|
|
158
186
|
def self.inner_class_types
|
|
159
|
-
@inner_class_types = {}
|
|
187
|
+
@inner_class_types = { network_details: NetworkDetails }
|
|
160
188
|
end
|
|
161
189
|
|
|
162
190
|
def self.field_remappings
|
|
@@ -238,6 +238,30 @@ module Stripe
|
|
|
238
238
|
end
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
+
class BusinessProfileManagement < ::Stripe::StripeObject
|
|
242
|
+
class Scopes < ::Stripe::StripeObject
|
|
243
|
+
def self.inner_class_types
|
|
244
|
+
@inner_class_types = {}
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
def self.field_remappings
|
|
248
|
+
@field_remappings = {}
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
# Whether this embedded component is enabled.
|
|
252
|
+
attr_reader :enabled
|
|
253
|
+
# The scopes available to this embedded component.
|
|
254
|
+
attr_reader :scopes
|
|
255
|
+
|
|
256
|
+
def self.inner_class_types
|
|
257
|
+
@inner_class_types = { scopes: Scopes }
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
def self.field_remappings
|
|
261
|
+
@field_remappings = {}
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
241
265
|
class CapitalFinancing < ::Stripe::StripeObject
|
|
242
266
|
class Scopes < ::Stripe::StripeObject
|
|
243
267
|
def self.inner_class_types
|
|
@@ -1114,6 +1138,8 @@ module Stripe
|
|
|
1114
1138
|
attr_reader :balances
|
|
1115
1139
|
# Settings for the Bills embedded component.
|
|
1116
1140
|
attr_reader :bills
|
|
1141
|
+
# Settings for the Business Profile Management embedded component.
|
|
1142
|
+
attr_reader :business_profile_management
|
|
1117
1143
|
# Settings for the Capital Financing embedded component.
|
|
1118
1144
|
attr_reader :capital_financing
|
|
1119
1145
|
# Settings for the Capital Financing Application embedded component.
|
|
@@ -1187,6 +1213,7 @@ module Stripe
|
|
|
1187
1213
|
balance_report: BalanceReport,
|
|
1188
1214
|
balances: Balances,
|
|
1189
1215
|
bills: Bills,
|
|
1216
|
+
business_profile_management: BusinessProfileManagement,
|
|
1190
1217
|
capital_financing: CapitalFinancing,
|
|
1191
1218
|
capital_financing_application: CapitalFinancingApplication,
|
|
1192
1219
|
capital_financing_promotion: CapitalFinancingPromotion,
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module Data
|
|
7
7
|
# A ranked set of public analytical resources matching a natural-language query.
|
|
8
|
-
class SearchResultList <
|
|
8
|
+
class SearchResultList < StripeObject
|
|
9
9
|
OBJECT_NAME = "v2.data.search_result_list"
|
|
10
10
|
def self.object_name
|
|
11
11
|
"v2.data.search_result_list"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Extend
|
|
7
|
+
# Represents a user-defined object definition that models a custom object.
|
|
8
|
+
# Object definitions enable the object records API to create and manage records of that object.
|
|
9
|
+
class ObjectDefinition < APIResource
|
|
10
|
+
OBJECT_NAME = "v2.extend.object_definition"
|
|
11
|
+
def self.object_name
|
|
12
|
+
"v2.extend.object_definition"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The plural API name used in this definition's object record API paths. Immutable across versions.
|
|
16
|
+
attr_reader :api_name_plural
|
|
17
|
+
# The singular API name used in the object tag of this definition's records. Immutable across versions.
|
|
18
|
+
attr_reader :api_name_singular
|
|
19
|
+
# Time at which the object definition was created.
|
|
20
|
+
attr_reader :created
|
|
21
|
+
# Unique identifier for the object definition.
|
|
22
|
+
attr_reader :id
|
|
23
|
+
# The ID of the latest object definition version.
|
|
24
|
+
attr_reader :latest_version
|
|
25
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
26
|
+
attr_reader :livemode
|
|
27
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
28
|
+
attr_reader :object
|
|
29
|
+
|
|
30
|
+
def self.inner_class_types
|
|
31
|
+
@inner_class_types = {}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.field_remappings
|
|
35
|
+
@field_remappings = {}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|