From 90f533e51335b2b9d7c36984e0bdde744d1294e8 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Thu, 18 Jun 2026 01:56:13 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 75 +++++++++++++++++++++++--------------------- recurly/client.py | 4 +++ recurly/resources.py | 21 ------------- 3 files changed, 44 insertions(+), 56 deletions(-) diff --git a/openapi/api.yaml b/openapi/api.yaml index 28cb2500..f99bdfed 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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 sites = client.listSites(params); @@ -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 accounts = client.listAccounts(params); @@ -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. @@ -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 redemptions = client.listAccountCouponRedemptions(accountId, params); for (CouponRedemption redemption : redemptions) { @@ -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 payments = client.listAccountCreditPayments(accountId, params); @@ -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 invoices = client.listAccountInvoices(accountId, params); @@ -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 lineItems = client.listAccountLineItems(accountId, params); @@ -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 notes = client.listAccountNotes(accountId, params); for (AccountNote note : notes) { @@ -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 addresses = client.listShippingAddresses(accountId, params); @@ -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 subscriptions = client.listAccountSubscriptions(accountId, params); @@ -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 transactions = client.listAccountTransactions(accountId, params); @@ -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 acquisitions = client.listAccountAcquisition(params); @@ -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 coupons = client.listCoupons(params); @@ -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 payments = client.listCreditPayments(params); @@ -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 fields = client.listCustomFieldDefinitions(params); @@ -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 items = client.listItems(params); @@ -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 invoices = client.listInvoices(params); @@ -10128,7 +10135,7 @@ paths: end - lang: Java source: | - QueryParams params = new QueryParams(); + ListInvoiceLineItemsParams params = new ListInvoiceLineItemsParams(); params.setLimit(200); Pager lineItems = client.listInvoiceLineItems(invoiceId, params); @@ -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 redemptions = client.listInvoiceCouponRedemptions(invoiceId, params); for (CouponRedemption redemption : redemptions) { @@ -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 lineItems = client.listLineItems(params); @@ -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 plans = client.listPlans(params); @@ -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 addOns = client.listPlanAddOns(planId, params); @@ -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 addOns = client.listAddOns(params); @@ -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 shippingMethods = client.listShippingMethods(params); @@ -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 subscriptions = client.listSubscriptions(params); @@ -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); @@ -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 invoices = client.listSubscriptionInvoices(subscriptionId, params); @@ -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 lineItems = client.listSubscriptionLineItems(subscriptionId, params); @@ -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 redemptions = client.listSubscriptionCouponRedemptions(subscriptionId, params); for (CouponRedemption redemption : redemptions) { @@ -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 transactions = client.listTransactions(params); @@ -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: @@ -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. diff --git a/recurly/client.py b/recurly/client.py index 53e71f82..1147d016 100644 --- a/recurly/client.py +++ b/recurly/client.py @@ -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 ------- diff --git a/recurly/resources.py b/recurly/resources.py index 2b6652fd..0667d33b 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -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