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

Remove all beta properties and parameters from the Issuing API #1968

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

remi-stripe
Copy link
Contributor

@remi-stripe remi-stripe commented Mar 27, 2020

This PR removes all the deprecated features associated with Issuing's beta before the GA happened. It also cleans up naming of various classes to mirror our current logic based on the openapi spec to ensure we will codegen the information reliably.

r? @richardm-stripe
cc @stripe/api-libraries

@ob-stripe
Copy link
Contributor

@remi-stripe Same, should we close this for now?

@remi-stripe remi-stripe changed the title Remove all beta properties and parameters from the Issuing API [WIP][donotmerge]Remove all beta properties and parameters from the Issuing API Mar 31, 2020
@remi-stripe
Copy link
Contributor Author

I'd like to keep the PR but I changed the title to be clear it's on hold until later this week

@ob-stripe
Copy link
Contributor

I've reset the integration-v36 branch, so you'll need to rebase to remove the extra commits.

@ob-stripe ob-stripe removed their assignment Apr 3, 2020
@remi-stripe remi-stripe force-pushed the remi-issuing-remove-pre-ga branch 2 times, most recently from 34675ef to 48a03c1 Compare April 16, 2020 01:44
@remi-stripe remi-stripe changed the title [WIP][donotmerge]Remove all beta properties and parameters from the Issuing API Remove all beta properties and parameters from the Issuing API Apr 16, 2020
@remi-stripe remi-stripe force-pushed the remi-issuing-remove-pre-ga branch 3 times, most recently from 0c10df0 to cdcacc3 Compare April 16, 2020 01:57
/// <summary>
/// The cardholder’s billing address.
/// </summary>
[JsonProperty("billing")]
public Billing Billing { get; set; }
public CardholderBilling Billing { get; set; }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one where I'm not sure of this decision. I originally used Billing to mirror what we do in our payments APIs because billing is often a common hash we share. Here though I think mirroring the spec is cleaner and will help codegen for dotnet in the future.
cc @cjavilla-stripe as we recently changed the docs so we'll need to revert that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we decided to mirror java and the spec so this change is approved

@@ -5,54 +5,25 @@ namespace Stripe.Issuing
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class Dispute : StripeEntity<Dispute>, IHasId, IHasMetadata, IHasObject
public class Dispute : StripeEntity<Dispute>, IHasId, IHasObject
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We limited the Issuing Dispute API entirely for now as we re-design it.

[JsonIgnore]
public string AuthorizationId
{
get => this.InternalAuthorization?.Id;
set => this.InternalAuthorization = SetExpandableFieldId(value, this.InternalAuthorization);
}

/// <summary>
/// (Expanded)) The <see cref="Authorization"/> associated with this transaction.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should only be one close paren here, I think

[JsonIgnore]
public string BalanceTransactionId
{
get => this.InternalBalanceTransaction?.Id;
set => this.InternalBalanceTransaction = SetExpandableFieldId(value, this.InternalBalanceTransaction);
}

/// <summary>
/// (Expanded)) The <see cref="BalanceTransaction"/> associated with this transaction.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/(Expanded))/(Expanded)

[JsonIgnore]
public string CardId
{
get => this.InternalCard?.Id;
set => this.InternalCard = SetExpandableFieldId(value, this.InternalCard);
}

/// <summary>
/// (Expanded)) The <see cref="Card"/> associated with this transaction.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/(Expanded))/(Expanded)

Copy link
Contributor

@richardm-stripe richardm-stripe left a comment

Choose a reason for hiding this comment

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

lgtm

@remi-stripe remi-stripe force-pushed the remi-issuing-remove-pre-ga branch from cdcacc3 to 32ebd0e Compare April 16, 2020 21:08
@remi-stripe
Copy link
Contributor Author

Fixed, waiting for tests to pass to be safe and then merging

@remi-stripe remi-stripe merged commit 433e0b1 into integration-v36 Apr 16, 2020
@remi-stripe remi-stripe deleted the remi-issuing-remove-pre-ga branch April 16, 2020 21:20
@remi-stripe remi-stripe mentioned this pull request Apr 16, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants