Skip to content

Conversation

@mickjermsurawong-stripe
Copy link
Contributor


@Test
public void testCreateWithParams() throws StripeException {
SkuCreateParams.Inventory inventory = SkuCreateParams.Inventory.builder()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inner inventory object passed as argument to the parent param builder.

verifyRequest(
ApiResource.RequestMethod.POST,
String.format("/v1/invoices/%s", invoice.getId()),
paramsWithEmpty
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify that "EMPTY" enums are serialized as nulls

.addExpand("review")
.addExpand("source")
.addExpand("transfer_data.destination")
.build();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic expand params

@mickjermsurawong-stripe mickjermsurawong-stripe force-pushed the mickjermsurawong/typed-param-example branch 2 times, most recently from 2e0e183 to a648412 Compare February 19, 2019 16:59
@brandur-stripe
Copy link
Contributor

OMG this is freaking awesome. Everyone using stripe-java is going to love you for this, haha.

@mickjermsurawong-stripe
Copy link
Contributor Author

thanks @brandur-stripe! :)

@mickjermsurawong-stripe mickjermsurawong-stripe force-pushed the mickjermsurawong/support-typed-params branch from b5c3ee3 to f22e048 Compare February 21, 2019 05:40
@mickjermsurawong-stripe mickjermsurawong-stripe force-pushed the mickjermsurawong/typed-param-example branch from a648412 to f85f773 Compare February 21, 2019 05:49
@mickjermsurawong-stripe mickjermsurawong-stripe force-pushed the mickjermsurawong/typed-param-example branch from f85f773 to 793b24a Compare February 21, 2019 18:03
@mickjermsurawong-stripe mickjermsurawong-stripe force-pushed the mickjermsurawong/support-typed-params branch from 4add333 to a2e28d2 Compare February 22, 2019 23:00
@remi-stripe remi-stripe deleted the mickjermsurawong/typed-param-example branch April 19, 2019 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants