Skip to content

Commit ccd6128

Browse files
committed
Codegen for openapi v157
1 parent 998c290 commit ccd6128

24 files changed

+300
-18
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v154
1+
v157

src/Stripe.net/Entities/Accounts/AccountSettingsCardPayments.cs

+20
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,25 @@ public class AccountSettingsCardPayments : StripeEntity<AccountSettingsCardPayme
1616
/// </summary>
1717
[JsonProperty("statement_descriptor_prefix")]
1818
public string StatementDescriptorPrefix { get; set; }
19+
20+
/// <summary>
21+
/// The Kana variation of the default text that appears on credit card statements when a
22+
/// charge is made (Japan only). This field prefixes any dynamic
23+
/// <c>statement_descriptor_suffix_kana</c> specified on the charge.
24+
/// <c>statement_descriptor_prefix_kana</c> is useful for maximizing descriptor space for
25+
/// the dynamic portion.
26+
/// </summary>
27+
[JsonProperty("statement_descriptor_prefix_kana")]
28+
public string StatementDescriptorPrefixKana { get; set; }
29+
30+
/// <summary>
31+
/// The Kanji variation of the default text that appears on credit card statements when a
32+
/// charge is made (Japan only). This field prefixes any dynamic
33+
/// <c>statement_descriptor_suffix_kanji</c> specified on the charge.
34+
/// <c>statement_descriptor_prefix_kanji</c> is useful for maximizing descriptor space for
35+
/// the dynamic portion.
36+
/// </summary>
37+
[JsonProperty("statement_descriptor_prefix_kanji")]
38+
public string StatementDescriptorPrefixKanji { get; set; }
1939
}
2040
}

src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs

+20
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,25 @@ public class AccountSettingsPayments : StripeEntity<AccountSettingsPayments>
2525
/// </summary>
2626
[JsonProperty("statement_descriptor_kanji")]
2727
public string StatementDescriptorKanji { get; set; }
28+
29+
/// <summary>
30+
/// The Kana variation of the default text that appears on credit card statements when a
31+
/// charge is made (Japan only). This field prefixes any dynamic
32+
/// <c>statement_descriptor_suffix_kana</c> specified on the charge.
33+
/// <c>statement_descriptor_prefix_kana</c> is useful for maximizing descriptor space for
34+
/// the dynamic portion.
35+
/// </summary>
36+
[JsonProperty("statement_descriptor_prefix_kana")]
37+
public string StatementDescriptorPrefixKana { get; set; }
38+
39+
/// <summary>
40+
/// The Kanji variation of the default text that appears on credit card statements when a
41+
/// charge is made (Japan only). This field prefixes any dynamic
42+
/// <c>statement_descriptor_suffix_kanji</c> specified on the charge.
43+
/// <c>statement_descriptor_prefix_kanji</c> is useful for maximizing descriptor space for
44+
/// the dynamic portion.
45+
/// </summary>
46+
[JsonProperty("statement_descriptor_prefix_kanji")]
47+
public string StatementDescriptorPrefixKanji { get; set; }
2848
}
2949
}

src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCard.cs

+20
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,25 @@ public class SessionPaymentMethodOptionsCard : StripeEntity<SessionPaymentMethod
2424
/// </summary>
2525
[JsonProperty("setup_future_usage")]
2626
public string SetupFutureUsage { get; set; }
27+
28+
/// <summary>
29+
/// Provides information about a card payment that customers see on their statements.
30+
/// Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement
31+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
32+
/// 22 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
33+
/// (including separators) will appear truncated to 22 characters.
34+
/// </summary>
35+
[JsonProperty("statement_descriptor_suffix_kana")]
36+
public string StatementDescriptorSuffixKana { get; set; }
37+
38+
/// <summary>
39+
/// Provides information about a card payment that customers see on their statements.
40+
/// Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement
41+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
42+
/// 17 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
43+
/// (including separators) will appear truncated to 17 characters.
44+
/// </summary>
45+
[JsonProperty("statement_descriptor_suffix_kanji")]
46+
public string StatementDescriptorSuffixKanji { get; set; }
2747
}
2848
}

src/Stripe.net/Entities/CreditNotes/CreditNote.cs

+9-2
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ public Refund Refund
249249
public string Status { get; set; }
250250

