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

Constants.PaymentMethod missing Braintree #643

Closed
bgilbert6 opened this issue Jun 11, 2021 · 2 comments
Closed

Constants.PaymentMethod missing Braintree #643

bgilbert6 opened this issue Jun 11, 2021 · 2 comments
Assignees
Labels
bug V4 v2021-02-25 Client

Comments

@bgilbert6
Copy link

Describe the bug

When deserializing JSON output from Recurly, braintree ends up "Undefined", because it isn't in Constants.cs.

To Reproduce

Call GET BillingInfo with a billing info backed by braintree. The braintree payment_method is: object=braintree_v_zero

You can see this isn't included in Constants.PaymentMethod:



public enum PaymentMethod        
{            
            Undefined = 0,
            [EnumMember(Value = "amazon")]            Amazon,
            [EnumMember(Value = "amazon_billing_agreement")]            AmazonBillingAgreement,
            [EnumMember(Value = "apple_pay")]            ApplePay,
            [EnumMember(Value = "bank_account_info")]            BankAccountInfo,
            [EnumMember(Value = "check")]            Check,
            [EnumMember(Value = "credit_card")]            CreditCard,
            [EnumMember(Value = "eft")]            Eft,
            [EnumMember(Value = "gateway_token")]            GatewayToken,
            [EnumMember(Value = "iban_bank_account")]            IbanBankAccount,
            [EnumMember(Value = "money_order")]            MoneyOrder,
            [EnumMember(Value = "other")]            Other,
            [EnumMember(Value = "paypal")]            Paypal,
            [EnumMember(Value = "paypal_billing_agreement")]            PaypalBillingAgreement,
            [EnumMember(Value = "roku")]            Roku,
            [EnumMember(Value = "sepadirectdebit")]            Sepadirectdebit,
            [EnumMember(Value = "wire_transfer")]            WireTransfer,
};

Expected behavior

Braintree should map to a Braintree payment method

Your Environment

  • Which version of this library are you using? The lastest dotnet
  • Which version of the language are you using? .NET Core 3.1
@bgilbert6 bgilbert6 added the bug? label Jun 11, 2021
@douglasmiller
Copy link
Contributor

@bgilbert6, I am sorry that it has taken us so long to address this issue. We will have the BraintreeVZero enum added soon. We will update you when it has been released.

@douglasmiller douglasmiller added bug V4 v2021-02-25 Client and removed bug? labels Sep 16, 2021
@rer7891
Copy link
Contributor

rer7891 commented Oct 6, 2021

@bgilbert6 I'm happy to report that the BraintreeVZero enum has been updated and released. Please let us know if you have any additional issues.

@rer7891 rer7891 closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V4 v2021-02-25 Client
Projects
None yet
Development

No branches or pull requests

3 participants