Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 40 additions & 35 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListSitesParams params = new ListSitesParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Site> sites = client.listSites(params);

Expand Down Expand Up @@ -737,7 +737,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountsParams params = new ListAccountsParams();
params.setLimit(200); // Pull 200 records at a time
Pager<Account> accounts = client.listAccounts(params);

Expand Down Expand Up @@ -1301,6 +1301,15 @@ paths:
and cancels any active subscriptions (canceled subscriptions will remain active
until the end of the current billing cycle before expiring). We recommend
closing accounts only when all business is concluded with a customer.
parameters:
- in: query
name: redact
schema:
type: boolean
description: Permanently removes all personally identifiable information (PII)
from this account after it has been deactivated, to fulfill a data subject's
right to erasure under GDPR and similar privacy regulations (e.g. CCPA).
Cannot be undone.
responses:
'200':
description: An account.
Expand Down Expand Up @@ -2999,8 +3008,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
params.setLimit(200); // Pull 200 records at a time
ListAccountCouponRedemptionsParams params = new ListAccountCouponRedemptionsParams();
final Pager<CouponRedemption> redemptions = client.listAccountCouponRedemptions(accountId, params);

for (CouponRedemption redemption : redemptions) {
Expand Down Expand Up @@ -3498,7 +3506,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountCreditPaymentsParams params = new ListAccountCreditPaymentsParams();
params.setLimit(200); // Pull 200 records at a time
Pager<CreditPayment> payments = client.listAccountCreditPayments(accountId, params);

Expand Down Expand Up @@ -3840,7 +3848,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountInvoicesParams params = new ListAccountInvoicesParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Invoice> invoices = client.listAccountInvoices(accountId, params);

Expand Down Expand Up @@ -4284,7 +4292,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountLineItemsParams params = new ListAccountLineItemsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<LineItem> lineItems = client.listAccountLineItems(accountId, params);

Expand Down Expand Up @@ -4543,8 +4551,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
params.setLimit(200); // Pull 200 records at a time
ListAccountNotesParams params = new ListAccountNotesParams();
final Pager<AccountNote> notes = client.listAccountNotes(accountId, params);

for (AccountNote note : notes) {
Expand Down Expand Up @@ -4828,7 +4835,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListShippingAddressesParams params = new ListShippingAddressesParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<ShippingAddress> addresses = client.listShippingAddresses(accountId, params);

Expand Down Expand Up @@ -5517,7 +5524,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountSubscriptionsParams params = new ListAccountSubscriptionsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Subscription> subscriptions = client.listAccountSubscriptions(accountId, params);

Expand Down Expand Up @@ -5623,7 +5630,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountTransactionsParams params = new ListAccountTransactionsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Transaction> transactions = client.listAccountTransactions(accountId, params);

Expand Down Expand Up @@ -5806,7 +5813,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAccountAcquisitionParams params = new ListAccountAcquisitionParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<AccountAcquisition> acquisitions = client.listAccountAcquisition(params);

Expand Down Expand Up @@ -5909,7 +5916,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListCouponsParams params = new ListCouponsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Coupon> coupons = client.listCoupons(params);

Expand Down Expand Up @@ -6757,7 +6764,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListCreditPaymentsParams params = new ListCreditPaymentsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<CreditPayment> payments = client.listCreditPayments(params);

Expand Down Expand Up @@ -6893,7 +6900,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListCustomFieldDefinitionsParams params = new ListCustomFieldDefinitionsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<CustomFieldDefinition> fields = client.listCustomFieldDefinitions(params);

Expand Down Expand Up @@ -7303,7 +7310,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListItemsParams params = new ListItemsParams();
params.setLimit(200); // Pull 200 records at a time
Pager<Item> items = client.listItems(params);

Expand Down Expand Up @@ -8810,7 +8817,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListInvoicesParams params = new ListInvoicesParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Invoice> invoices = client.listInvoices(params);

Expand Down Expand Up @@ -10128,7 +10135,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListInvoiceLineItemsParams params = new ListInvoiceLineItemsParams();
params.setLimit(200);
Pager<LineItem> lineItems = client.listInvoiceLineItems(invoiceId, params);

Expand Down Expand Up @@ -10222,8 +10229,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
params.setLimit(200); // Pull 200 records at a time
ListInvoiceCouponRedemptionsParams params = new ListInvoiceCouponRedemptionsParams();
final Pager<CouponRedemption> redemptions = client.listInvoiceCouponRedemptions(invoiceId, params);

for (CouponRedemption redemption : redemptions) {
Expand Down Expand Up @@ -10635,7 +10641,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListLineItemsParams params = new ListLineItemsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<LineItem> lineItems = client.listLineItems(params);

Expand Down Expand Up @@ -10972,7 +10978,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListPlansParams params = new ListPlansParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Plan> plans = client.listPlans(params);

Expand Down Expand Up @@ -11641,7 +11647,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListPlanAddOnsParams params = new ListPlanAddOnsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<AddOn> addOns = client.listPlanAddOns(planId, params);

Expand Down Expand Up @@ -12371,7 +12377,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListAddOnsParams params = new ListAddOnsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<AddOn> addOns = client.listAddOns(params);

Expand Down Expand Up @@ -12588,7 +12594,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListShippingMethodsParams params = new ListShippingMethodsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<ShippingMethod> shippingMethods = client.listShippingMethods(params);

Expand Down Expand Up @@ -12837,7 +12843,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListSubscriptionsParams params = new ListSubscriptionsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Subscription> subscriptions = client.listSubscriptions(params);

Expand Down Expand Up @@ -13430,7 +13436,7 @@ paths:
- lang: Java
source: |
try {
QueryParams queryParams = new QueryParams();
TerminateSubscriptionParams queryParams = new TerminateSubscriptionParams();
queryParams.setRefund(Constants.RefundType.NONE); // "full" for a full refund, "partial" for prorated refund
client.terminateSubscription(subscriptionId, queryParams);
System.out.println("Terminated Subscription: " + subscriptionId);
Expand Down Expand Up @@ -14718,7 +14724,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListSubscriptionInvoicesParams params = new ListSubscriptionInvoicesParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Invoice> invoices = client.listSubscriptionInvoices(subscriptionId, params);

Expand Down Expand Up @@ -14824,7 +14830,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListSubscriptionLineItemsParams params = new ListSubscriptionLineItemsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<LineItem> lineItems = client.listSubscriptionLineItems(subscriptionId, params);

Expand Down Expand Up @@ -14922,8 +14928,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
params.setLimit(200); // Pull 200 records at a time
ListSubscriptionCouponRedemptionsParams params = new ListSubscriptionCouponRedemptionsParams();
final Pager<CouponRedemption> redemptions = client.listSubscriptionCouponRedemptions(subscriptionId, params);

for (CouponRedemption redemption : redemptions) {
Expand Down Expand Up @@ -15293,7 +15298,7 @@ paths:
end
- lang: Java
source: |
QueryParams params = new QueryParams();
ListTransactionsParams params = new ListTransactionsParams();
params.setLimit(200); // Pull 200 records at a time
final Pager<Transaction> transactions = client.listTransactions(params);

Expand Down Expand Up @@ -16935,7 +16940,7 @@ paths:
content:
application/json:
schema:
"$ref": "#/components/schemas/Entitlements"
"$ref": "#/components/schemas/EntitlementList"
'404':
description: Incorrect site or account ID.
content:
Expand Down Expand Up @@ -25994,7 +25999,7 @@ components:
maxItems: 200
items:
"$ref": "#/components/schemas/Plan"
Entitlements:
EntitlementList:
type: object
description: A list of privileges granted to a customer through the purchase
of a plan or item.
Expand Down
4 changes: 4 additions & 0 deletions recurly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ def deactivate_account(self, account_id, **options):

headers : dict
Extra HTTP headers to send with the request.
params : dict
Query Parameters.
params.redact : bool
Permanently removes all personally identifiable information (PII) from this account after it has been deactivated, to fulfill a data subject's right to erasure under GDPR and similar privacy regulations (e.g. CCPA). Cannot be undone.

Returns
-------
Expand Down
21 changes: 0 additions & 21 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -3963,27 +3963,6 @@ class InvoiceTemplate(Resource):
}


class Entitlements(Resource):
"""
Attributes
----------
data : :obj:`list` of :obj:`Entitlement`
has_more : bool
Indicates there are more results on subsequent pages.
next : str
Path to subsequent page of results.
object : str
Object Type
"""

schema = {
"data": ["Entitlement"],
"has_more": bool,
"next": str,
"object": str,
}


class Entitlement(Resource):
"""
Attributes
Expand Down
Loading