stripe 12.6.0.pre.beta.1 → 12.7.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9f4ba2da7352ff0b55b6aaabb9403d86060bde47ca9c76cfdafb318e1c2bddc
4
- data.tar.gz: fd8a86aad92a2fd84eea8745241a39ff81aed6071fa5b011f029a89b637ba312
3
+ metadata.gz: 2a28eea7210e0da0558af21bc838ee11c187d3430a33311cb70ae7a04e2a851f
4
+ data.tar.gz: 737bd1a6a90163853edfb5224f6d0e22e2fa1aba9b393c8688a67a011740cb45
5
5
  SHA512:
6
- metadata.gz: f5ba81a88f03f0410784051a44a12cbcd0066b240b67184877aba58b24b7ddf676a131043958088853fe0a6777ac4cf228b373395f623a48596435ac3e272302
7
- data.tar.gz: 6c626f8d4335a57e7a405ce33663b7991e36320ee25893f742d4ff0918b9c7b513dd31bb406bb6e4bd3da63cf00dc934808b0cd0ee1f1867346d1a7e3a7ec837
6
+ metadata.gz: 2d632ecbccee9bb3cdf7389ebdf83b301533d16c0c1787f23d31c6acd7d85c4663c74d85e9b0afab9f55fb22adf0bb252455fd3a01aa0ca1ca00c45220a4ed7c
7
+ data.tar.gz: 2f08772bfb81b88ff1310b677470342d41110dd0361e4ff6ea784af7efd37c720a8443e57287d104b49c080aa8b73c50dbf649b52ee72cff3c8e692d4355c2a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.7.0-beta.1 - 2024-09-13
4
+ * [#1446](https://github.com/stripe/stripe-ruby/pull/1446) Update generated code for beta
5
+ * Add support for new resources `Issuing.DisputeSettlementDetail` and `Issuing.Settlement`
6
+ * Add support for `list` and `retrieve` methods on resource `DisputeSettlementDetail`
7
+ * Remove support for `list` method on resource `QuotePhase`
8
+
3
9
  ## 12.6.0-beta.1 - 2024-09-05
4
10
  * [#1441](https://github.com/stripe/stripe-ruby/pull/1441) Update generated code for beta
5
11
  * Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1247
1
+ v1258
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.6.0-beta.1
1
+ 12.7.0-beta.1
@@ -78,11 +78,13 @@ module Stripe
78
78
  InvoiceItem.object_name => InvoiceItem,
79
79
  InvoiceLineItem.object_name => InvoiceLineItem,
80
80
  InvoicePayment.object_name => InvoicePayment,
81
+ InvoiceRenderingTemplate.object_name => InvoiceRenderingTemplate,
81
82
  Issuing::Authorization.object_name => Issuing::Authorization,
82
83
  Issuing::Card.object_name => Issuing::Card,
83
84
  Issuing::Cardholder.object_name => Issuing::Cardholder,
84
85
  Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
85
86
  Issuing::Dispute.object_name => Issuing::Dispute,
87
+ Issuing::DisputeSettlementDetail.object_name => Issuing::DisputeSettlementDetail,
86
88
  Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
87
89
  Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
88
90
  Issuing::Token.object_name => Issuing::Token,
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class InvoiceRenderingTemplate < APIResource
6
+ extend Stripe::APIOperations::List
7
+
8
+ OBJECT_NAME = "invoice_rendering_template"
9
+ def self.object_name
10
+ "invoice_rendering_template"
11
+ end
12
+
13
+ # 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.
14
+ def archive(params = {}, opts = {})
15
+ request_stripe_object(
16
+ method: :post,
17
+ path: format("/v1/invoice_rendering_templates/%<template>s/archive", { template: CGI.escape(self["id"]) }),
18
+ params: params,
19
+ opts: opts
20
+ )
21
+ end
22
+
23
+ # 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.
24
+ def self.archive(template, params = {}, opts = {})
25
+ request_stripe_object(
26
+ method: :post,
27
+ path: format("/v1/invoice_rendering_templates/%<template>s/archive", { template: CGI.escape(template) }),
28
+ params: params,
29
+ opts: opts
30
+ )
31
+ end
32
+
33
+ # List all templates, ordered by creation date, with the most recently created template appearing first.
34
+ def self.list(filters = {}, opts = {})
35
+ request_stripe_object(
36
+ method: :get,
37
+ path: "/v1/invoice_rendering_templates",
38
+ params: filters,
39
+ opts: opts
40
+ )
41
+ end
42
+
43
+ # Unarchive an invoice rendering template so it can be used on new Stripe objects again.
44
+ def unarchive(params = {}, opts = {})
45
+ request_stripe_object(
46
+ method: :post,
47
+ path: format("/v1/invoice_rendering_templates/%<template>s/unarchive", { template: CGI.escape(self["id"]) }),
48
+ params: params,
49
+ opts: opts
50
+ )
51
+ end
52
+
53
+ # Unarchive an invoice rendering template so it can be used on new Stripe objects again.
54
+ def self.unarchive(template, params = {}, opts = {})
55
+ request_stripe_object(
56
+ method: :post,
57
+ path: format("/v1/invoice_rendering_templates/%<template>s/unarchive", { template: CGI.escape(template) }),
58
+ params: params,
59
+ opts: opts
60
+ )
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,26 @@
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
+ # 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.
16
+ def self.list(filters = {}, opts = {})
17
+ request_stripe_object(
18
+ method: :get,
19
+ path: "/v1/issuing/dispute_settlement_details",
20
+ params: filters,
21
+ opts: opts
22
+ )
23
+ end
24
+ end
25
+ end
26
+ end
@@ -4,18 +4,11 @@
4
4
  module Stripe
5
5
  # A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period.
6
6
  class QuotePhase < APIResource
7
- extend Stripe::APIOperations::List
8
-
9
7
  OBJECT_NAME = "quote_phase"
10
8
  def self.object_name
11
9
  "quote_phase"
12
10
  end
13
11
 
14
- # Returns a list of quote phases.
15
- def self.list(filters = {}, opts = {})
16
- request_stripe_object(method: :get, path: "/v1/quote_phases", params: filters, opts: opts)
17
- end
18
-
19
12
  # 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.
20
13
  def list_line_items(params = {}, opts = {})
21
14
  request_stripe_object(
@@ -65,11 +65,13 @@ require "stripe/resources/invoice"
65
65
  require "stripe/resources/invoice_item"
66
66
  require "stripe/resources/invoice_line_item"
67
67
  require "stripe/resources/invoice_payment"
68
+ require "stripe/resources/invoice_rendering_template"
68
69
  require "stripe/resources/issuing/authorization"
69
70
  require "stripe/resources/issuing/card"
70
71
  require "stripe/resources/issuing/cardholder"
71
72
  require "stripe/resources/issuing/credit_underwriting_record"
72
73
  require "stripe/resources/issuing/dispute"
74
+ require "stripe/resources/issuing/dispute_settlement_detail"
73
75
  require "stripe/resources/issuing/personalization_design"
74
76
  require "stripe/resources/issuing/physical_bundle"
75
77
  require "stripe/resources/issuing/token"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "12.6.0-beta.1"
4
+ VERSION = "12.7.0-beta.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.6.0.pre.beta.1
4
+ version: 12.7.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -118,11 +118,13 @@ files:
118
118
  - lib/stripe/resources/invoice_item.rb
119
119
  - lib/stripe/resources/invoice_line_item.rb
120
120
  - lib/stripe/resources/invoice_payment.rb
121
+ - lib/stripe/resources/invoice_rendering_template.rb
121
122
  - lib/stripe/resources/issuing/authorization.rb
122
123
  - lib/stripe/resources/issuing/card.rb
123
124
  - lib/stripe/resources/issuing/cardholder.rb
124
125
  - lib/stripe/resources/issuing/credit_underwriting_record.rb
125
126
  - lib/stripe/resources/issuing/dispute.rb
127
+ - lib/stripe/resources/issuing/dispute_settlement_detail.rb
126
128
  - lib/stripe/resources/issuing/personalization_design.rb
127
129
  - lib/stripe/resources/issuing/physical_bundle.rb
128
130
  - lib/stripe/resources/issuing/token.rb