Skip to content

Commit

Permalink
Update create-payment-method.response.ts (#21)
Browse files Browse the repository at this point in the history
* Update create-payment-method.response.ts

* Update create-payment-method.response.ts

* Update create-payment-method.response.ts

* Update create-payment-method.response.ts

* Update plan.dto.ts

* Update invoice-line-item.dto.ts

* Update create-payment-method.dto.ts

* Update invoice.dto.ts

* Update package.json

* Update package.json
  • Loading branch information
arthurfiorette authored Dec 26, 2024
1 parent c29b63a commit 55c575b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/stripe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@valor/nestjs-stripe",
"version": "0.0.23",
"version": "0.0.24",
"type": "commonjs",
"private": false,
"author": "opavlovskyi-valor-software",
Expand Down
6 changes: 3 additions & 3 deletions libs/stripe/src/lib/dto/create-payment-method.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class FpxDto {

@ApiProperty({
description: 'The customer\'s bank.',
enum: [FpxBanks]
enum: FpxBanks
})
bank: Stripe.PaymentMethodCreateParams.Fpx.Bank;
}
Expand Down Expand Up @@ -432,7 +432,7 @@ export class CreatePaymentMethodDto {

@ApiPropertyOptional({
description: 'The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.',
enum: [PaymentMethodTypes],
enum: PaymentMethodTypes,
default: 'card'
})
type?: Stripe.PaymentMethodCreateParams.Type;
Expand All @@ -446,4 +446,4 @@ export class CreatePaymentMethodDto {
description: 'If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.'
})
wechatPay?: Stripe.PaymentMethodCreateParams.WechatPay;
}
}
4 changes: 3 additions & 1 deletion libs/stripe/src/lib/dto/create-payment-method.response.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { BaseResponse } from './base.response';

export class CreatePaymentMethodResponse extends BaseResponse {
@ApiPropertyOptional()
paymentMethodId?: string;
}
}
2 changes: 1 addition & 1 deletion libs/stripe/src/lib/dto/stripe/invoice-line-item.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class InvoiceLineItemDto extends BaseDto {
})
taxAmounts?: Array<TaxAmountDto>;

@ApiProperty({ isArray: true })
@ApiProperty({ isArray: true, type: Object })
taxRates?: Array<Stripe.TaxRate>;

@ApiProperty({
Expand Down
2 changes: 1 addition & 1 deletion libs/stripe/src/lib/dto/stripe/invoice.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class InvoiceDto extends BaseDto {
automaticTax: AutomaticTaxDto;

@ApiProperty({
enum: [BillingReasons]
enum: BillingReasons
})
billingReason: Stripe.Invoice.BillingReason | null;

Expand Down
2 changes: 1 addition & 1 deletion libs/stripe/src/lib/dto/stripe/plan.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PlanDto extends BaseDto {
@ApiProperty()
product: string | ProductDto | null;

@ApiProperty({ isArray: true })
@ApiProperty({ isArray: true, type: Object })
tiers?: Array<Stripe.Plan.Tier>;

@ApiProperty({ enum: ['graduated', 'volume']})
Expand Down

0 comments on commit 55c575b

Please sign in to comment.