You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/coupon/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,9 +102,9 @@ if res.coupon is not None:
102
102
103
103
## list
104
104
105
-
This endpoint returns a list of all [coupons](../reference/Orb-API.json/components/schemas/Coupon) for an account in a list format.
105
+
This endpoint returns a list of all coupons for an account in a list format.
106
106
107
-
The list of coupons is ordered starting from the most recently created coupon. The response also includes [`pagination_metadata`](../api/pagination), which lets the caller retrieve the next page of results if they exist. More information about pagination can be found in the [Pagination-metadata schema](../reference/Orb-API.json/components/schemas/Pagination-metadata).
107
+
The list of coupons is ordered starting from the most recently created coupon. The response also includes [`pagination_metadata`](../api/pagination), which lets the caller retrieve the next page of results if they exist. More information about pagination can be found in the [Pagination-metadata schema](pagination).
108
108
109
109
### Example Usage
110
110
@@ -127,7 +127,7 @@ if res.list_coupons_200_application_json_object is not None:
127
127
128
128
## list_subscriptions
129
129
130
-
This endpoint returns a list of all subscriptions that have redeemed a given coupon as a [paginated](../api/pagination) list, ordered starting from the most recently created subscription. For a full discussion of the subscription resource, see [Subscription](../reference/Orb-API.json/components/schemas/Subscription).
130
+
This endpoint returns a list of all subscriptions that have redeemed a given coupon as a [paginated](../api/pagination) list, ordered starting from the most recently created subscription. For a full discussion of the subscription resource, see [Subscription](../guides/concepts#subscription).
Copy file name to clipboardExpand all lines: docs/customer/README.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ if res.amend_usage_external_customer_id_200_application_json_object is not None:
163
163
164
164
## create
165
165
166
-
This operation is used to create an Orb customer, who is party to the core billing relationship. See [Customer](../reference/Orb-API.json/components/schemas/Customer) for an overview of the customer resource.
166
+
This operation is used to create an Orb customer, who is party to the core billing relationship. See [Customer](../guides/concepts#customer) for an overview of the customer resource.
167
167
168
168
This endpoint is critical in the following Orb functionality:
169
169
* Automated charges can be configured by setting `payment_provider` and `payment_provider_id` to automatically issue invoices
@@ -174,15 +174,15 @@ This endpoint is critical in the following Orb functionality:
Creates an immutable balance transaction that updates the customer's balance and returns back the newly created [transaction](../reference/Orb-API.json/components/schemas/Customer-balance-transaction).
231
+
Creates an immutable balance transaction that updates the customer's balance and returns back the newly created transaction.
232
232
233
233
### Example Usage
234
234
@@ -404,7 +404,7 @@ When a price uses matrix pricing, it's important to view costs grouped by those
if res.fetch_customer_costs_external_id_200_application_json_objectisnotNone:
456
+
if res.customer_costsisnotNone:
457
457
# handle response
458
458
```
459
459
@@ -498,7 +498,7 @@ if res.list_balance_transactions_200_application_json_object is not None:
498
498
499
499
This endpoint returns a list of all customers for an account. The list of customers is ordered starting from the most recently created customer. This endpoint follows Orb's [standardized pagination format](../api/pagination).
500
500
501
-
See [Customer](../reference/Orb-API.json/components/schemas/Customer) for an overview of the customer model.
501
+
See [Customer](../guides/concepts#customer) for an overview of the customer model.
502
502
503
503
### Example Usage
504
504
@@ -515,7 +515,7 @@ s = orb.Orb(
515
515
516
516
res = s.customer.list()
517
517
518
-
if res.list_customers_200_application_json_objectisnotNone:
518
+
if res.customersisnotNone:
519
519
# handle response
520
520
```
521
521
@@ -584,7 +584,7 @@ s = orb.Orb(
584
584
)
585
585
586
586
587
-
res = s.customer.update_customer('facere', operations.UpdateCustomerRequestBody(
587
+
res = s.customer.update_customer('facere', shared.NewCustomer(
588
588
auto_collection=False,
589
589
billing_address=shared.BillingAddress(
590
590
city='Graciechester',
@@ -594,29 +594,29 @@ res = s.customer.update_customer('facere', operations.UpdateCustomerRequestBody(
0 commit comments