Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1187

Merged
merged 8 commits into from
Feb 22, 2021
Merged

API Updates #1187

merged 8 commits into from
Feb 22, 2021

Conversation

richardm-stripe
Copy link
Contributor

Codegen for openapi 403fdb8.
r? @richardm-stripe
cc @stripe/api-libraries

Changelog

  • Added support for new resource BillingPortal.Configuration
  • Added support for configuration and on_behalf_of on Session#create and BillingPortal.Session
  • WebhookEndpoint#create.enabled_events[] and WebhookEndpoint#update.enabled_events[] added new enum members: billing_portal.configuration.created and billing_portal.configuration.updated

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SubscriptionUpdateProduct extends StripeObject {
Copy link
Contributor

Choose a reason for hiding this comment

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

This one should be named Product so the client_metadata internally is wrong

import org.junit.jupiter.api.Test;

public class ConfigurationTest extends BaseStripeTest {
public static final String SESSION_ID = "bps_123";
Copy link
Contributor

Choose a reason for hiding this comment

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

bpc_123

@@ -0,0 +1,40 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't add this. stripe-mock should have the right fixtures instead so we should remove and fix the test above

@richardm-stripe
Copy link
Contributor Author

r? @remi-stripe

  • Removed extra test
  • SubscriptionUpdateProduct is now just Product per latest openapi

@richardm-stripe richardm-stripe merged commit 3810d5c into master Feb 22, 2021
@richardm-stripe richardm-stripe deleted the latest-codegen branch February 22, 2021 16:53
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.

2 participants