251251
/// <summary>
252-
/// The integer amount in %s representing the amount of the credit note, excluding tax and
253-
/// invoice level discounts.
252+
/// The integer amount in %s representing the amount of the credit note, excluding exclusive
253+
/// tax and invoice level discounts.
254254
/// </summary>
255255
[JsonProperty("subtotal")]
256256
public long Subtotal { get; set; }
@@ -268,6 +268,13 @@ public Refund Refund
268268
[JsonProperty("total")]
269269
public long Total { get; set; }
270270

271+
/// <summary>
272+
/// The integer amount in %s representing the total amount of the credit note, excluding
273+
/// tax, but including discounts.
274+
/// </summary>
275+
[JsonProperty("total_excluding_tax")]
276+
public long? TotalExcludingTax { get; set; }
277+
271278
/// <summary>
272279
/// Type of this credit note, one of <c>pre_payment</c> or <c>post_payment</c>. A
273280
/// <c>pre_payment</c> credit note means it was issued when the invoice was open. A

src/Stripe.net/Entities/Customers/CustomerInvoiceSettings.cs

+6
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,11 @@ public PaymentMethod DefaultPaymentMethod
5151
/// </summary>
5252
[JsonProperty("footer")]
5353
public string Footer { get; set; }
54+
55+
/// <summary>
56+
/// Default options for invoice PDF rendering for this customer.
57+
/// </summary>
58+
[JsonProperty("rendering_options")]
59+
public CustomerInvoiceSettingsRenderingOptions RenderingOptions { get; set; }
5460
}
5561
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class CustomerInvoiceSettingsRenderingOptions : StripeEntity<CustomerInvoiceSettingsRenderingOptions>
7+
{
8+
/// <summary>
9+
/// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
10+
/// </summary>
11+
[JsonProperty("amount_tax_display")]
12+
public string AmountTaxDisplay { get; set; }
13+
}
14+
}

src/Stripe.net/Entities/Invoices/Invoice.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,12 @@ public Quote Quote
720720
[JsonProperty("receipt_number")]
721721
public string ReceiptNumber { get; set; }
722722

723+
/// <summary>
724+
/// Options for invoice PDF rendering.
725+
/// </summary>
726+
[JsonProperty("rendering_options")]
727+
public InvoiceRenderingOptions RenderingOptions { get; set; }
728+
723729
/// <summary>
724730
/// Starting customer balance before the invoice is finalized. If the invoice has not been
725731
/// finalized yet, this will be the current customer balance.
@@ -788,7 +794,8 @@ public Subscription Subscription
788794

789795
/// <summary>
790796
/// Total of all subscriptions, invoice items, and prorations on the invoice before any
791-
/// invoice level discount or tax is applied. Item discounts are already incorporated.
797+
/// invoice level discount or exclusive tax is applied. Item discounts are already
798+
/// incorporated.
792799
/// </summary>
793800
[JsonProperty("subtotal")]
794801
public long Subtotal { get; set; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class InvoiceRenderingOptions : StripeEntity<InvoiceRenderingOptions>
7+
{
8+
/// <summary>
9+
/// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
10+
/// </summary>
11+
[JsonProperty("amount_tax_display")]
12+
public string AmountTaxDisplay { get; set; }
13+
}
14+
}

src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs

+20
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,25 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentP
7070
/// </summary>
7171
[JsonProperty("setup_future_usage")]
7272
public string SetupFutureUsage { get; set; }
73+
74+
/// <summary>
75+
/// Provides information about a card payment that customers see on their statements.
76+
/// Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement
77+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
78+
/// 22 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
79+
/// (including separators) will appear truncated to 22 characters.
80+
/// </summary>
81+
[JsonProperty("statement_descriptor_suffix_kana")]
82+
public string StatementDescriptorSuffixKana { get; set; }
83+
84+
/// <summary>
85+
/// Provides information about a card payment that customers see on their statements.
86+
/// Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement
87+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
88+
/// 17 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
89+
/// (including separators) will appear truncated to 17 characters.
90+
/// </summary>
91+
[JsonProperty("statement_descriptor_suffix_kanji")]
92+
public string StatementDescriptorSuffixKanji { get; set; }
7393
}
7494
}

src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public class CreditReversal : StripeEntity<CreditReversal>, IHasId, IHasMetadata
4646
public string FinancialAccount { get; set; }
4747

4848
/// <summary>
49-
/// A hosted transaction receipt URL that is provided when money movement is considered
50-
/// regulated under Stripe's money transmission licenses.
49+
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
50+
/// transaction receipt</a> URL that is provided when money movement is considered regulated
51+
/// under Stripe's money transmission licenses.
5152
/// </summary>
5253
[JsonProperty("hosted_regulatory_receipt_url")]
5354
public string HostedRegulatoryReceiptUrl { get; set; }

