Merge pull request #1446 from stripe/latest-codegen-beta

Update generated code for beta
This commit is contained in:
stripe-openapi[bot] 2024-09-13 10:53:34 -07:00 committed by GitHub
commit 8b34c0f101
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 94 additions and 8 deletions

View File

@ -1 +1 @@
v1247
v1258

View File

@ -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,

View File

@ -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"

View 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

View 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

View File

@ -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(