|
6 | 6 | from .coupons.clients import AppliedCouponClient, CouponClient |
7 | 7 | from .credit_notes.clients import CreditNoteClient |
8 | 8 | from .customers.clients import CustomerClient |
| 9 | +from .customers.applied_coupons_client import CustomerAppliedCouponsClient |
| 10 | +from .customers.credit_notes_client import CustomerCreditNotesClient |
| 11 | +from .customers.invoices_client import CustomerInvoicesClient |
| 12 | +from .customers.payments_client import CustomerPaymentsClient |
| 13 | +from .customers.payment_requests_client import CustomerPaymentRequestsClient |
| 14 | +from .customers.subscriptions_client import CustomerSubscriptionsClient |
| 15 | +from .customers.wallets_client import CustomerWalletsClient |
9 | 16 | from .events.clients import EventClient |
10 | 17 | from .fees.clients import FeeClient |
11 | 18 | from .functools_ext import callable_cached_property |
@@ -92,6 +99,34 @@ def credit_notes(self) -> CreditNoteClient: |
92 | 99 | def customers(self) -> CustomerClient: |
93 | 100 | return CustomerClient(self.base_api_url, self.api_key) |
94 | 101 |
|
| 102 | + @callable_cached_property |
| 103 | + def customer_applied_coupons(self) -> CustomerAppliedCouponsClient: |
| 104 | + return CustomerAppliedCouponsClient(self.base_api_url, self.api_key) |
| 105 | + |
| 106 | + @callable_cached_property |
| 107 | + def customer_credit_notes(self) -> CustomerCreditNotesClient: |
| 108 | + return CustomerCreditNotesClient(self.base_api_url, self.api_key) |
| 109 | + |
| 110 | + @callable_cached_property |
| 111 | + def customer_invoices(self) -> CustomerInvoicesClient: |
| 112 | + return CustomerInvoicesClient(self.base_api_url, self.api_key) |
| 113 | + |
| 114 | + @callable_cached_property |
| 115 | + def customer_payments(self) -> CustomerPaymentsClient: |
| 116 | + return CustomerPaymentsClient(self.base_api_url, self.api_key) |
| 117 | + |
| 118 | + @callable_cached_property |
| 119 | + def customer_payment_requests(self) -> CustomerPaymentRequestsClient: |
| 120 | + return CustomerPaymentRequestsClient(self.base_api_url, self.api_key) |
| 121 | + |
| 122 | + @callable_cached_property |
| 123 | + def customer_subscriptions(self) -> CustomerSubscriptionsClient: |
| 124 | + return CustomerSubscriptionsClient(self.base_api_url, self.api_key) |
| 125 | + |
| 126 | + @callable_cached_property |
| 127 | + def customer_wallets(self) -> CustomerWalletsClient: |
| 128 | + return CustomerWalletsClient(self.base_api_url, self.api_key) |
| 129 | + |
95 | 130 | @callable_cached_property |
96 | 131 | def events(self) -> EventClient: |
97 | 132 | return EventClient(self.base_api_url, self.api_key, self.base_ingest_api_url) |
|
0 commit comments