src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public class DebitReversal : StripeEntity<DebitReversal>, IHasId, IHasMetadata,
4646
public string FinancialAccount { get; set; }
4747

4848
/// <summary>
49-
/// A hosted transaction receipt URL that is provided when money movement is considered
50-
/// regulated under Stripe's money transmission licenses.
49+
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
50+
/// transaction receipt</a> URL that is provided when money movement is considered regulated
51+
/// under Stripe's money transmission licenses.
5152
/// </summary>
5253
[JsonProperty("hosted_regulatory_receipt_url")]
5354
public string HostedRegulatoryReceiptUrl { get; set; }

src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ namespace Stripe.Treasury
77
using Stripe.Infrastructure;
88

99
/// <summary>
10-
/// Use InboundTransfers to add funds to your <a
10+
/// Use <a
11+
/// href="https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers</a>
12+
/// to add funds to your <a
1113
/// href="https://stripe.com/docs/api#financial_accounts">FinancialAccount</a> via a
1214
/// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
1315
/// </summary>
@@ -71,8 +73,9 @@ public class InboundTransfer : StripeEntity<InboundTransfer>, IHasId, IHasMetada
7173
public string FinancialAccount { get; set; }
7274

7375
/// <summary>
74-
/// A hosted transaction receipt URL that is provided when money movement is considered
75-
/// regulated under Stripe's money transmission licenses.
76+
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
77+
/// transaction receipt</a> URL that is provided when money movement is considered regulated
78+
/// under Stripe's money transmission licenses.
7679
/// </summary>
7780
[JsonProperty("hosted_regulatory_receipt_url")]
7881
public string HostedRegulatoryReceiptUrl { get; set; }

src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public class OutboundPayment : StripeEntity<OutboundPayment>, IHasId, IHasMetada
5858
public string Currency { get; set; }
5959

6060
/// <summary>
61-
/// ID of the customer to whom an OutboundPayment is sent.
61+
/// ID of the <a href="https://stripe.com/docs/api/customers">customer</a> to whom an
62+
/// OutboundPayment is sent.
6263
/// </summary>
6364
[JsonProperty("customer")]
6465
public string Customer { get; set; }
@@ -102,8 +103,9 @@ public class OutboundPayment : StripeEntity<OutboundPayment>, IHasId, IHasMetada
102103
public string FinancialAccount { get; set; }
103104

104105
/// <summary>
105-
/// A hosted transaction receipt URL that is provided when money movement is considered
106-
/// regulated under Stripe's money transmission licenses.
106+
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
107+
/// transaction receipt</a> URL that is provided when money movement is considered regulated
108+
/// under Stripe's money transmission licenses.
107109
/// </summary>
108110
[JsonProperty("hosted_regulatory_receipt_url")]
109111
public string HostedRegulatoryReceiptUrl { get; set; }

src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public class OutboundTransfer : StripeEntity<OutboundTransfer>, IHasId, IHasMeta
8888
public string FinancialAccount { get; set; }
8989

9090
/// <summary>
91-
/// A hosted transaction receipt URL that is provided when money movement is considered
92-
/// regulated under Stripe's money transmission licenses.
91+
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
92+
/// transaction receipt</a> URL that is provided when money movement is considered regulated
93+
/// under Stripe's money transmission licenses.
9394
/// </summary>
9495
[JsonProperty("hosted_regulatory_receipt_url")]
9596
public string HostedRegulatoryReceiptUrl { get; set; }

src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntryFlowDetails.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public class TransactionEntryFlowDetails : StripeEntity<TransactionEntryFlowDeta
2424
public DebitReversal DebitReversal { get; set; }
2525

2626
/// <summary>
27-
/// Use InboundTransfers to add funds to your <a
27+
/// Use <a
28+
/// href="https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers</a>
29+
/// to add funds to your <a
2830
/// href="https://stripe.com/docs/api#financial_accounts">FinancialAccount</a> via a
2931
/// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
3032
/// </summary>

src/Stripe.net/Entities/Treasury/Transactions/TransactionFlowDetails.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public class TransactionFlowDetails : StripeEntity<TransactionFlowDetails>
2424
public DebitReversal DebitReversal { get; set; }
2525

