File tree 5 files changed +57
-2
lines changed
main/java/com/stripe/model
test/java/com/stripe/functional
5 files changed +57
-2
lines changed Original file line number Diff line number Diff line change
1
+ // File generated from our OpenAPI spec
2
+ package com .stripe .model ;
3
+
4
+ import com .google .gson .annotations .SerializedName ;
5
+ import java .util .List ;
6
+ import lombok .EqualsAndHashCode ;
7
+ import lombok .Getter ;
8
+ import lombok .Setter ;
9
+
10
+ @ Getter
11
+ @ Setter
12
+ @ EqualsAndHashCode (callSuper = false )
13
+ public class CreditedItems extends StripeObject {
14
+ /** Invoice containing the credited invoice line items. */
15
+ @ SerializedName ("invoice" )
16
+ String invoice ;
17
+
18
+ /** Credited invoice line items. */
19
+ @ SerializedName ("invoice_line_items" )
20
+ List <String > invoiceLineItems ;
21
+ }
Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ public class InvoiceLineItem extends StripeObject implements HasId {
95
95
@ SerializedName ("proration" )
96
96
Boolean proration ;
97
97
98
+ /** Additional details for proration line items. */
99
+ @ SerializedName ("proration_details" )
100
+ ProrationDetails prorationDetails ;
101
+
98
102
/** The quantity of the subscription, if the line item is a subscription or a proration. */
99
103
@ SerializedName ("quantity" )
100
104
Long quantity ;
Original file line number Diff line number Diff line change
1
+ // File generated from our OpenAPI spec
2
+ package com .stripe .model ;
3
+
4
+ import com .google .gson .annotations .SerializedName ;
5
+ import lombok .EqualsAndHashCode ;
6
+ import lombok .Getter ;
7
+ import lombok .Setter ;
8
+
9
+ @ Getter
10
+ @ Setter
11
+ @ EqualsAndHashCode (callSuper = false )
12
+ public class ProrationDetails extends StripeObject {
13
+ /**
14
+ * For a credit proration {@code line_item}, the original debit line_items to which the credit
15
+ * proration applies.
16
+ */
17
+ @ SerializedName ("credited_items" )
18
+ CreditedItems creditedItems ;
19
+ }
Original file line number Diff line number Diff line change
1
+ // File generated from our OpenAPI spec
2
+ package com .stripe .model ;
3
+
4
+ import lombok .EqualsAndHashCode ;
5
+ import lombok .Getter ;
6
+ import lombok .Setter ;
7
+
8
+ @ Getter
9
+ @ Setter
10
+ @ EqualsAndHashCode (callSuper = false )
11
+ public class SetupIntentTypeSpecificPaymentMethodOptionsClient extends StripeObject {}
Original file line number Diff line number Diff line change @@ -3041,7 +3041,7 @@ public void testTestClockDelete() throws StripeException {
3041
3041
com .stripe .model .testhelpers .TestClock resource =
3042
3042
com .stripe .model .testhelpers .TestClock .retrieve ("clock_xyz" );
3043
3043
3044
- com .stripe .model .testhelpers .TestClock testClock = resource .delete ();
3044
+ com .stripe .model .testhelpers .TestClock testClock = resource .getTestHelpers (). delete ();
3045
3045
assertNotNull (testClock );
3046
3046
verifyRequest (ApiResource .RequestMethod .DELETE , "/v1/test_helpers/test_clocks/clock_xyz" );
3047
3047
}
@@ -3053,7 +3053,7 @@ public void testTestClockAdvance() throws StripeException {
3053
3053
com .stripe .param .testhelpers .TestClockAdvanceParams params =
3054
3054
com .stripe .param .testhelpers .TestClockAdvanceParams .builder ().setFrozenTime (142L ).build ();
3055
3055
3056
- com .stripe .model .testhelpers .TestClock testClock = resource .advance (params );
3056
+ com .stripe .model .testhelpers .TestClock testClock = resource .getTestHelpers (). advance (params );
3057
3057
assertNotNull (testClock );
3058
3058
verifyRequest (
3059
3059
ApiResource .RequestMethod .POST ,
You can’t perform that action at this time.
0 commit comments