@sourceloop/ctrl-plane-subscription-service / Exports / BillingPaymentSourceService
Class: BillingPaymentSourceService¶
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new BillingPaymentSourceService(billingCustomerRepository, billingProvider)
Parameters¶
| Name | Type |
|---|---|
billingCustomerRepository |
BillingCustomerRepository<BillingCustomer> |
billingProvider |
IService |
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:9
Properties¶
billingCustomerRepository¶
• Private Readonly billingCustomerRepository: BillingCustomerRepository<BillingCustomer>
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:11
billingProvider¶
• Private Readonly billingProvider: IService
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:13
Methods¶
createPaymentSource¶
▸ createPaymentSource(paymentSourceDto): Promise<PaymentSourceDto>
Parameters¶
| Name | Type |
|---|---|
paymentSourceDto |
PaymentSourceDto |
Returns¶
Promise<PaymentSourceDto>
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:15
deletePaymentSource¶
▸ deletePaymentSource(paymentSourceId): Promise<void>
Parameters¶
| Name | Type |
|---|---|
paymentSourceId |
string |
Returns¶
Promise<void>
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:51
getPaymentSource¶
▸ getPaymentSource(paymentSourceId): Promise<PaymentSourceDto>
Parameters¶
| Name | Type |
|---|---|
paymentSourceId |
string |
Returns¶
Promise<PaymentSourceDto>
Defined in¶
services/subscription-service/src/services/billing-payment-source.service.ts:40