Skip to content

Commit

Permalink
Merge pull request #329 from recurly/v3-v2021-02-25-8993209395
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25 (Proration Settings)
  • Loading branch information
csampson committed May 7, 2024
2 parents 87da4eb + 8f2686c commit 62cb13d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
16 changes: 16 additions & 0 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5903,6 +5903,10 @@ export interface SubscriptionChangeCreate {
* The new set of ramp intervals for the subscription.
*/
rampIntervals?: SubscriptionRampInterval[] | null;
/**
* Allows you to control how any resulting charges and credits will be calculated and prorated.
*/
prorationSettings?: ProrationSettings | null;

}

Expand Down Expand Up @@ -5979,6 +5983,18 @@ export interface SubscriptionChangeBillingInfoCreate {

}

export interface ProrationSettings {
/**
* Determines how the amount charged is determined for this change
*/
charge?: string | null;
/**
* Determines how the amount credited is determined for this change
*/
credit?: string | null;

}

export interface UsageCreate {
/**
* Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.
Expand Down
30 changes: 30 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21253,6 +21253,34 @@ components:
description: |
The percentage taken of the monetary amount of usage tracked.
This can be up to 4 decimal places represented as a string.
ProrationSettings:
type: object
title: Proration Settings
description: Allows you to control how any resulting charges and credits will
be calculated and prorated.
properties:
charge:
"$ref": "#/components/schemas/ProrationSettingsChargeEnum"
credit:
"$ref": "#/components/schemas/ProrationSettingsCreditEnum"
ProrationSettingsChargeEnum:
type: string
title: Charge
description: Determines how the amount charged is determined for this change
default: prorated_amount
enum:
- full_amount
- prorated_amount
- none
ProrationSettingsCreditEnum:
type: string
title: Credit
description: Determines how the amount credited is determined for this change
default: prorated_amount
enum:
- full_amount
- prorated_amount
- none
Settings:
type: object
properties:
Expand Down Expand Up @@ -22476,6 +22504,8 @@ components:
description: The new set of ramp intervals for the subscription.
items:
"$ref": "#/components/schemas/SubscriptionRampInterval"
proration_settings:
"$ref": "#/components/schemas/ProrationSettings"
SubscriptionChangeShippingCreate:
type: object
title: Shipping details that will be changed on a subscription
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62cb13d

Please sign in to comment.