Skip to main content

@swamp/gcp/paymentsresellersubscription

v2026.04.04.1

Google Cloud paymentsresellersubscription infrastructure models

Labels

gcpgoogle-cloudpaymentsresellersubscriptioncloudinfrastructure

Contents

Install

$ swamp extension pull @swamp/gcp/paymentsresellersubscription

Release Notes

  • Updated: partners_subscriptions

@swamp/gcp/paymentsresellersubscription/partners-productsv2026.04.03.3partners_products.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
getGet a products
ArgumentTypeDescription
identifierstringThe name of the products
syncSync products state from GCP

Resources

state(infinite)— A Product resource that defines a subscription service that can be resold.
@swamp/gcp/paymentsresellersubscription/partners-promotionsv2026.04.03.3partners_promotions.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
getGet a promotions
ArgumentTypeDescription
identifierstringThe name of the promotions
syncSync promotions state from GCP
find_eligiblefind eligible
ArgumentTypeDescription
filter?any
pageSize?any
pageToken?any

Resources

state(infinite)— A Promotion resource that defines a promotion for a subscription that can be ...
@swamp/gcp/paymentsresellersubscription/partners-subscriptionsv2026.04.04.1partners_subscriptions.ts

Global Arguments

ArgumentTypeDescription
cancellationDetails?objectDescribes the details of a cancelled or cancelling subscription.
lineItems?arrayRequired. The line items of the subscription.
migrationDetails?objectDescribes the details of the migrated subscription.
name?stringIdentifier. Resource name of the subscription. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}". This is available for authorizeAddon, but otherwise is response only.
partnerUserToken?stringRequired. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum.
products?arrayOptional. Deprecated: consider using `line_items` as the input. Required. Resource name that identifies the purchased products. The format will be 'partners/{partner_id}/products/{product_id}'.
promotionSpecs?arrayOptional. Subscription-level promotions. Only free trial is supported on this level. It determines the first renewal time of the subscription to be the end of the free trial period. Specify the promotion resource name only when used as input.
promotions?arrayOptional. Deprecated: consider using the top-level `promotion_specs` as the input. Optional. Resource name that identifies one or more promotions that can be applied on the product. A typical promotion for a subscription is Free trial. The format will be 'partners/{partner_id}/promotions/{promotion_id}'.
purchaseTime?stringOptional. The timestamp when the user transaction was made with the Partner. Specify for the case of "bundle with choice", and it must be before the provision_time (when the user makes a selection).
serviceLocation?objectDescribes a location of an end user.
upgradeDowngradeDetails?objectDetails about the previous subscription that this new subscription upgrades/downgrades from.
subscriptionId?stringRequired. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription with the same ID already exists, the creation fails with an `ALREADY_EXISTS` error.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
createCreate a subscriptions
getGet a subscriptions
ArgumentTypeDescription
identifierstringThe name of the subscriptions
syncSync subscriptions state from GCP
cancelcancel
ArgumentTypeDescription
cancelImmediately?any
cancellationReason?any
entitleentitle
ArgumentTypeDescription
lineItemEntitlementDetails?any
extendextend
ArgumentTypeDescription
extension?any
requestId?any
provisionprovision
ArgumentTypeDescription
cancellationDetails?any
createTime?any
cycleEndTime?any
endUserEntitled?any
freeTrialEndTime?any
lineItems?any
migrationDetails?any
name?any
partnerUserToken?any
processingState?any
products?any
promotionSpecs?any
promotions?any
purchaseTime?any
redirectUri?any
renewalTime?any
serviceLocation?any
state?any
updateTime?any
upgradeDowngradeDetails?any
resumeresume
ArgumentTypeDescription
cycleOptions?any
resumeMode?any
suspendsuspend
undo_cancelundo cancel

Resources

state(infinite)— Acts as a central billing entity between an external partner and Google. Goog...