Skip to content

Commit

Permalink
fix enum naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyn committed Oct 4, 2022
1 parent d4cd6b6 commit d808390
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 56 deletions.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"supportsES6": true,
"generateAliasAsModel": true
"generateAliasAsModel": true,
"enumPropertyNaming":"original"
}
110 changes: 55 additions & 55 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,9 @@ export interface PaymentBillingDetails {
* @enum {string}
*/
export enum PaymentCancellationReason {
Duplicated = 'duplicated',
Fraudulent = 'fraudulent',
RequestedByCustomer = 'requested_by_customer'
duplicated = 'duplicated',
fraudulent = 'fraudulent',
requested_by_customer = 'requested_by_customer'
}

/**
Expand Down Expand Up @@ -803,9 +803,9 @@ export interface PaymentCustomer {
* @enum {string}
*/
export enum PaymentLastRefundReason {
Duplicated = 'duplicated',
Fraudulent = 'fraudulent',
RequestedByCustomer = 'requested_by_customer'
duplicated = 'duplicated',
fraudulent = 'fraudulent',
requested_by_customer = 'requested_by_customer'
}

/**
Expand All @@ -824,13 +824,13 @@ export enum PaymentMessageChannel {
* @enum {string}
*/
export enum PaymentMessageLanguage {
En = 'en',
Es = 'es',
Ca = 'ca',
Pt = 'pt',
De = 'de',
It = 'it',
Fr = 'fr'
en = 'en',
es = 'es',
ca = 'ca',
pt = 'pt',
de = 'de',
it = 'it',
fr = 'fr'
}

/**
Expand Down Expand Up @@ -866,8 +866,8 @@ export interface PaymentNextAction {
export enum PaymentNextActionTypeEnum {
CONFIRM = 'CONFIRM',
CHALLENGE = 'CHALLENGE',
FRICTIONLESSCHALLENGE = 'FRICTIONLESS_CHALLENGE',
BIZUMCHALLENGE = 'BIZUM_CHALLENGE',
FRICTIONLESS_CHALLENGE = 'FRICTIONLESS_CHALLENGE',
BIZUM_CHALLENGE = 'BIZUM_CHALLENGE',
COMPLETE = 'COMPLETE'
}

Expand Down Expand Up @@ -914,13 +914,13 @@ export interface PaymentPaymentMethod {
* @enum {string}
*/
export enum PaymentPaymentMethodMethodEnum {
Card = 'card',
Bizum = 'bizum',
GooglePay = 'googlePay',
ApplePay = 'applePay',
ClickToPay = 'clickToPay',
Paypal = 'paypal',
Cofidis = 'cofidis'
card = 'card',
bizum = 'bizum',
googlePay = 'googlePay',
applePay = 'applePay',
clickToPay = 'clickToPay',
paypal = 'paypal',
cofidis = 'cofidis'
}

/**
Expand Down Expand Up @@ -1015,21 +1015,21 @@ export interface PaymentPaymentMethodCard {
* @enum {string}
*/
export enum PaymentPaymentMethodCardBrandEnum {
Visa = 'visa',
Mastercard = 'mastercard',
Diners = 'diners',
Amex = 'amex',
Jcb = 'jcb',
Unionpay = 'unionpay',
Unknown = 'unknown'
visa = 'visa',
mastercard = 'mastercard',
diners = 'diners',
amex = 'amex',
jcb = 'jcb',
unionpay = 'unionpay',
unknown = 'unknown'
}
/**
* @export
* @enum {string}
*/
export enum PaymentPaymentMethodCardTypeEnum {
Debit = 'debit',
Credit = 'credit'
debit = 'debit',
credit = 'credit'
}
/**
* @export
Expand All @@ -1038,17 +1038,17 @@ export enum PaymentPaymentMethodCardTypeEnum {
export enum PaymentPaymentMethodCardThreeDSecureFlowEnum {
CHALLENGE = 'CHALLENGE',
FRICTIONLESS = 'FRICTIONLESS',
FRICTIONLESSCHALLENGE = 'FRICTIONLESS_CHALLENGE',
FRICTIONLESS_CHALLENGE = 'FRICTIONLESS_CHALLENGE',
DIRECT = 'DIRECT'
}
/**
* @export
* @enum {string}
*/
export enum PaymentPaymentMethodCardTokenizationMethodEnum {
ApplePay = 'applePay',
GooglePay = 'googlePay',
ClickToPay = 'clickToPay'
applePay = 'applePay',
googlePay = 'googlePay',
clickToPay = 'clickToPay'
}

/**
Expand Down Expand Up @@ -1103,9 +1103,9 @@ export interface PaymentPaymentMethods extends Array<string> {
* @enum {string}
*/
export enum PaymentRefundReason {
Duplicated = 'duplicated',
Fraudulent = 'fraudulent',
RequestedByCustomer = 'requested_by_customer'
duplicated = 'duplicated',
fraudulent = 'fraudulent',
requested_by_customer = 'requested_by_customer'
}

/**
Expand Down Expand Up @@ -1133,7 +1133,7 @@ export interface PaymentSequence {
* @enum {string}
*/
export enum PaymentSequenceTypeEnum {
Recurring = 'recurring'
recurring = 'recurring'
}

/**
Expand Down Expand Up @@ -1331,7 +1331,7 @@ export enum PaymentStatus {
FAILED = 'FAILED',
CANCELED = 'CANCELED',
REFUNDED = 'REFUNDED',
PARTIALLYREFUNDED = 'PARTIALLY_REFUNDED',
PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED',
AUTHORIZED = 'AUTHORIZED',
EXPIRED = 'EXPIRED'
}
Expand Down Expand Up @@ -1803,10 +1803,10 @@ export interface Subscription {
* @enum {string}
*/
export enum SubscriptionInterval {
Day = 'day',
Week = 'week',
Month = 'month',
Year = 'year'
day = 'day',
week = 'week',
month = 'month',
year = 'year'
}

/**
Expand Down Expand Up @@ -1865,7 +1865,7 @@ export interface SubscriptionPaymentMethod {
* @enum {string}
*/
export enum SubscriptionPaymentMethodMethodEnum {
Card = 'card'
card = 'card'
}

/**
Expand Down Expand Up @@ -1923,21 +1923,21 @@ export interface SubscriptionPaymentMethodCard {
* @enum {string}
*/
export enum SubscriptionPaymentMethodCardBrandEnum {
Visa = 'visa',
Mastercard = 'mastercard',
Diners = 'diners',
Amex = 'amex',
Jcb = 'jcb',
Unionpay = 'unionpay',
Unknown = 'unknown'
visa = 'visa',
mastercard = 'mastercard',
diners = 'diners',
amex = 'amex',
jcb = 'jcb',
unionpay = 'unionpay',
unknown = 'unknown'
}
/**
* @export
* @enum {string}
*/
export enum SubscriptionPaymentMethodCardTypeEnum {
Debit = 'debit',
Credit = 'credit'
debit = 'debit',
credit = 'credit'
}

/**
Expand All @@ -1950,7 +1950,7 @@ export enum SubscriptionStatus {
EXPIRED = 'EXPIRED',
TRIALING = 'TRIALING',
ACTIVE = 'ACTIVE',
PASTDUE = 'PAST_DUE',
PAST_DUE = 'PAST_DUE',
PAUSED = 'PAUSED',
CANCELED = 'CANCELED'
}
Expand Down

0 comments on commit d808390

Please sign in to comment.