2626
/// <summary>
27-
/// Use InboundTransfers to add funds to your <a
27+
/// Use <a
28+
/// href="https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers</a>
29+
/// to add funds to your <a
2830
/// href="https://stripe.com/docs/api#financial_accounts">FinancialAccount</a> via a
2931
/// PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
3032
/// </summary>

src/Stripe.net/Services/Accounts/AccountSettingsCardPaymentsOptions.cs

+20
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,25 @@ public class AccountSettingsCardPaymentsOptions : INestedOptions
2020
/// </summary>
2121
[JsonProperty("statement_descriptor_prefix")]
2222
public string StatementDescriptorPrefix { get; set; }
23+
24+
/// <summary>
25+
/// The Kana variation of the default text that appears on credit card statements when a
26+
/// charge is made (Japan only). This field prefixes any dynamic
27+
/// <c>statement_descriptor_suffix_kana</c> specified on the charge.
28+
/// <c>statement_descriptor_prefix_kana</c> is useful for maximizing descriptor space for
29+
/// the dynamic portion.
30+
/// </summary>
31+
[JsonProperty("statement_descriptor_prefix_kana")]
32+
public string StatementDescriptorPrefixKana { get; set; }
33+
34+
/// <summary>
35+
/// The Kanji variation of the default text that appears on credit card statements when a
36+
/// charge is made (Japan only). This field prefixes any dynamic
37+
/// <c>statement_descriptor_suffix_kanji</c> specified on the charge.
38+
/// <c>statement_descriptor_prefix_kanji</c> is useful for maximizing descriptor space for
39+
/// the dynamic portion.
40+
/// </summary>
41+
[JsonProperty("statement_descriptor_prefix_kanji")]
42+
public string StatementDescriptorPrefixKanji { get; set; }
2343
}
2444
}

src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCardOptions.cs

+20
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,25 @@ public class SessionPaymentMethodOptionsCardOptions : INestedOptions
2424
/// </summary>
2525
[JsonProperty("setup_future_usage")]
2626
public string SetupFutureUsage { get; set; }
27+
28+
/// <summary>
29+
/// Provides information about a card payment that customers see on their statements.
30+
/// Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement
31+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
32+
/// 22 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
33+
/// (including separators) will appear truncated to 22 characters.
34+
/// </summary>
35+
[JsonProperty("statement_descriptor_suffix_kana")]
36+
public string StatementDescriptorSuffixKana { get; set; }
37+
38+
/// <summary>
39+
/// Provides information about a card payment that customers see on their statements.
40+
/// Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement
41+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
42+
/// 17 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
43+
/// (including separators) will appear truncated to 17 characters.
44+
/// </summary>
45+
[JsonProperty("statement_descriptor_suffix_kanji")]
46+
public string StatementDescriptorSuffixKanji { get; set; }
2747
}
2848
}

src/Stripe.net/Services/Customers/CustomerInvoiceSettingsRenderingOptionsOptions.cs

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ public class CustomerInvoiceSettingsRenderingOptionsOptions : INestedOptions
77
{
88
/// <summary>
99
/// How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
10+
/// One of <c>exclude_tax</c> or <c>include_inclusive_tax</c>. <c>include_inclusive_tax</c>
11+
/// will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts.
12+
/// <c>exclude_tax</c> will exclude all tax (inclusive and exclusive alike) from invoice PDF
13+
/// amounts.
1014
/// </summary>
1115
[JsonProperty("amount_tax_display")]
1216
public string AmountTaxDisplay { get; set; }

src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs

+20
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,25 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions
9595
/// </summary>
9696
[JsonProperty("setup_future_usage")]
9797
public string SetupFutureUsage { get; set; }
98+
99+
/// <summary>
100+
/// Provides information about a card payment that customers see on their statements.
101+
/// Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement
102+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
103+
/// 22 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
104+
/// (including separators) will appear truncated to 22 characters.
105+
/// </summary>
106+
[JsonProperty("statement_descriptor_suffix_kana")]
107+
public string StatementDescriptorSuffixKana { get; set; }
108+
109+
/// <summary>
110+
/// Provides information about a card payment that customers see on their statements.
111+
/// Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement
112+
/// descriptor that’s set on the account to form the complete statement descriptor. Maximum
113+
/// 17 characters. On card statements, the <em>concatenation</em> of both prefix and suffix
114+
/// (including separators) will appear truncated to 17 characters.
115+
/// </summary>
116+
[JsonProperty("statement_descriptor_suffix_kanji")]
117+
public string StatementDescriptorSuffixKanji { get; set; }
98118
}
99119
}

0 commit comments

Comments
 (0)