stripe 13.2.0 → 13.3.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1396 -645
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -0
- data/lib/stripe/resources/account.rb +230 -0
- data/lib/stripe/resources/account_link.rb +9 -0
- data/lib/stripe/resources/account_notice.rb +60 -0
- data/lib/stripe/resources/account_session.rb +103 -0
- data/lib/stripe/resources/apple_pay_domain.rb +13 -0
- data/lib/stripe/resources/application.rb +20 -0
- data/lib/stripe/resources/application_fee.rb +34 -0
- data/lib/stripe/resources/application_fee_refund.rb +17 -0
- data/lib/stripe/resources/apps/secret.rb +22 -0
- data/lib/stripe/resources/balance.rb +59 -0
- data/lib/stripe/resources/balance_transaction.rb +34 -0
- data/lib/stripe/resources/bank_account.rb +60 -2
- data/lib/stripe/resources/billing/alert.rb +21 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
- data/lib/stripe/resources/billing/credit_grant.rb +46 -2
- data/lib/stripe/resources/billing/meter.rb +49 -7
- data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
- data/lib/stripe/resources/billing/meter_event.rb +17 -3
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
- data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
- data/lib/stripe/resources/billing_portal/session.rb +61 -0
- data/lib/stripe/resources/capability.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +94 -0
- data/lib/stripe/resources/capital/financing_summary.rb +32 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +56 -0
- data/lib/stripe/resources/card.rb +72 -0
- data/lib/stripe/resources/cash_balance.rb +14 -0
- data/lib/stripe/resources/charge.rb +469 -0
- data/lib/stripe/resources/checkout/session.rb +496 -0
- data/lib/stripe/resources/climate/order.rb +55 -0
- data/lib/stripe/resources/climate/product.rb +24 -0
- data/lib/stripe/resources/climate/supplier.rb +18 -0
- data/lib/stripe/resources/confirmation_token.rb +297 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
- data/lib/stripe/resources/country_spec.rb +27 -0
- data/lib/stripe/resources/coupon.rb +44 -0
- data/lib/stripe/resources/credit_note.rb +91 -0
- data/lib/stripe/resources/credit_note_line_item.rb +46 -0
- data/lib/stripe/resources/customer.rb +93 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
- data/lib/stripe/resources/customer_session.rb +34 -0
- data/lib/stripe/resources/discount.rb +29 -0
- data/lib/stripe/resources/dispute.rb +88 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
- data/lib/stripe/resources/entitlements/feature.rb +15 -0
- data/lib/stripe/resources/ephemeral_key.rb +13 -0
- data/lib/stripe/resources/event.rb +44 -0
- data/lib/stripe/resources/exchange_rate.rb +7 -0
- data/lib/stripe/resources/file.rb +23 -0
- data/lib/stripe/resources/file_link.rb +19 -0
- data/lib/stripe/resources/financial_connections/account.rb +87 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
- data/lib/stripe/resources/financial_connections/institution.rb +61 -0
- data/lib/stripe/resources/financial_connections/session.rb +49 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
- data/lib/stripe/resources/forwarding/request.rb +40 -0
- data/lib/stripe/resources/funding_instructions.rb +82 -0
- data/lib/stripe/resources/gift_cards/card.rb +96 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +132 -0
- data/lib/stripe/resources/identity/verification_report.rb +92 -0
- data/lib/stripe/resources/identity/verification_session.rb +76 -0
- data/lib/stripe/resources/invoice.rb +418 -0
- data/lib/stripe/resources/invoice_item.rb +54 -0
- data/lib/stripe/resources/invoice_line_item.rb +83 -0
- data/lib/stripe/resources/invoice_payment.rb +46 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
- data/lib/stripe/resources/issuing/authorization.rb +129 -0
- data/lib/stripe/resources/issuing/card.rb +86 -0
- data/lib/stripe/resources/issuing/cardholder.rb +76 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +145 -0
- data/lib/stripe/resources/issuing/dispute.rb +65 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +49 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +43 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
- data/lib/stripe/resources/issuing/settlement.rb +49 -0
- data/lib/stripe/resources/issuing/token.rb +46 -0
- data/lib/stripe/resources/issuing/transaction.rb +106 -0
- data/lib/stripe/resources/line_item.rb +50 -0
- data/lib/stripe/resources/login_link.rb +7 -0
- data/lib/stripe/resources/mandate.rb +78 -0
- data/lib/stripe/resources/margin.rb +56 -0
- data/lib/stripe/resources/order.rb +322 -0
- data/lib/stripe/resources/payment_attempt_record.rb +100 -0
- data/lib/stripe/resources/payment_intent.rb +712 -0
- data/lib/stripe/resources/payment_link.rb +198 -0
- data/lib/stripe/resources/payment_method.rb +368 -0
- data/lib/stripe/resources/payment_method_configuration.rb +430 -0
- data/lib/stripe/resources/payment_method_domain.rb +57 -0
- data/lib/stripe/resources/payment_record.rb +194 -0
- data/lib/stripe/resources/payout.rb +56 -0
- data/lib/stripe/resources/person.rb +128 -0
- data/lib/stripe/resources/plan.rb +52 -0
- data/lib/stripe/resources/price.rb +77 -0
- data/lib/stripe/resources/product.rb +60 -0
- data/lib/stripe/resources/product_feature.rb +12 -0
- data/lib/stripe/resources/promotion_code.rb +35 -0
- data/lib/stripe/resources/quote.rb +356 -0
- data/lib/stripe/resources/quote_line.rb +136 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +374 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +170 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
- data/lib/stripe/resources/radar/value_list.rb +23 -0
- data/lib/stripe/resources/radar/value_list_item.rb +17 -0
- data/lib/stripe/resources/refund.rb +130 -0
- data/lib/stripe/resources/reporting/report_run.rb +29 -0
- data/lib/stripe/resources/reporting/report_type.rb +19 -0
- data/lib/stripe/resources/reserve_transaction.rb +22 -0
- data/lib/stripe/resources/reversal.rb +21 -0
- data/lib/stripe/resources/review.rb +36 -0
- data/lib/stripe/resources/setup_attempt.rb +101 -0
- data/lib/stripe/resources/setup_intent.rb +158 -0
- data/lib/stripe/resources/shipping_rate.rb +42 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
- data/lib/stripe/resources/source.rb +195 -0
- data/lib/stripe/resources/source_mandate_notification.rb +59 -0
- data/lib/stripe/resources/source_transaction.rb +48 -0
- data/lib/stripe/resources/subscription.rb +214 -0
- data/lib/stripe/resources/subscription_item.rb +46 -0
- data/lib/stripe/resources/subscription_schedule.rb +173 -0
- data/lib/stripe/resources/tax/association.rb +60 -0
- data/lib/stripe/resources/tax/calculation.rb +72 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
- data/lib/stripe/resources/tax/form.rb +124 -0
- data/lib/stripe/resources/tax/registration.rb +379 -0
- data/lib/stripe/resources/tax/settings.rb +33 -0
- data/lib/stripe/resources/tax/transaction.rb +68 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
- data/lib/stripe/resources/tax_code.rb +9 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
- data/lib/stripe/resources/tax_id.rb +30 -0
- data/lib/stripe/resources/tax_rate.rb +42 -0
- data/lib/stripe/resources/terminal/configuration.rb +107 -0
- data/lib/stripe/resources/terminal/connection_token.rb +7 -0
- data/lib/stripe/resources/terminal/location.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +178 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +30 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
- data/lib/stripe/resources/token.rb +29 -0
- data/lib/stripe/resources/topup.rb +33 -0
- data/lib/stripe/resources/transfer.rb +35 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
- data/lib/stripe/resources/treasury/financial_account.rb +57 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
- data/lib/stripe/resources/treasury/received_credit.rb +70 -0
- data/lib/stripe/resources/treasury/received_debit.rb +67 -0
- data/lib/stripe/resources/treasury/transaction.rb +42 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
- data/lib/stripe/resources/usage_record.rb +13 -0
- data/lib/stripe/resources/usage_record_summary.rb +18 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
- data/lib/stripe/resources/v2/event.rb +21 -0
- data/lib/stripe/resources/v2/event_destination.rb +49 -0
- data/lib/stripe/resources/webhook_endpoint.rb +27 -0
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
- data/lib/stripe/services/billing/meter_event_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +5 -5
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/gift_cards/card_service.rb +63 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +74 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +44 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_record_service.rb +78 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +5 -0
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +45 -0
- data/stripe.gemspec +2 -1
- metadata +62 -4
@@ -0,0 +1,46 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# The invoice payment object
|
6
|
+
class InvoicePayment < APIResource
|
7
|
+
OBJECT_NAME = "invoice_payment"
|
8
|
+
def self.object_name
|
9
|
+
"invoice_payment"
|
10
|
+
end
|
11
|
+
|
12
|
+
class Payment < Stripe::StripeObject
|
13
|
+
attr_reader :charge, :payment_intent, :payment_record, :type
|
14
|
+
end
|
15
|
+
|
16
|
+
class StatusTransitions < Stripe::StripeObject
|
17
|
+
attr_reader :canceled_at, :paid_at
|
18
|
+
end
|
19
|
+
# Excess payment that was received for this invoice and credited to the customer’s `invoice_credit_balance`. This field is null until the payment is `paid`. Overpayment can happen when you attach more than one PaymentIntent to the invoice, and each of them succeeds. To avoid overpayment, cancel any PaymentIntents that you do not need before attaching more.
|
20
|
+
attr_reader :amount_overpaid
|
21
|
+
# Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment is `paid`. This amount can be less than the `amount_requested` if the PaymentIntent’s `amount_received` is not sufficient to pay all of the invoices that it is attached to.
|
22
|
+
attr_reader :amount_paid
|
23
|
+
# Amount intended to be paid toward this invoice, in cents (or local equivalent)
|
24
|
+
attr_reader :amount_requested
|
25
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
26
|
+
attr_reader :created
|
27
|
+
# 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).
|
28
|
+
attr_reader :currency
|
29
|
+
# Unique identifier for the object.
|
30
|
+
attr_reader :id
|
31
|
+
# The invoice that was paid.
|
32
|
+
attr_reader :invoice
|
33
|
+
# Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s `amount_remaining`. The PaymentIntent associated with the default payment can’t be edited or canceled directly.
|
34
|
+
attr_reader :is_default
|
35
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
36
|
+
attr_reader :livemode
|
37
|
+
# String representing the object's type. Objects of the same type share the same value.
|
38
|
+
attr_reader :object
|
39
|
+
# Attribute for field payment
|
40
|
+
attr_reader :payment
|
41
|
+
# The status of the payment, one of `open`, `paid`, or `canceled`.
|
42
|
+
attr_reader :status
|
43
|
+
# Attribute for field status_transitions
|
44
|
+
attr_reader :status_transitions
|
45
|
+
end
|
46
|
+
end
|
@@ -12,6 +12,23 @@ module Stripe
|
|
12
12
|
"invoice_rendering_template"
|
13
13
|
end
|
14
14
|
|
15
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
16
|
+
attr_reader :created
|
17
|
+
# Unique identifier for the object.
|
18
|
+
attr_reader :id
|
19
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
20
|
+
attr_reader :livemode
|
21
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
22
|
+
attr_reader :metadata
|
23
|
+
# A brief description of the template, hidden from customers
|
24
|
+
attr_reader :nickname
|
25
|
+
# String representing the object's type. Objects of the same type share the same value.
|
26
|
+
attr_reader :object
|
27
|
+
# The status of the template, one of `active` or `archived`.
|
28
|
+
attr_reader :status
|
29
|
+
# Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering
|
30
|
+
attr_reader :version
|
31
|
+
|
15
32
|
# Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
|
16
33
|
def archive(params = {}, opts = {})
|
17
34
|
request_stripe_object(
|
@@ -18,6 +18,135 @@ module Stripe
|
|
18
18
|
"issuing.authorization"
|
19
19
|
end
|
20
20
|
|
21
|
+
class AmountDetails < Stripe::StripeObject
|
22
|
+
attr_reader :atm_fee, :cashback_amount
|
23
|
+
end
|
24
|
+
|
25
|
+
class Fleet < Stripe::StripeObject
|
26
|
+
class CardholderPromptData < Stripe::StripeObject
|
27
|
+
attr_reader :alphanumeric_id, :driver_id, :odometer, :unspecified_id, :user_id, :vehicle_number
|
28
|
+
end
|
29
|
+
|
30
|
+
class ReportedBreakdown < Stripe::StripeObject
|
31
|
+
class Fuel < Stripe::StripeObject
|
32
|
+
attr_reader :gross_amount_decimal
|
33
|
+
end
|
34
|
+
|
35
|
+
class NonFuel < Stripe::StripeObject
|
36
|
+
attr_reader :gross_amount_decimal
|
37
|
+
end
|
38
|
+
|
39
|
+
class Tax < Stripe::StripeObject
|
40
|
+
attr_reader :local_amount_decimal, :national_amount_decimal
|
41
|
+
end
|
42
|
+
attr_reader :fuel, :non_fuel, :tax
|
43
|
+
end
|
44
|
+
attr_reader :cardholder_prompt_data, :purchase_type, :reported_breakdown, :service_type
|
45
|
+
end
|
46
|
+
|
47
|
+
class FraudChallenge < Stripe::StripeObject
|
48
|
+
attr_reader :channel, :status, :undeliverable_reason
|
49
|
+
end
|
50
|
+
|
51
|
+
class Fuel < Stripe::StripeObject
|
52
|
+
attr_reader :industry_product_code, :quantity_decimal, :type, :unit, :unit_cost_decimal
|
53
|
+
end
|
54
|
+
|
55
|
+
class MerchantData < Stripe::StripeObject
|
56
|
+
attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url
|
57
|
+
end
|
58
|
+
|
59
|
+
class NetworkData < Stripe::StripeObject
|
60
|
+
attr_reader :acquiring_institution_id, :system_trace_audit_number, :transaction_id
|
61
|
+
end
|
62
|
+
|
63
|
+
class PendingRequest < Stripe::StripeObject
|
64
|
+
class AmountDetails < Stripe::StripeObject
|
65
|
+
attr_reader :atm_fee, :cashback_amount
|
66
|
+
end
|
67
|
+
attr_reader :amount, :amount_details, :currency, :is_amount_controllable, :merchant_amount, :merchant_currency, :network_risk_score
|
68
|
+
end
|
69
|
+
|
70
|
+
class RequestHistory < Stripe::StripeObject
|
71
|
+
class AmountDetails < Stripe::StripeObject
|
72
|
+
attr_reader :atm_fee, :cashback_amount
|
73
|
+
end
|
74
|
+
attr_reader :amount, :amount_details, :approved, :authorization_code, :created, :currency, :merchant_amount, :merchant_currency, :network_risk_score, :reason, :reason_message, :requested_at
|
75
|
+
end
|
76
|
+
|
77
|
+
class Treasury < Stripe::StripeObject
|
78
|
+
attr_reader :received_credits, :received_debits, :transaction
|
79
|
+
end
|
80
|
+
|
81
|
+
class VerificationData < Stripe::StripeObject
|
82
|
+
class AuthenticationExemption < Stripe::StripeObject
|
83
|
+
attr_reader :claimed_by, :type
|
84
|
+
end
|
85
|
+
|
86
|
+
class ThreeDSecure < Stripe::StripeObject
|
87
|
+
attr_reader :result
|
88
|
+
end
|
89
|
+
attr_reader :address_line1_check, :address_postal_code_check, :authentication_exemption, :cvc_check, :expiry_check, :postal_code, :three_d_secure
|
90
|
+
end
|
91
|
+
# The total amount that was authorized or rejected. This amount is in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `amount` should be the same as `merchant_amount`, unless `currency` and `merchant_currency` are different.
|
92
|
+
attr_reader :amount
|
93
|
+
# Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
94
|
+
attr_reader :amount_details
|
95
|
+
# Whether the authorization has been approved.
|
96
|
+
attr_reader :approved
|
97
|
+
# How the card details were provided.
|
98
|
+
attr_reader :authorization_method
|
99
|
+
# List of balance transactions associated with this authorization.
|
100
|
+
attr_reader :balance_transactions
|
101
|
+
# You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders.
|
102
|
+
attr_reader :card
|
103
|
+
# The cardholder to whom this authorization belongs.
|
104
|
+
attr_reader :cardholder
|
105
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
106
|
+
attr_reader :created
|
107
|
+
# The currency of the cardholder. This currency can be different from the currency presented at authorization and the `merchant_currency` field on this authorization. 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).
|
108
|
+
attr_reader :currency
|
109
|
+
# Fleet-specific information for authorizations using Fleet cards.
|
110
|
+
attr_reader :fleet
|
111
|
+
# Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons.
|
112
|
+
attr_reader :fraud_challenges
|
113
|
+
# Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
|
114
|
+
attr_reader :fuel
|
115
|
+
# Unique identifier for the object.
|
116
|
+
attr_reader :id
|
117
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
118
|
+
attr_reader :livemode
|
119
|
+
# The total amount that was authorized or rejected. This amount is in the `merchant_currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `merchant_amount` should be the same as `amount`, unless `merchant_currency` and `currency` are different.
|
120
|
+
attr_reader :merchant_amount
|
121
|
+
# The local currency that was presented to the cardholder for the authorization. This currency can be different from the cardholder currency and the `currency` field on this authorization. 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).
|
122
|
+
attr_reader :merchant_currency
|
123
|
+
# Attribute for field merchant_data
|
124
|
+
attr_reader :merchant_data
|
125
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
126
|
+
attr_reader :metadata
|
127
|
+
# Details about the authorization, such as identifiers, set by the card network.
|
128
|
+
attr_reader :network_data
|
129
|
+
# String representing the object's type. Objects of the same type share the same value.
|
130
|
+
attr_reader :object
|
131
|
+
# The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook.
|
132
|
+
attr_reader :pending_request
|
133
|
+
# History of every time a `pending_request` authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined.
|
134
|
+
attr_reader :request_history
|
135
|
+
# The current status of the authorization in its lifecycle.
|
136
|
+
attr_reader :status
|
137
|
+
# [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null.
|
138
|
+
attr_reader :token
|
139
|
+
# List of [transactions](https://stripe.com/docs/api/issuing/transactions) associated with this authorization.
|
140
|
+
attr_reader :transactions
|
141
|
+
# [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts).
|
142
|
+
attr_reader :treasury
|
143
|
+
# Attribute for field verification_data
|
144
|
+
attr_reader :verification_data
|
145
|
+
# Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant.
|
146
|
+
attr_reader :verified_by_fraud_challenge
|
147
|
+
# The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
|
148
|
+
attr_reader :wallet
|
149
|
+
|
21
150
|
# [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
22
151
|
# This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
23
152
|
def approve(params = {}, opts = {})
|
@@ -14,6 +14,92 @@ module Stripe
|
|
14
14
|
"issuing.card"
|
15
15
|
end
|
16
16
|
|
17
|
+
class Shipping < Stripe::StripeObject
|
18
|
+
class Address < Stripe::StripeObject
|
19
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
20
|
+
end
|
21
|
+
|
22
|
+
class AddressValidation < Stripe::StripeObject
|
23
|
+
class NormalizedAddress < Stripe::StripeObject
|
24
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
25
|
+
end
|
26
|
+
attr_reader :mode, :normalized_address, :result
|
27
|
+
end
|
28
|
+
|
29
|
+
class Customs < Stripe::StripeObject
|
30
|
+
attr_reader :eori_number
|
31
|
+
end
|
32
|
+
attr_reader :address, :address_validation, :carrier, :customs, :eta, :name, :phone_number, :require_signature, :service, :status, :tracking_number, :tracking_url, :type
|
33
|
+
end
|
34
|
+
|
35
|
+
class SpendingControls < Stripe::StripeObject
|
36
|
+
class SpendingLimit < Stripe::StripeObject
|
37
|
+
attr_reader :amount, :categories, :interval
|
38
|
+
end
|
39
|
+
attr_reader :allowed_categories, :allowed_merchant_countries, :blocked_categories, :blocked_merchant_countries, :spending_limits, :spending_limits_currency
|
40
|
+
end
|
41
|
+
|
42
|
+
class Wallets < Stripe::StripeObject
|
43
|
+
class ApplePay < Stripe::StripeObject
|
44
|
+
attr_reader :eligible, :ineligible_reason
|
45
|
+
end
|
46
|
+
|
47
|
+
class GooglePay < Stripe::StripeObject
|
48
|
+
attr_reader :eligible, :ineligible_reason
|
49
|
+
end
|
50
|
+
attr_reader :apple_pay, :google_pay, :primary_account_identifier
|
51
|
+
end
|
52
|
+
# The brand of the card.
|
53
|
+
attr_reader :brand
|
54
|
+
# The reason why the card was canceled.
|
55
|
+
attr_reader :cancellation_reason
|
56
|
+
# An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
|
57
|
+
#
|
58
|
+
# Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
|
59
|
+
attr_reader :cardholder
|
60
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
61
|
+
attr_reader :created
|
62
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Supported currencies are `usd` in the US, `eur` in the EU, and `gbp` in the UK.
|
63
|
+
attr_reader :currency
|
64
|
+
# The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
|
65
|
+
attr_reader :cvc
|
66
|
+
# The expiration month of the card.
|
67
|
+
attr_reader :exp_month
|
68
|
+
# The expiration year of the card.
|
69
|
+
attr_reader :exp_year
|
70
|
+
# The financial account this card is attached to.
|
71
|
+
attr_reader :financial_account
|
72
|
+
# Unique identifier for the object.
|
73
|
+
attr_reader :id
|
74
|
+
# The last 4 digits of the card number.
|
75
|
+
attr_reader :last4
|
76
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
77
|
+
attr_reader :livemode
|
78
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
79
|
+
attr_reader :metadata
|
80
|
+
# The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
|
81
|
+
attr_reader :number
|
82
|
+
# String representing the object's type. Objects of the same type share the same value.
|
83
|
+
attr_reader :object
|
84
|
+
# The personalization design object belonging to this card.
|
85
|
+
attr_reader :personalization_design
|
86
|
+
# The latest card that replaces this card, if any.
|
87
|
+
attr_reader :replaced_by
|
88
|
+
# The card this card replaces, if any.
|
89
|
+
attr_reader :replacement_for
|
90
|
+
# The reason why the previous card needed to be replaced.
|
91
|
+
attr_reader :replacement_reason
|
92
|
+
# Where and how the card will be shipped.
|
93
|
+
attr_reader :shipping
|
94
|
+
# Attribute for field spending_controls
|
95
|
+
attr_reader :spending_controls
|
96
|
+
# Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
|
97
|
+
attr_reader :status
|
98
|
+
# The type of the card.
|
99
|
+
attr_reader :type
|
100
|
+
# Information relating to digital wallets (like Apple Pay and Google Pay).
|
101
|
+
attr_reader :wallets
|
102
|
+
|
17
103
|
# Creates an Issuing Card object.
|
18
104
|
def self.create(params = {}, opts = {})
|
19
105
|
request_stripe_object(method: :post, path: "/v1/issuing/cards", params: params, opts: opts)
|
@@ -16,6 +16,82 @@ module Stripe
|
|
16
16
|
"issuing.cardholder"
|
17
17
|
end
|
18
18
|
|
19
|
+
class Billing < Stripe::StripeObject
|
20
|
+
class Address < Stripe::StripeObject
|
21
|
+
attr_reader :city, :country, :line1, :line2, :postal_code, :state
|
22
|
+
end
|
23
|
+
attr_reader :address
|
24
|
+
end
|
25
|
+
|
26
|
+
class Company < Stripe::StripeObject
|
27
|
+
attr_reader :tax_id_provided
|
28
|
+
end
|
29
|
+
|
30
|
+
class Individual < Stripe::StripeObject
|
31
|
+
class CardIssuing < Stripe::StripeObject
|
32
|
+
class UserTermsAcceptance < Stripe::StripeObject
|
33
|
+
attr_reader :date, :ip, :user_agent
|
34
|
+
end
|
35
|
+
attr_reader :user_terms_acceptance
|
36
|
+
end
|
37
|
+
|
38
|
+
class Dob < Stripe::StripeObject
|
39
|
+
attr_reader :day, :month, :year
|
40
|
+
end
|
41
|
+
|
42
|
+
class Verification < Stripe::StripeObject
|
43
|
+
class Document < Stripe::StripeObject
|
44
|
+
attr_reader :back, :front
|
45
|
+
end
|
46
|
+
attr_reader :document
|
47
|
+
end
|
48
|
+
attr_reader :card_issuing, :dob, :first_name, :last_name, :verification
|
49
|
+
end
|
50
|
+
|
51
|
+
class Requirements < Stripe::StripeObject
|
52
|
+
attr_reader :disabled_reason, :past_due
|
53
|
+
end
|
54
|
+
|
55
|
+
class SpendingControls < Stripe::StripeObject
|
56
|
+
class SpendingLimit < Stripe::StripeObject
|
57
|
+
attr_reader :amount, :categories, :interval
|
58
|
+
end
|
59
|
+
attr_reader :allowed_categories, :allowed_merchant_countries, :blocked_categories, :blocked_merchant_countries, :spending_limits, :spending_limits_currency
|
60
|
+
end
|
61
|
+
# Attribute for field billing
|
62
|
+
attr_reader :billing
|
63
|
+
# Additional information about a `company` cardholder.
|
64
|
+
attr_reader :company
|
65
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
66
|
+
attr_reader :created
|
67
|
+
# The cardholder's email address.
|
68
|
+
attr_reader :email
|
69
|
+
# Unique identifier for the object.
|
70
|
+
attr_reader :id
|
71
|
+
# Additional information about an `individual` cardholder.
|
72
|
+
attr_reader :individual
|
73
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
74
|
+
attr_reader :livemode
|
75
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
76
|
+
attr_reader :metadata
|
77
|
+
# The cardholder's name. This will be printed on cards issued to them.
|
78
|
+
attr_reader :name
|
79
|
+
# String representing the object's type. Objects of the same type share the same value.
|
80
|
+
attr_reader :object
|
81
|
+
# The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details.
|
82
|
+
attr_reader :phone_number
|
83
|
+
# The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
|
84
|
+
# This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
|
85
|
+
attr_reader :preferred_locales
|
86
|
+
# Attribute for field requirements
|
87
|
+
attr_reader :requirements
|
88
|
+
# Rules that control spending across this cardholder's cards. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details.
|
89
|
+
attr_reader :spending_controls
|
90
|
+
# Specifies whether to permit authorizations on this cardholder's cards.
|
91
|
+
attr_reader :status
|
92
|
+
# One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
|
93
|
+
attr_reader :type
|
94
|
+
|
19
95
|
# Creates a new Issuing Cardholder object that can be issued cards.
|
20
96
|
def self.create(params = {}, opts = {})
|
21
97
|
request_stripe_object(
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Issuing
|
6
|
+
# Every time an applicant submits an application for a Charge Card product your platform offers, or every time your platform takes a proactive credit decision on an existing account, you must record the decision by creating a new `CreditUnderwritingRecord` object on a connected account.
|
7
|
+
#
|
8
|
+
# [Follow the guide](https://stripe.com/docs/issuing/credit/report-credit-decisions-and-manage-aans) to learn about your requirements as a platform.
|
9
|
+
class CreditUnderwritingRecord < APIResource
|
10
|
+
extend Stripe::APIOperations::List
|
11
|
+
|
12
|
+
OBJECT_NAME = "issuing.credit_underwriting_record"
|
13
|
+
def self.object_name
|
14
|
+
"issuing.credit_underwriting_record"
|
15
|
+
end
|
16
|
+
|
17
|
+
class Application < Stripe::StripeObject
|
18
|
+
attr_reader :application_method, :purpose, :submitted_at
|
19
|
+
end
|
20
|
+
|
21
|
+
class CreditUser < Stripe::StripeObject
|
22
|
+
attr_reader :email, :name
|
23
|
+
end
|
24
|
+
|
25
|
+
class Decision < Stripe::StripeObject
|
26
|
+
class ApplicationRejected < Stripe::StripeObject
|
27
|
+
attr_reader :reason_other_explanation, :reasons
|
28
|
+
end
|
29
|
+
|
30
|
+
class CreditLimitApproved < Stripe::StripeObject
|
31
|
+
attr_reader :amount, :currency
|
32
|
+
end
|
33
|
+
|
34
|
+
class CreditLimitDecreased < Stripe::StripeObject
|
35
|
+
attr_reader :amount, :currency, :reason_other_explanation, :reasons
|
36
|
+
end
|
37
|
+
|
38
|
+
class CreditLineClosed < Stripe::StripeObject
|
39
|
+
attr_reader :reason_other_explanation, :reasons
|
40
|
+
end
|
41
|
+
attr_reader :application_rejected, :credit_limit_approved, :credit_limit_decreased, :credit_line_closed, :type
|
42
|
+
end
|
43
|
+
|
44
|
+
class UnderwritingException < Stripe::StripeObject
|
45
|
+
attr_reader :explanation, :original_decision_type
|
46
|
+
end
|
47
|
+
# For decisions triggered by an application, details about the submission.
|
48
|
+
attr_reader :application
|
49
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
50
|
+
attr_reader :created
|
51
|
+
# The event that triggered the underwriting.
|
52
|
+
attr_reader :created_from
|
53
|
+
# Attribute for field credit_user
|
54
|
+
attr_reader :credit_user
|
55
|
+
# Date when a decision was made.
|
56
|
+
attr_reader :decided_at
|
57
|
+
# Details about the decision.
|
58
|
+
attr_reader :decision
|
59
|
+
# For underwriting initiated by an application, a decision must be taken 30 days after the submission.
|
60
|
+
attr_reader :decision_deadline
|
61
|
+
# Unique identifier for the object.
|
62
|
+
attr_reader :id
|
63
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
64
|
+
attr_reader :livemode
|
65
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
66
|
+
attr_reader :metadata
|
67
|
+
# String representing the object's type. Objects of the same type share the same value.
|
68
|
+
attr_reader :object
|
69
|
+
# File containing regulatory reporting data for the decision. Required if you are subject to this [reporting requirement](https://stripe.com/docs/issuing/credit/report-required-regulatory-data-for-credit-decisions).
|
70
|
+
attr_reader :regulatory_reporting_file
|
71
|
+
# If an exception to the usual underwriting criteria was made for this application, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance.
|
72
|
+
attr_reader :underwriting_exception
|
73
|
+
|
74
|
+
# Update a CreditUnderwritingRecord object to correct mistakes.
|
75
|
+
def correct(params = {}, opts = {})
|
76
|
+
request_stripe_object(
|
77
|
+
method: :post,
|
78
|
+
path: format("/v1/issuing/credit_underwriting_records/%<credit_underwriting_record>s/correct", { credit_underwriting_record: CGI.escape(self["id"]) }),
|
79
|
+
params: params,
|
80
|
+
opts: opts
|
81
|
+
)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Update a CreditUnderwritingRecord object to correct mistakes.
|
85
|
+
def self.correct(credit_underwriting_record, params = {}, opts = {})
|
86
|
+
request_stripe_object(
|
87
|
+
method: :post,
|
88
|
+
path: format("/v1/issuing/credit_underwriting_records/%<credit_underwriting_record>s/correct", { credit_underwriting_record: CGI.escape(credit_underwriting_record) }),
|
89
|
+
params: params,
|
90
|
+
opts: opts
|
91
|
+
)
|
92
|
+
end
|
93
|
+
|
94
|
+
# Creates a CreditUnderwritingRecord object with information about a credit application submission.
|
95
|
+
def self.create_from_application(params = {}, opts = {})
|
96
|
+
request_stripe_object(
|
97
|
+
method: :post,
|
98
|
+
path: "/v1/issuing/credit_underwriting_records/create_from_application",
|
99
|
+
params: params,
|
100
|
+
opts: opts
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
104
|
+
# Creates a CreditUnderwritingRecord object from an underwriting decision coming from a proactive review of an existing accountholder.
|
105
|
+
def self.create_from_proactive_review(params = {}, opts = {})
|
106
|
+
request_stripe_object(
|
107
|
+
method: :post,
|
108
|
+
path: "/v1/issuing/credit_underwriting_records/create_from_proactive_review",
|
109
|
+
params: params,
|
110
|
+
opts: opts
|
111
|
+
)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
115
|
+
def self.list(filters = {}, opts = {})
|
116
|
+
request_stripe_object(
|
117
|
+
method: :get,
|
118
|
+
path: "/v1/issuing/credit_underwriting_records",
|
119
|
+
params: filters,
|
120
|
+
opts: opts
|
121
|
+
)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Update a CreditUnderwritingRecord object from a decision made on a credit application.
|
125
|
+
def report_decision(params = {}, opts = {})
|
126
|
+
request_stripe_object(
|
127
|
+
method: :post,
|
128
|
+
path: format("/v1/issuing/credit_underwriting_records/%<credit_underwriting_record>s/report_decision", { credit_underwriting_record: CGI.escape(self["id"]) }),
|
129
|
+
params: params,
|
130
|
+
opts: opts
|
131
|
+
)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Update a CreditUnderwritingRecord object from a decision made on a credit application.
|
135
|
+
def self.report_decision(credit_underwriting_record, params = {}, opts = {})
|
136
|
+
request_stripe_object(
|
137
|
+
method: :post,
|
138
|
+
path: format("/v1/issuing/credit_underwriting_records/%<credit_underwriting_record>s/report_decision", { credit_underwriting_record: CGI.escape(credit_underwriting_record) }),
|
139
|
+
params: params,
|
140
|
+
opts: opts
|
141
|
+
)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -16,6 +16,71 @@ module Stripe
|
|
16
16
|
"issuing.dispute"
|
17
17
|
end
|
18
18
|
|
19
|
+
class Evidence < Stripe::StripeObject
|
20
|
+
class Canceled < Stripe::StripeObject
|
21
|
+
attr_reader :additional_documentation, :canceled_at, :cancellation_policy_provided, :cancellation_reason, :expected_at, :explanation, :product_description, :product_type, :return_status, :returned_at
|
22
|
+
end
|
23
|
+
|
24
|
+
class Duplicate < Stripe::StripeObject
|
25
|
+
attr_reader :additional_documentation, :card_statement, :cash_receipt, :check_image, :explanation, :original_transaction
|
26
|
+
end
|
27
|
+
|
28
|
+
class Fraudulent < Stripe::StripeObject
|
29
|
+
attr_reader :additional_documentation, :explanation
|
30
|
+
end
|
31
|
+
|
32
|
+
class MerchandiseNotAsDescribed < Stripe::StripeObject
|
33
|
+
attr_reader :additional_documentation, :explanation, :received_at, :return_description, :return_status, :returned_at
|
34
|
+
end
|
35
|
+
|
36
|
+
class NoValidAuthorization < Stripe::StripeObject
|
37
|
+
attr_reader :additional_documentation, :explanation
|
38
|
+
end
|
39
|
+
|
40
|
+
class NotReceived < Stripe::StripeObject
|
41
|
+
attr_reader :additional_documentation, :expected_at, :explanation, :product_description, :product_type
|
42
|
+
end
|
43
|
+
|
44
|
+
class Other < Stripe::StripeObject
|
45
|
+
attr_reader :additional_documentation, :explanation, :product_description, :product_type
|
46
|
+
end
|
47
|
+
|
48
|
+
class ServiceNotAsDescribed < Stripe::StripeObject
|
49
|
+
attr_reader :additional_documentation, :canceled_at, :cancellation_reason, :explanation, :received_at
|
50
|
+
end
|
51
|
+
attr_reader :canceled, :duplicate, :fraudulent, :merchandise_not_as_described, :no_valid_authorization, :not_received, :other, :reason, :service_not_as_described
|
52
|
+
end
|
53
|
+
|
54
|
+
class Treasury < Stripe::StripeObject
|
55
|
+
attr_reader :debit_reversal, :received_debit
|
56
|
+
end
|
57
|
+
# Disputed amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation).
|
58
|
+
attr_reader :amount
|
59
|
+
# List of balance transactions associated with the dispute.
|
60
|
+
attr_reader :balance_transactions
|
61
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
62
|
+
attr_reader :created
|
63
|
+
# The currency the `transaction` was made in.
|
64
|
+
attr_reader :currency
|
65
|
+
# Attribute for field evidence
|
66
|
+
attr_reader :evidence
|
67
|
+
# Unique identifier for the object.
|
68
|
+
attr_reader :id
|
69
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
70
|
+
attr_reader :livemode
|
71
|
+
# The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.
|
72
|
+
attr_reader :loss_reason
|
73
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
74
|
+
attr_reader :metadata
|
75
|
+
# String representing the object's type. Objects of the same type share the same value.
|
76
|
+
attr_reader :object
|
77
|
+
# Current status of the dispute.
|
78
|
+
attr_reader :status
|
79
|
+
# The transaction being disputed.
|
80
|
+
attr_reader :transaction
|
81
|
+
# [Treasury](https://stripe.com/docs/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
|
82
|
+
attr_reader :treasury
|
83
|
+
|
19
84
|
# Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
|
20
85
|
def self.create(params = {}, opts = {})
|
21
86
|
request_stripe_object(
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Issuing
|
6
|
+
# Represents a record from the card network of a money movement or change in state for an Issuing dispute. These records are included in the settlement reports that we receive from networks and expose to users as Settlement objects.
|
7
|
+
class DisputeSettlementDetail < APIResource
|
8
|
+
extend Stripe::APIOperations::List
|
9
|
+
|
10
|
+
OBJECT_NAME = "issuing.dispute_settlement_detail"
|
11
|
+
def self.object_name
|
12
|
+
"issuing.dispute_settlement_detail"
|
13
|
+
end
|
14
|
+
|
15
|
+
# Disputed amount in the card’s currency and in the smallest currency unit. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
|
16
|
+
attr_reader :amount
|
17
|
+
# The card used to make the original transaction.
|
18
|
+
attr_reader :card
|
19
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
20
|
+
attr_reader :created
|
21
|
+
# The currency the original transaction was made in. 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).
|
22
|
+
attr_reader :currency
|
23
|
+
# The ID of the linked dispute.
|
24
|
+
attr_reader :dispute
|
25
|
+
# The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle.
|
26
|
+
attr_reader :event_type
|
27
|
+
# Unique identifier for the object.
|
28
|
+
attr_reader :id
|
29
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
30
|
+
attr_reader :livemode
|
31
|
+
# The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"]
|
32
|
+
attr_reader :network
|
33
|
+
# String representing the object's type. Objects of the same type share the same value.
|
34
|
+
attr_reader :object
|
35
|
+
# The ID of the linked card network settlement.
|
36
|
+
attr_reader :settlement
|
37
|
+
|
38
|
+
# Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
39
|
+
def self.list(filters = {}, opts = {})
|
40
|
+
request_stripe_object(
|
41
|
+
method: :get,
|
42
|
+
path: "/v1/issuing/dispute_settlement_details",
|
43
|
+
params: filters,
|
44
|
+
opts: opts
|
45
|
+
)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|