mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-22 00:05:58 -05:00
Merge pull request #1446 from stripe/latest-codegen-beta
Update generated code for beta
This commit is contained in:
commit
8b34c0f101
@ -1 +1 @@
|
||||
v1247
|
||||
v1258
|
||||
@ -78,11 +78,13 @@ module Stripe
|
||||
InvoiceItem.object_name => InvoiceItem,
|
||||
InvoiceLineItem.object_name => InvoiceLineItem,
|
||||
InvoicePayment.object_name => InvoicePayment,
|
||||
InvoiceRenderingTemplate.object_name => InvoiceRenderingTemplate,
|
||||
Issuing::Authorization.object_name => Issuing::Authorization,
|
||||
Issuing::Card.object_name => Issuing::Card,
|
||||
Issuing::Cardholder.object_name => Issuing::Cardholder,
|
||||
Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
|
||||
Issuing::Dispute.object_name => Issuing::Dispute,
|
||||
Issuing::DisputeSettlementDetail.object_name => Issuing::DisputeSettlementDetail,
|
||||
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
|
||||
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
|
||||
Issuing::Token.object_name => Issuing::Token,
|
||||
|
||||
@ -65,11 +65,13 @@ require "stripe/resources/invoice"
|
||||
require "stripe/resources/invoice_item"
|
||||
require "stripe/resources/invoice_line_item"
|
||||
require "stripe/resources/invoice_payment"
|
||||
require "stripe/resources/invoice_rendering_template"
|
||||
require "stripe/resources/issuing/authorization"
|
||||
require "stripe/resources/issuing/card"
|
||||
require "stripe/resources/issuing/cardholder"
|
||||
require "stripe/resources/issuing/credit_underwriting_record"
|
||||
require "stripe/resources/issuing/dispute"
|
||||
require "stripe/resources/issuing/dispute_settlement_detail"
|
||||
require "stripe/resources/issuing/personalization_design"
|
||||
require "stripe/resources/issuing/physical_bundle"
|
||||
require "stripe/resources/issuing/token"
|
||||
|
||||
63
lib/stripe/resources/invoice_rendering_template.rb
Normal file
63
lib/stripe/resources/invoice_rendering_template.rb
Normal file
@ -0,0 +1,63 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
class InvoiceRenderingTemplate < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "invoice_rendering_template"
|
||||
def self.object_name
|
||||
"invoice_rendering_template"
|
||||
end
|
||||
|
||||
# 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.
|
||||
def archive(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/invoice_rendering_templates/%<template>s/archive", { template: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
# 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.
|
||||
def self.archive(template, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/invoice_rendering_templates/%<template>s/archive", { template: CGI.escape(template) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
# List all templates, ordered by creation date, with the most recently created template appearing first.
|
||||
def self.list(filters = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: "/v1/invoice_rendering_templates",
|
||||
params: filters,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
# Unarchive an invoice rendering template so it can be used on new Stripe objects again.
|
||||
def unarchive(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/invoice_rendering_templates/%<template>s/unarchive", { template: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
# Unarchive an invoice rendering template so it can be used on new Stripe objects again.
|
||||
def self.unarchive(template, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/invoice_rendering_templates/%<template>s/unarchive", { template: CGI.escape(template) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
26
lib/stripe/resources/issuing/dispute_settlement_detail.rb
Normal file
26
lib/stripe/resources/issuing/dispute_settlement_detail.rb
Normal file
@ -0,0 +1,26 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Issuing
|
||||
# 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.
|
||||
class DisputeSettlementDetail < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "issuing.dispute_settlement_detail"
|
||||
def self.object_name
|
||||
"issuing.dispute_settlement_detail"
|
||||
end
|
||||
|
||||
# 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.
|
||||
def self.list(filters = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: "/v1/issuing/dispute_settlement_details",
|
||||
params: filters,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -4,18 +4,11 @@
|
||||
module Stripe
|
||||
# A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period.
|
||||
class QuotePhase < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "quote_phase"
|
||||
def self.object_name
|
||||
"quote_phase"
|
||||
end
|
||||
|
||||
# Returns a list of quote phases.
|
||||
def self.list(filters = {}, opts = {})
|
||||
request_stripe_object(method: :get, path: "/v1/quote_phases", params: filters, opts: opts)
|
||||
end
|
||||
|
||||
# When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
||||
def list_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user