1
0
Files
PayPal-PHP-Server-SDK/doc/models/pricing-scheme.md
2025-05-27 17:46:31 +00:00

1.2 KiB

Pricing Scheme

The pricing scheme details.

Structure

PricingScheme

Fields

Name Type Tags Description Getter Setter
price ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getPrice(): ?Money setPrice(?Money price): void
pricingModel string(PricingModel) Required The pricing model for the billing cycle.

Constraints: Minimum Length: 1, Maximum Length: 24, Pattern: ^[A-Z_]+$
getPricingModel(): string setPricingModel(string pricingModel): void
reloadThresholdAmount ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getReloadThresholdAmount(): ?Money setReloadThresholdAmount(?Money reloadThresholdAmount): void

Example (as JSON)

{
  "price": {
    "currency_code": "currency_code8",
    "value": "value4"
  },
  "pricing_model": "FIXED",
  "reload_threshold_amount": {
    "currency_code": "currency_code0",
    "value": "value6"
  }
}