@commercelayer/sdk 5.12.5 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +11 -2
- package/lib/cjs/api.js +4 -1
- package/lib/cjs/commercelayer.d.ts +4 -3
- package/lib/cjs/commercelayer.js +6 -1
- package/lib/cjs/config.js +3 -1
- package/lib/cjs/model.d.ts +1 -0
- package/lib/cjs/resource.d.ts +1 -1
- package/lib/cjs/resource.js +6 -0
- package/lib/cjs/resources/addresses.d.ts +3 -0
- package/lib/cjs/resources/addresses.js +4 -0
- package/lib/cjs/resources/adjustments.d.ts +5 -2
- package/lib/cjs/resources/adjustments.js +4 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +3 -0
- package/lib/cjs/resources/adyen_gateways.js +4 -0
- package/lib/cjs/resources/adyen_payments.d.ts +5 -2
- package/lib/cjs/resources/adyen_payments.js +4 -0
- package/lib/cjs/resources/authorizations.d.ts +3 -0
- package/lib/cjs/resources/authorizations.js +4 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +3 -0
- package/lib/cjs/resources/avalara_accounts.js +4 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +4 -0
- package/lib/cjs/resources/axerve_gateways.js +4 -0
- package/lib/cjs/resources/axerve_payments.d.ts +5 -2
- package/lib/cjs/resources/axerve_payments.js +4 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +4 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +3 -0
- package/lib/cjs/resources/braintree_gateways.js +4 -0
- package/lib/cjs/resources/braintree_payments.d.ts +5 -2
- package/lib/cjs/resources/braintree_payments.js +4 -0
- package/lib/cjs/resources/bundles.d.ts +3 -0
- package/lib/cjs/resources/bundles.js +4 -0
- package/lib/cjs/resources/captures.d.ts +3 -0
- package/lib/cjs/resources/captures.js +4 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +3 -0
- package/lib/cjs/resources/carrier_accounts.js +4 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/cjs/resources/checkout_com_gateways.js +4 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +5 -2
- package/lib/cjs/resources/checkout_com_payments.js +4 -0
- package/lib/cjs/resources/cleanups.d.ts +3 -0
- package/lib/cjs/resources/cleanups.js +4 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +3 -0
- package/lib/cjs/resources/coupon_recipients.js +4 -0
- package/lib/cjs/resources/coupons.d.ts +3 -0
- package/lib/cjs/resources/coupons.js +4 -0
- package/lib/cjs/resources/customer_addresses.d.ts +3 -0
- package/lib/cjs/resources/customer_addresses.js +4 -0
- package/lib/cjs/resources/customer_groups.d.ts +3 -0
- package/lib/cjs/resources/customer_groups.js +4 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +8 -13
- package/lib/cjs/resources/customer_payment_sources.js +4 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +3 -0
- package/lib/cjs/resources/delivery_lead_times.js +4 -0
- package/lib/cjs/resources/external_gateways.d.ts +3 -0
- package/lib/cjs/resources/external_gateways.js +4 -0
- package/lib/cjs/resources/external_payments.d.ts +5 -2
- package/lib/cjs/resources/external_payments.js +4 -0
- package/lib/cjs/resources/external_promotions.d.ts +3 -0
- package/lib/cjs/resources/external_promotions.js +4 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/external_tax_calculators.js +4 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +4 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_price_promotions.js +4 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_gift_promotions.js +4 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +3 -0
- package/lib/cjs/resources/gift_card_recipients.js +4 -0
- package/lib/cjs/resources/gift_cards.d.ts +3 -0
- package/lib/cjs/resources/gift_cards.js +4 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +4 -0
- package/lib/cjs/resources/inventory_models.d.ts +3 -0
- package/lib/cjs/resources/inventory_models.js +4 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_return_locations.js +4 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_stock_locations.js +4 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +3 -0
- package/lib/cjs/resources/klarna_gateways.js +4 -0
- package/lib/cjs/resources/klarna_payments.d.ts +5 -2
- package/lib/cjs/resources/klarna_payments.js +4 -0
- package/lib/cjs/resources/manual_gateways.d.ts +3 -0
- package/lib/cjs/resources/manual_gateways.js +4 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/manual_tax_calculators.js +4 -0
- package/lib/cjs/resources/markets.d.ts +3 -0
- package/lib/cjs/resources/markets.js +4 -0
- package/lib/cjs/resources/merchants.d.ts +3 -0
- package/lib/cjs/resources/merchants.js +4 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +3 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/order_subscriptions.js +4 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/order_validation_rules.js +4 -0
- package/lib/cjs/resources/orders.d.ts +8 -2
- package/lib/cjs/resources/orders.js +4 -0
- package/lib/cjs/resources/packages.d.ts +3 -0
- package/lib/cjs/resources/packages.js +4 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +5 -2
- package/lib/cjs/resources/parcel_line_items.js +4 -0
- package/lib/cjs/resources/parcels.d.ts +3 -0
- package/lib/cjs/resources/parcels.js +4 -0
- package/lib/cjs/resources/payment_gateways.d.ts +3 -0
- package/lib/cjs/resources/payment_gateways.js +4 -0
- package/lib/cjs/resources/payment_methods.d.ts +3 -0
- package/lib/cjs/resources/payment_methods.js +4 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +3 -0
- package/lib/cjs/resources/paypal_gateways.js +4 -0
- package/lib/cjs/resources/paypal_payments.d.ts +5 -2
- package/lib/cjs/resources/paypal_payments.js +4 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -0
- package/lib/cjs/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_frequency_tiers.js +4 -0
- package/lib/cjs/resources/price_lists.d.ts +3 -0
- package/lib/cjs/resources/price_lists.js +4 -0
- package/lib/cjs/resources/price_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_tiers.js +4 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -0
- package/lib/cjs/resources/prices.d.ts +3 -0
- package/lib/cjs/resources/prices.js +4 -0
- package/lib/cjs/resources/promotion_rules.d.ts +5 -1
- package/lib/cjs/resources/promotion_rules.js +4 -0
- package/lib/cjs/resources/promotions.d.ts +3 -0
- package/lib/cjs/resources/promotions.js +4 -0
- package/lib/cjs/resources/refunds.d.ts +3 -0
- package/lib/cjs/resources/refunds.js +4 -0
- package/lib/cjs/resources/returns.d.ts +3 -0
- package/lib/cjs/resources/returns.js +4 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +3 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -0
- package/lib/cjs/resources/satispay_payments.d.ts +6 -2
- package/lib/cjs/resources/satispay_payments.js +4 -0
- package/lib/cjs/resources/shipments.d.ts +3 -0
- package/lib/cjs/resources/shipments.js +4 -0
- package/lib/cjs/resources/shipping_categories.d.ts +3 -0
- package/lib/cjs/resources/shipping_categories.js +4 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_method_tiers.js +4 -0
- package/lib/cjs/resources/shipping_methods.d.ts +3 -0
- package/lib/cjs/resources/shipping_methods.js +4 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +4 -0
- package/lib/cjs/resources/shipping_zones.d.ts +3 -0
- package/lib/cjs/resources/shipping_zones.js +4 -0
- package/lib/cjs/resources/sku_list_items.d.ts +5 -2
- package/lib/cjs/resources/sku_list_items.js +4 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +4 -0
- package/lib/cjs/resources/sku_lists.d.ts +3 -0
- package/lib/cjs/resources/sku_lists.js +4 -0
- package/lib/cjs/resources/sku_options.d.ts +3 -0
- package/lib/cjs/resources/sku_options.js +4 -0
- package/lib/cjs/resources/skus.d.ts +3 -0
- package/lib/cjs/resources/skus.js +4 -0
- package/lib/cjs/resources/stock_items.d.ts +3 -0
- package/lib/cjs/resources/stock_items.js +4 -0
- package/lib/cjs/resources/stock_line_items.d.ts +5 -2
- package/lib/cjs/resources/stock_line_items.js +4 -0
- package/lib/cjs/resources/stock_locations.d.ts +3 -0
- package/lib/cjs/resources/stock_locations.js +4 -0
- package/lib/cjs/resources/stock_transfers.d.ts +3 -0
- package/lib/cjs/resources/stock_transfers.js +4 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +3 -0
- package/lib/cjs/resources/stripe_gateways.js +4 -0
- package/lib/cjs/resources/stripe_payments.d.ts +8 -2
- package/lib/cjs/resources/stripe_payments.js +4 -0
- package/lib/cjs/resources/tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/tax_calculators.js +4 -0
- package/lib/cjs/resources/tax_categories.d.ts +3 -0
- package/lib/cjs/resources/tax_categories.js +4 -0
- package/lib/cjs/resources/tax_rules.d.ts +5 -2
- package/lib/cjs/resources/tax_rules.js +4 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +3 -0
- package/lib/cjs/resources/taxjar_accounts.js +4 -0
- package/lib/cjs/resources/transactions.d.ts +3 -0
- package/lib/cjs/resources/transactions.js +4 -0
- package/lib/cjs/resources/versions.d.ts +22 -0
- package/lib/cjs/resources/versions.js +16 -0
- package/lib/cjs/resources/voids.d.ts +3 -0
- package/lib/cjs/resources/voids.js +4 -0
- package/lib/cjs/resources/webhooks.d.ts +3 -0
- package/lib/cjs/resources/webhooks.js +4 -0
- package/lib/cjs/resources/wire_transfers.d.ts +5 -2
- package/lib/cjs/resources/wire_transfers.js +4 -0
- package/lib/cjs/util.d.ts +1 -1
- package/lib/esm/api.d.ts +11 -2
- package/lib/esm/api.js +2 -0
- package/lib/esm/commercelayer.d.ts +4 -3
- package/lib/esm/commercelayer.js +6 -1
- package/lib/esm/config.js +3 -1
- package/lib/esm/model.d.ts +1 -0
- package/lib/esm/resource.d.ts +1 -1
- package/lib/esm/resource.js +6 -0
- package/lib/esm/resources/addresses.d.ts +3 -0
- package/lib/esm/resources/addresses.js +4 -0
- package/lib/esm/resources/adjustments.d.ts +5 -2
- package/lib/esm/resources/adjustments.js +4 -0
- package/lib/esm/resources/adyen_gateways.d.ts +3 -0
- package/lib/esm/resources/adyen_gateways.js +4 -0
- package/lib/esm/resources/adyen_payments.d.ts +5 -2
- package/lib/esm/resources/adyen_payments.js +4 -0
- package/lib/esm/resources/authorizations.d.ts +3 -0
- package/lib/esm/resources/authorizations.js +4 -0
- package/lib/esm/resources/avalara_accounts.d.ts +3 -0
- package/lib/esm/resources/avalara_accounts.js +4 -0
- package/lib/esm/resources/axerve_gateways.d.ts +4 -0
- package/lib/esm/resources/axerve_gateways.js +4 -0
- package/lib/esm/resources/axerve_payments.d.ts +5 -2
- package/lib/esm/resources/axerve_payments.js +4 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/esm/resources/billing_info_validation_rules.js +4 -0
- package/lib/esm/resources/braintree_gateways.d.ts +3 -0
- package/lib/esm/resources/braintree_gateways.js +4 -0
- package/lib/esm/resources/braintree_payments.d.ts +5 -2
- package/lib/esm/resources/braintree_payments.js +4 -0
- package/lib/esm/resources/bundles.d.ts +3 -0
- package/lib/esm/resources/bundles.js +4 -0
- package/lib/esm/resources/captures.d.ts +3 -0
- package/lib/esm/resources/captures.js +4 -0
- package/lib/esm/resources/carrier_accounts.d.ts +3 -0
- package/lib/esm/resources/carrier_accounts.js +4 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/esm/resources/checkout_com_gateways.js +4 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +5 -2
- package/lib/esm/resources/checkout_com_payments.js +4 -0
- package/lib/esm/resources/cleanups.d.ts +3 -0
- package/lib/esm/resources/cleanups.js +4 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/esm/resources/coupon_recipients.d.ts +3 -0
- package/lib/esm/resources/coupon_recipients.js +4 -0
- package/lib/esm/resources/coupons.d.ts +3 -0
- package/lib/esm/resources/coupons.js +4 -0
- package/lib/esm/resources/customer_addresses.d.ts +3 -0
- package/lib/esm/resources/customer_addresses.js +4 -0
- package/lib/esm/resources/customer_groups.d.ts +3 -0
- package/lib/esm/resources/customer_groups.js +4 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +8 -13
- package/lib/esm/resources/customer_payment_sources.js +4 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +3 -0
- package/lib/esm/resources/customer_subscriptions.js +4 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +3 -0
- package/lib/esm/resources/delivery_lead_times.js +4 -0
- package/lib/esm/resources/external_gateways.d.ts +3 -0
- package/lib/esm/resources/external_gateways.js +4 -0
- package/lib/esm/resources/external_payments.d.ts +5 -2
- package/lib/esm/resources/external_payments.js +4 -0
- package/lib/esm/resources/external_promotions.d.ts +3 -0
- package/lib/esm/resources/external_promotions.js +4 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/external_tax_calculators.js +4 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_amount_promotions.js +4 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_price_promotions.js +4 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +3 -0
- package/lib/esm/resources/free_gift_promotions.js +4 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/esm/resources/free_shipping_promotions.js +4 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +3 -0
- package/lib/esm/resources/gift_card_recipients.js +4 -0
- package/lib/esm/resources/gift_cards.d.ts +3 -0
- package/lib/esm/resources/gift_cards.js +4 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/esm/resources/in_stock_subscriptions.js +4 -0
- package/lib/esm/resources/inventory_models.d.ts +3 -0
- package/lib/esm/resources/inventory_models.js +4 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_return_locations.js +4 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_stock_locations.js +4 -0
- package/lib/esm/resources/klarna_gateways.d.ts +3 -0
- package/lib/esm/resources/klarna_gateways.js +4 -0
- package/lib/esm/resources/klarna_payments.d.ts +5 -2
- package/lib/esm/resources/klarna_payments.js +4 -0
- package/lib/esm/resources/manual_gateways.d.ts +3 -0
- package/lib/esm/resources/manual_gateways.js +4 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/manual_tax_calculators.js +4 -0
- package/lib/esm/resources/markets.d.ts +3 -0
- package/lib/esm/resources/markets.js +4 -0
- package/lib/esm/resources/merchants.d.ts +3 -0
- package/lib/esm/resources/merchants.js +4 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/esm/resources/order_amount_promotion_rules.js +4 -0
- package/lib/esm/resources/order_subscription_items.d.ts +3 -0
- package/lib/esm/resources/order_subscription_items.js +4 -0
- package/lib/esm/resources/order_subscriptions.d.ts +3 -0
- package/lib/esm/resources/order_subscriptions.js +4 -0
- package/lib/esm/resources/order_validation_rules.d.ts +3 -0
- package/lib/esm/resources/order_validation_rules.js +4 -0
- package/lib/esm/resources/orders.d.ts +8 -2
- package/lib/esm/resources/orders.js +4 -0
- package/lib/esm/resources/packages.d.ts +3 -0
- package/lib/esm/resources/packages.js +4 -0
- package/lib/esm/resources/parcel_line_items.d.ts +5 -2
- package/lib/esm/resources/parcel_line_items.js +4 -0
- package/lib/esm/resources/parcels.d.ts +3 -0
- package/lib/esm/resources/parcels.js +4 -0
- package/lib/esm/resources/payment_gateways.d.ts +3 -0
- package/lib/esm/resources/payment_gateways.js +4 -0
- package/lib/esm/resources/payment_methods.d.ts +3 -0
- package/lib/esm/resources/payment_methods.js +4 -0
- package/lib/esm/resources/paypal_gateways.d.ts +3 -0
- package/lib/esm/resources/paypal_gateways.js +4 -0
- package/lib/esm/resources/paypal_payments.d.ts +5 -2
- package/lib/esm/resources/paypal_payments.js +4 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/esm/resources/percentage_discount_promotions.js +4 -0
- package/lib/esm/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/esm/resources/price_frequency_tiers.js +4 -0
- package/lib/esm/resources/price_lists.d.ts +3 -0
- package/lib/esm/resources/price_lists.js +4 -0
- package/lib/esm/resources/price_tiers.d.ts +3 -0
- package/lib/esm/resources/price_tiers.js +4 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +3 -0
- package/lib/esm/resources/price_volume_tiers.js +4 -0
- package/lib/esm/resources/prices.d.ts +3 -0
- package/lib/esm/resources/prices.js +4 -0
- package/lib/esm/resources/promotion_rules.d.ts +5 -1
- package/lib/esm/resources/promotion_rules.js +4 -0
- package/lib/esm/resources/promotions.d.ts +3 -0
- package/lib/esm/resources/promotions.js +4 -0
- package/lib/esm/resources/refunds.d.ts +3 -0
- package/lib/esm/resources/refunds.js +4 -0
- package/lib/esm/resources/returns.d.ts +3 -0
- package/lib/esm/resources/returns.js +4 -0
- package/lib/esm/resources/satispay_gateways.d.ts +3 -0
- package/lib/esm/resources/satispay_gateways.js +4 -0
- package/lib/esm/resources/satispay_payments.d.ts +6 -2
- package/lib/esm/resources/satispay_payments.js +4 -0
- package/lib/esm/resources/shipments.d.ts +3 -0
- package/lib/esm/resources/shipments.js +4 -0
- package/lib/esm/resources/shipping_categories.d.ts +3 -0
- package/lib/esm/resources/shipping_categories.js +4 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_method_tiers.js +4 -0
- package/lib/esm/resources/shipping_methods.d.ts +3 -0
- package/lib/esm/resources/shipping_methods.js +4 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_weight_tiers.js +4 -0
- package/lib/esm/resources/shipping_zones.d.ts +3 -0
- package/lib/esm/resources/shipping_zones.js +4 -0
- package/lib/esm/resources/sku_list_items.d.ts +5 -2
- package/lib/esm/resources/sku_list_items.js +4 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +4 -0
- package/lib/esm/resources/sku_lists.d.ts +3 -0
- package/lib/esm/resources/sku_lists.js +4 -0
- package/lib/esm/resources/sku_options.d.ts +3 -0
- package/lib/esm/resources/sku_options.js +4 -0
- package/lib/esm/resources/skus.d.ts +3 -0
- package/lib/esm/resources/skus.js +4 -0
- package/lib/esm/resources/stock_items.d.ts +3 -0
- package/lib/esm/resources/stock_items.js +4 -0
- package/lib/esm/resources/stock_line_items.d.ts +5 -2
- package/lib/esm/resources/stock_line_items.js +4 -0
- package/lib/esm/resources/stock_locations.d.ts +3 -0
- package/lib/esm/resources/stock_locations.js +4 -0
- package/lib/esm/resources/stock_transfers.d.ts +3 -0
- package/lib/esm/resources/stock_transfers.js +4 -0
- package/lib/esm/resources/stripe_gateways.d.ts +3 -0
- package/lib/esm/resources/stripe_gateways.js +4 -0
- package/lib/esm/resources/stripe_payments.d.ts +8 -2
- package/lib/esm/resources/stripe_payments.js +4 -0
- package/lib/esm/resources/tax_calculators.d.ts +3 -0
- package/lib/esm/resources/tax_calculators.js +4 -0
- package/lib/esm/resources/tax_categories.d.ts +3 -0
- package/lib/esm/resources/tax_categories.js +4 -0
- package/lib/esm/resources/tax_rules.d.ts +5 -2
- package/lib/esm/resources/tax_rules.js +4 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +3 -0
- package/lib/esm/resources/taxjar_accounts.js +4 -0
- package/lib/esm/resources/transactions.d.ts +3 -0
- package/lib/esm/resources/transactions.js +4 -0
- package/lib/esm/resources/versions.d.ts +22 -0
- package/lib/esm/resources/versions.js +14 -0
- package/lib/esm/resources/voids.d.ts +3 -0
- package/lib/esm/resources/voids.js +4 -0
- package/lib/esm/resources/webhooks.d.ts +3 -0
- package/lib/esm/resources/webhooks.js +4 -0
- package/lib/esm/resources/wire_transfers.d.ts +5 -2
- package/lib/esm/resources/wire_transfers.js +4 -0
- package/lib/esm/util.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
@@ -29,6 +29,10 @@ class Parcels extends ApiResource {
|
|
29
29
|
const _parcelId = parcelId.id || parcelId;
|
30
30
|
return this.resources.fetch({ type: 'events' }, `parcels/${_parcelId}/events`, params, options);
|
31
31
|
}
|
32
|
+
async versions(parcelId, params, options) {
|
33
|
+
const _parcelId = parcelId.id || parcelId;
|
34
|
+
return this.resources.fetch({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options);
|
35
|
+
}
|
32
36
|
isParcel(resource) {
|
33
37
|
return resource.type && (resource.type === Parcels.TYPE);
|
34
38
|
}
|
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsList } from '../query';
|
4
4
|
import type { PaymentMethod } from './payment_methods';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type PaymentGatewayType = 'payment_gateways';
|
6
7
|
type PaymentGatewayRel = ResourceRel & {
|
7
8
|
type: PaymentGatewayType;
|
@@ -10,10 +11,12 @@ interface PaymentGateway extends Resource {
|
|
10
11
|
readonly type: PaymentGatewayType;
|
11
12
|
name: string;
|
12
13
|
payment_methods?: PaymentMethod[] | null;
|
14
|
+
versions?: Version[] | null;
|
13
15
|
}
|
14
16
|
declare class PaymentGateways extends ApiResource<PaymentGateway> {
|
15
17
|
static readonly TYPE: PaymentGatewayType;
|
16
18
|
payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
19
|
+
versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
17
20
|
isPaymentGateway(resource: any): resource is PaymentGateway;
|
18
21
|
relationship(id: string | ResourceId | null): PaymentGatewayRel;
|
19
22
|
type(): PaymentGatewayType;
|
@@ -4,6 +4,10 @@ class PaymentGateways extends ApiResource {
|
|
4
4
|
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
5
5
|
return this.resources.fetch({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options);
|
6
6
|
}
|
7
|
+
async versions(paymentGatewayId, params, options) {
|
8
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
9
|
+
return this.resources.fetch({ type: 'versions' }, `payment_gateways/${_paymentGatewayId}/versions`, params, options);
|
10
|
+
}
|
7
11
|
isPaymentGateway(resource) {
|
8
12
|
return resource.type && (resource.type === PaymentGateways.TYPE);
|
9
13
|
}
|
@@ -4,6 +4,7 @@ import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
|
4
4
|
import type { Market, MarketType } from './markets';
|
5
5
|
import type { PaymentGateway, PaymentGatewayType } from './payment_gateways';
|
6
6
|
import type { Attachment } from './attachments';
|
7
|
+
import type { Version } from './versions';
|
7
8
|
type PaymentMethodType = 'payment_methods';
|
8
9
|
type PaymentMethodRel = ResourceRel & {
|
9
10
|
type: PaymentMethodType;
|
@@ -32,6 +33,7 @@ interface PaymentMethod extends Resource {
|
|
32
33
|
market?: Market | null;
|
33
34
|
payment_gateway?: PaymentGateway | null;
|
34
35
|
attachments?: Attachment[] | null;
|
36
|
+
versions?: Version[] | null;
|
35
37
|
}
|
36
38
|
interface PaymentMethodCreate extends ResourceCreate {
|
37
39
|
payment_source_type: string;
|
@@ -65,6 +67,7 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
|
|
65
67
|
market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
66
68
|
payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
67
69
|
attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
70
|
+
versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
68
71
|
_disable(id: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
69
72
|
_enable(id: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
70
73
|
isPaymentMethod(resource: any): resource is PaymentMethod;
|
@@ -21,6 +21,10 @@ class PaymentMethods extends ApiResource {
|
|
21
21
|
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
22
22
|
return this.resources.fetch({ type: 'attachments' }, `payment_methods/${_paymentMethodId}/attachments`, params, options);
|
23
23
|
}
|
24
|
+
async versions(paymentMethodId, params, options) {
|
25
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
26
|
+
return this.resources.fetch({ type: 'versions' }, `payment_methods/${_paymentMethodId}/versions`, params, options);
|
27
|
+
}
|
24
28
|
async _disable(id, params, options) {
|
25
29
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: PaymentMethods.TYPE, _disable: true }, params, options);
|
26
30
|
}
|
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { PaymentMethod } from './payment_methods';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
import type { PaypalPayment } from './paypal_payments';
|
6
7
|
type PaypalGatewayType = 'paypal_gateways';
|
7
8
|
type PaypalGatewayRel = ResourceRel & {
|
@@ -11,6 +12,7 @@ interface PaypalGateway extends Resource {
|
|
11
12
|
readonly type: PaypalGatewayType;
|
12
13
|
name: string;
|
13
14
|
payment_methods?: PaymentMethod[] | null;
|
15
|
+
versions?: Version[] | null;
|
14
16
|
paypal_payments?: PaypalPayment[] | null;
|
15
17
|
}
|
16
18
|
interface PaypalGatewayCreate extends ResourceCreate {
|
@@ -29,6 +31,7 @@ declare class PaypalGateways extends ApiResource<PaypalGateway> {
|
|
29
31
|
update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
30
32
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
31
33
|
payment_methods(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
34
|
+
versions(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
32
35
|
paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
|
33
36
|
isPaypalGateway(resource: any): resource is PaypalGateway;
|
34
37
|
relationship(id: string | ResourceId | null): PaypalGatewayRel;
|
@@ -13,6 +13,10 @@ class PaypalGateways extends ApiResource {
|
|
13
13
|
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
14
14
|
return this.resources.fetch({ type: 'payment_methods' }, `paypal_gateways/${_paypalGatewayId}/payment_methods`, params, options);
|
15
15
|
}
|
16
|
+
async versions(paypalGatewayId, params, options) {
|
17
|
+
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
18
|
+
return this.resources.fetch({ type: 'versions' }, `paypal_gateways/${_paypalGatewayId}/versions`, params, options);
|
19
|
+
}
|
16
20
|
async paypal_payments(paypalGatewayId, params, options) {
|
17
21
|
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
18
22
|
return this.resources.fetch({ type: 'paypal_payments' }, `paypal_gateways/${_paypalGatewayId}/paypal_payments`, params, options);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order, OrderType } from './orders';
|
5
5
|
import type { PaymentGateway } from './payment_gateways';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PaypalPaymentType = 'paypal_payments';
|
7
8
|
type PaypalPaymentRel = ResourceRel & {
|
8
9
|
type: PaypalPaymentType;
|
@@ -27,6 +28,7 @@ interface PaypalPayment extends Resource {
|
|
27
28
|
payment_instrument?: Record<string, any> | null;
|
28
29
|
order?: Order | null;
|
29
30
|
payment_gateway?: PaymentGateway | null;
|
31
|
+
versions?: Version[] | null;
|
30
32
|
}
|
31
33
|
interface PaypalPaymentCreate extends ResourceCreate {
|
32
34
|
return_url: string;
|
@@ -45,6 +47,7 @@ declare class PaypalPayments extends ApiResource<PaypalPayment> {
|
|
45
47
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
46
48
|
order(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
47
49
|
payment_gateway(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
50
|
+
versions(paypalPaymentId: string | PaypalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
48
51
|
isPaypalPayment(resource: any): resource is PaypalPayment;
|
49
52
|
relationship(id: string | ResourceId | null): PaypalPaymentRel;
|
50
53
|
type(): PaypalPaymentType;
|
@@ -17,6 +17,10 @@ class PaypalPayments extends ApiResource {
|
|
17
17
|
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
18
18
|
return this.resources.fetch({ type: 'payment_gateways' }, `paypal_payments/${_paypalPaymentId}/payment_gateway`, params, options);
|
19
19
|
}
|
20
|
+
async versions(paypalPaymentId, params, options) {
|
21
|
+
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `paypal_payments/${_paypalPaymentId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
isPaypalPayment(resource) {
|
21
25
|
return resource.type && (resource.type === PaypalPayments.TYPE);
|
22
26
|
}
|
@@ -10,6 +10,7 @@ import type { SkuList, SkuListType } from './sku_lists';
|
|
10
10
|
import type { Attachment } from './attachments';
|
11
11
|
import type { Event } from './events';
|
12
12
|
import type { Tag, TagType } from './tags';
|
13
|
+
import type { Version } from './versions';
|
13
14
|
import type { Sku } from './skus';
|
14
15
|
type PercentageDiscountPromotionType = 'percentage_discount_promotions';
|
15
16
|
type PercentageDiscountPromotionRel = ResourceRel & {
|
@@ -55,6 +56,7 @@ interface PercentageDiscountPromotion extends Resource {
|
|
55
56
|
attachments?: Attachment[] | null;
|
56
57
|
events?: Event[] | null;
|
57
58
|
tags?: Tag[] | null;
|
59
|
+
versions?: Version[] | null;
|
58
60
|
skus?: Sku[] | null;
|
59
61
|
}
|
60
62
|
interface PercentageDiscountPromotionCreate extends ResourceCreate {
|
@@ -100,6 +102,7 @@ declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscoun
|
|
100
102
|
attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
101
103
|
events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
102
104
|
tags(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
105
|
+
versions(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
103
106
|
skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
104
107
|
isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion;
|
105
108
|
relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel;
|
@@ -41,6 +41,10 @@ class PercentageDiscountPromotions extends ApiResource {
|
|
41
41
|
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
42
42
|
return this.resources.fetch({ type: 'tags' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options);
|
43
43
|
}
|
44
|
+
async versions(percentageDiscountPromotionId, params, options) {
|
45
|
+
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
46
|
+
return this.resources.fetch({ type: 'versions' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/versions`, params, options);
|
47
|
+
}
|
44
48
|
async skus(percentageDiscountPromotionId, params, options) {
|
45
49
|
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
46
50
|
return this.resources.fetch({ type: 'skus' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options);
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price, PriceType } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Event } from './events';
|
7
8
|
type PriceFrequencyTierType = 'price_frequency_tiers';
|
8
9
|
type PriceFrequencyTierRel = ResourceRel & {
|
@@ -20,6 +21,7 @@ interface PriceFrequencyTier extends Resource {
|
|
20
21
|
formatted_price_amount?: string | null;
|
21
22
|
price?: Price | null;
|
22
23
|
attachments?: Attachment[] | null;
|
24
|
+
versions?: Version[] | null;
|
23
25
|
events?: Event[] | null;
|
24
26
|
}
|
25
27
|
interface PriceFrequencyTierCreate extends ResourceCreate {
|
@@ -41,6 +43,7 @@ declare class PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {
|
|
41
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
42
44
|
price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
43
45
|
attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
+
versions(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
47
|
events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
48
|
isPriceFrequencyTier(resource: any): resource is PriceFrequencyTier;
|
46
49
|
relationship(id: string | ResourceId | null): PriceFrequencyTierRel;
|
@@ -17,6 +17,10 @@ class PriceFrequencyTiers extends ApiResource {
|
|
17
17
|
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
18
18
|
return this.resources.fetch({ type: 'attachments' }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options);
|
19
19
|
}
|
20
|
+
async versions(priceFrequencyTierId, params, options) {
|
21
|
+
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `price_frequency_tiers/${_priceFrequencyTierId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
async events(priceFrequencyTierId, params, options) {
|
21
25
|
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
22
26
|
return this.resources.fetch({ type: 'events' }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options);
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PriceListType = 'price_lists';
|
7
8
|
type PriceListRel = ResourceRel & {
|
8
9
|
type: PriceListType;
|
@@ -14,6 +15,7 @@ interface PriceList extends Resource {
|
|
14
15
|
tax_included?: boolean | null;
|
15
16
|
prices?: Price[] | null;
|
16
17
|
attachments?: Attachment[] | null;
|
18
|
+
versions?: Version[] | null;
|
17
19
|
}
|
18
20
|
interface PriceListCreate extends ResourceCreate {
|
19
21
|
name: string;
|
@@ -32,6 +34,7 @@ declare class PriceLists extends ApiResource<PriceList> {
|
|
32
34
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
33
35
|
prices(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
|
34
36
|
attachments(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
37
|
+
versions(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
38
|
isPriceList(resource: any): resource is PriceList;
|
36
39
|
relationship(id: string | ResourceId | null): PriceListRel;
|
37
40
|
type(): PriceListType;
|
@@ -17,6 +17,10 @@ class PriceLists extends ApiResource {
|
|
17
17
|
const _priceListId = priceListId.id || priceListId;
|
18
18
|
return this.resources.fetch({ type: 'attachments' }, `price_lists/${_priceListId}/attachments`, params, options);
|
19
19
|
}
|
20
|
+
async versions(priceListId, params, options) {
|
21
|
+
const _priceListId = priceListId.id || priceListId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `price_lists/${_priceListId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
isPriceList(resource) {
|
21
25
|
return resource.type && (resource.type === PriceLists.TYPE);
|
22
26
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PriceTierType = 'price_tiers';
|
7
8
|
type PriceTierRel = ResourceRel & {
|
8
9
|
type: PriceTierType;
|
@@ -16,11 +17,13 @@ interface PriceTier extends Resource {
|
|
16
17
|
formatted_price_amount?: string | null;
|
17
18
|
price?: Price | null;
|
18
19
|
attachments?: Attachment[] | null;
|
20
|
+
versions?: Version[] | null;
|
19
21
|
}
|
20
22
|
declare class PriceTiers extends ApiResource<PriceTier> {
|
21
23
|
static readonly TYPE: PriceTierType;
|
22
24
|
price(priceTierId: string | PriceTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
23
25
|
attachments(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
26
|
+
versions(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
24
27
|
isPriceTier(resource: any): resource is PriceTier;
|
25
28
|
relationship(id: string | ResourceId | null): PriceTierRel;
|
26
29
|
type(): PriceTierType;
|
@@ -8,6 +8,10 @@ class PriceTiers extends ApiResource {
|
|
8
8
|
const _priceTierId = priceTierId.id || priceTierId;
|
9
9
|
return this.resources.fetch({ type: 'attachments' }, `price_tiers/${_priceTierId}/attachments`, params, options);
|
10
10
|
}
|
11
|
+
async versions(priceTierId, params, options) {
|
12
|
+
const _priceTierId = priceTierId.id || priceTierId;
|
13
|
+
return this.resources.fetch({ type: 'versions' }, `price_tiers/${_priceTierId}/versions`, params, options);
|
14
|
+
}
|
11
15
|
isPriceTier(resource) {
|
12
16
|
return resource.type && (resource.type === PriceTiers.TYPE);
|
13
17
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price, PriceType } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Event } from './events';
|
7
8
|
type PriceVolumeTierType = 'price_volume_tiers';
|
8
9
|
type PriceVolumeTierRel = ResourceRel & {
|
@@ -20,6 +21,7 @@ interface PriceVolumeTier extends Resource {
|
|
20
21
|
formatted_price_amount?: string | null;
|
21
22
|
price?: Price | null;
|
22
23
|
attachments?: Attachment[] | null;
|
24
|
+
versions?: Version[] | null;
|
23
25
|
events?: Event[] | null;
|
24
26
|
}
|
25
27
|
interface PriceVolumeTierCreate extends ResourceCreate {
|
@@ -41,6 +43,7 @@ declare class PriceVolumeTiers extends ApiResource<PriceVolumeTier> {
|
|
41
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
42
44
|
price(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
43
45
|
attachments(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
+
versions(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
47
|
events(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
48
|
isPriceVolumeTier(resource: any): resource is PriceVolumeTier;
|
46
49
|
relationship(id: string | ResourceId | null): PriceVolumeTierRel;
|
@@ -17,6 +17,10 @@ class PriceVolumeTiers extends ApiResource {
|
|
17
17
|
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
18
18
|
return this.resources.fetch({ type: 'attachments' }, `price_volume_tiers/${_priceVolumeTierId}/attachments`, params, options);
|
19
19
|
}
|
20
|
+
async versions(priceVolumeTierId, params, options) {
|
21
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `price_volume_tiers/${_priceVolumeTierId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
async events(priceVolumeTierId, params, options) {
|
21
25
|
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
22
26
|
return this.resources.fetch({ type: 'events' }, `price_volume_tiers/${_priceVolumeTierId}/events`, params, options);
|
@@ -7,6 +7,7 @@ import type { PriceTier, PriceTierType } from './price_tiers';
|
|
7
7
|
import type { PriceVolumeTier } from './price_volume_tiers';
|
8
8
|
import type { PriceFrequencyTier } from './price_frequency_tiers';
|
9
9
|
import type { Attachment } from './attachments';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
type PriceType = 'prices';
|
11
12
|
type PriceRel = ResourceRel & {
|
12
13
|
type: PriceType;
|
@@ -36,6 +37,7 @@ interface Price extends Resource {
|
|
36
37
|
price_volume_tiers?: PriceVolumeTier[] | null;
|
37
38
|
price_frequency_tiers?: PriceFrequencyTier[] | null;
|
38
39
|
attachments?: Attachment[] | null;
|
40
|
+
versions?: Version[] | null;
|
39
41
|
}
|
40
42
|
interface PriceCreate extends ResourceCreate {
|
41
43
|
sku_code?: string | null;
|
@@ -64,6 +66,7 @@ declare class Prices extends ApiResource<Price> {
|
|
64
66
|
price_volume_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>>;
|
65
67
|
price_frequency_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceFrequencyTier>>;
|
66
68
|
attachments(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
69
|
+
versions(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
67
70
|
isPrice(resource: any): resource is Price;
|
68
71
|
relationship(id: string | ResourceId | null): PriceRel;
|
69
72
|
type(): PriceType;
|
@@ -33,6 +33,10 @@ class Prices extends ApiResource {
|
|
33
33
|
const _priceId = priceId.id || priceId;
|
34
34
|
return this.resources.fetch({ type: 'attachments' }, `prices/${_priceId}/attachments`, params, options);
|
35
35
|
}
|
36
|
+
async versions(priceId, params, options) {
|
37
|
+
const _priceId = priceId.id || priceId;
|
38
|
+
return this.resources.fetch({ type: 'versions' }, `prices/${_priceId}/versions`, params, options);
|
39
|
+
}
|
36
40
|
isPrice(resource) {
|
37
41
|
return resource.type && (resource.type === Prices.TYPE);
|
38
42
|
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourceRel } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsList } from '../query';
|
3
4
|
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
5
|
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
5
6
|
import type { FreeGiftPromotion } from './free_gift_promotions';
|
6
7
|
import type { FixedPricePromotion } from './fixed_price_promotions';
|
7
8
|
import type { ExternalPromotion } from './external_promotions';
|
8
9
|
import type { FixedAmountPromotion } from './fixed_amount_promotions';
|
10
|
+
import type { Version } from './versions';
|
9
11
|
type PromotionRuleType = 'promotion_rules';
|
10
12
|
type PromotionRuleRel = ResourceRel & {
|
11
13
|
type: PromotionRuleType;
|
@@ -13,9 +15,11 @@ type PromotionRuleRel = ResourceRel & {
|
|
13
15
|
interface PromotionRule extends Resource {
|
14
16
|
readonly type: PromotionRuleType;
|
15
17
|
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
18
|
+
versions?: Version[] | null;
|
16
19
|
}
|
17
20
|
declare class PromotionRules extends ApiResource<PromotionRule> {
|
18
21
|
static readonly TYPE: PromotionRuleType;
|
22
|
+
versions(promotionRuleId: string | PromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
19
23
|
isPromotionRule(resource: any): resource is PromotionRule;
|
20
24
|
relationship(id: string | ResourceId | null): PromotionRuleRel;
|
21
25
|
type(): PromotionRuleType;
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PromotionRules extends ApiResource {
|
3
|
+
async versions(promotionRuleId, params, options) {
|
4
|
+
const _promotionRuleId = promotionRuleId.id || promotionRuleId;
|
5
|
+
return this.resources.fetch({ type: 'versions' }, `promotion_rules/${_promotionRuleId}/versions`, params, options);
|
6
|
+
}
|
3
7
|
isPromotionRule(resource) {
|
4
8
|
return resource.type && (resource.type === PromotionRules.TYPE);
|
5
9
|
}
|
@@ -10,6 +10,7 @@ import type { SkuList } from './sku_lists';
|
|
10
10
|
import type { Attachment } from './attachments';
|
11
11
|
import type { Event } from './events';
|
12
12
|
import type { Tag } from './tags';
|
13
|
+
import type { Version } from './versions';
|
13
14
|
type PromotionType = 'promotions';
|
14
15
|
type PromotionRel = ResourceRel & {
|
15
16
|
type: PromotionType;
|
@@ -32,6 +33,7 @@ interface Promotion extends Resource {
|
|
32
33
|
attachments?: Attachment[] | null;
|
33
34
|
events?: Event[] | null;
|
34
35
|
tags?: Tag[] | null;
|
36
|
+
versions?: Version[] | null;
|
35
37
|
}
|
36
38
|
declare class Promotions extends ApiResource<Promotion> {
|
37
39
|
static readonly TYPE: PromotionType;
|
@@ -43,6 +45,7 @@ declare class Promotions extends ApiResource<Promotion> {
|
|
43
45
|
attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
44
46
|
events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
47
|
tags(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
48
|
+
versions(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
46
49
|
isPromotion(resource: any): resource is Promotion;
|
47
50
|
relationship(id: string | ResourceId | null): PromotionRel;
|
48
51
|
type(): PromotionType;
|
@@ -32,6 +32,10 @@ class Promotions extends ApiResource {
|
|
32
32
|
const _promotionId = promotionId.id || promotionId;
|
33
33
|
return this.resources.fetch({ type: 'tags' }, `promotions/${_promotionId}/tags`, params, options);
|
34
34
|
}
|
35
|
+
async versions(promotionId, params, options) {
|
36
|
+
const _promotionId = promotionId.id || promotionId;
|
37
|
+
return this.resources.fetch({ type: 'versions' }, `promotions/${_promotionId}/versions`, params, options);
|
38
|
+
}
|
35
39
|
isPromotion(resource) {
|
36
40
|
return resource.type && (resource.type === Promotions.TYPE);
|
37
41
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order } from './orders';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Capture } from './captures';
|
7
8
|
import type { Event } from './events';
|
8
9
|
type RefundType = 'refunds';
|
@@ -24,6 +25,7 @@ interface Refund extends Resource {
|
|
24
25
|
gateway_transaction_id?: string | null;
|
25
26
|
order?: Order | null;
|
26
27
|
attachments?: Attachment[] | null;
|
28
|
+
versions?: Version[] | null;
|
27
29
|
reference_capture?: Capture | null;
|
28
30
|
events?: Event[] | null;
|
29
31
|
}
|
@@ -31,6 +33,7 @@ declare class Refunds extends ApiResource<Refund> {
|
|
31
33
|
static readonly TYPE: RefundType;
|
32
34
|
order(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
33
35
|
attachments(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
36
|
+
versions(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
34
37
|
reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
35
38
|
events(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
36
39
|
isRefund(resource: any): resource is Refund;
|
@@ -8,6 +8,10 @@ class Refunds extends ApiResource {
|
|
8
8
|
const _refundId = refundId.id || refundId;
|
9
9
|
return this.resources.fetch({ type: 'attachments' }, `refunds/${_refundId}/attachments`, params, options);
|
10
10
|
}
|
11
|
+
async versions(refundId, params, options) {
|
12
|
+
const _refundId = refundId.id || refundId;
|
13
|
+
return this.resources.fetch({ type: 'versions' }, `refunds/${_refundId}/versions`, params, options);
|
14
|
+
}
|
11
15
|
async reference_capture(refundId, params, options) {
|
12
16
|
const _refundId = refundId.id || refundId;
|
13
17
|
return this.resources.fetch({ type: 'captures' }, `refunds/${_refundId}/reference_capture`, params, options);
|
@@ -9,6 +9,7 @@ import type { ReturnLineItem } from './return_line_items';
|
|
9
9
|
import type { Attachment } from './attachments';
|
10
10
|
import type { Event } from './events';
|
11
11
|
import type { Tag, TagType } from './tags';
|
12
|
+
import type { Version } from './versions';
|
12
13
|
type ReturnType = 'returns';
|
13
14
|
type ReturnRel = ResourceRel & {
|
14
15
|
type: ReturnType;
|
@@ -43,6 +44,7 @@ interface Return extends Resource {
|
|
43
44
|
attachments?: Attachment[] | null;
|
44
45
|
events?: Event[] | null;
|
45
46
|
tags?: Tag[] | null;
|
47
|
+
versions?: Version[] | null;
|
46
48
|
}
|
47
49
|
interface ReturnCreate extends ResourceCreate {
|
48
50
|
order: OrderRel;
|
@@ -76,6 +78,7 @@ declare class Returns extends ApiResource<Return> {
|
|
76
78
|
attachments(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
77
79
|
events(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
78
80
|
tags(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
81
|
+
versions(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
79
82
|
_request(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
80
83
|
_approve(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
81
84
|
_cancel(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
@@ -45,6 +45,10 @@ class Returns extends ApiResource {
|
|
45
45
|
const _returnId = returnId.id || returnId;
|
46
46
|
return this.resources.fetch({ type: 'tags' }, `returns/${_returnId}/tags`, params, options);
|
47
47
|
}
|
48
|
+
async versions(returnId, params, options) {
|
49
|
+
const _returnId = returnId.id || returnId;
|
50
|
+
return this.resources.fetch({ type: 'versions' }, `returns/${_returnId}/versions`, params, options);
|
51
|
+
}
|
48
52
|
async _request(id, params, options) {
|
49
53
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: Returns.TYPE, _request: true }, params, options);
|
50
54
|
}
|
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { PaymentMethod } from './payment_methods';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
import type { SatispayPayment, SatispayPaymentType } from './satispay_payments';
|
6
7
|
type SatispayGatewayType = 'satispay_gateways';
|
7
8
|
type SatispayGatewayRel = ResourceRel & {
|
@@ -17,6 +18,7 @@ interface SatispayGateway extends Resource {
|
|
17
18
|
key_id: string;
|
18
19
|
webhook_endpoint_url?: string | null;
|
19
20
|
payment_methods?: PaymentMethod[] | null;
|
21
|
+
versions?: Version[] | null;
|
20
22
|
satispay_payments?: SatispayPayment[] | null;
|
21
23
|
}
|
22
24
|
interface SatispayGatewayCreate extends ResourceCreate {
|
@@ -34,6 +36,7 @@ declare class SatispayGateways extends ApiResource<SatispayGateway> {
|
|
34
36
|
update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
35
37
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
36
38
|
payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
39
|
+
versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
37
40
|
satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
38
41
|
isSatispayGateway(resource: any): resource is SatispayGateway;
|
39
42
|
relationship(id: string | ResourceId | null): SatispayGatewayRel;
|
@@ -13,6 +13,10 @@ class SatispayGateways extends ApiResource {
|
|
13
13
|
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
14
14
|
return this.resources.fetch({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options);
|
15
15
|
}
|
16
|
+
async versions(satispayGatewayId, params, options) {
|
17
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
18
|
+
return this.resources.fetch({ type: 'versions' }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options);
|
19
|
+
}
|
16
20
|
async satispay_payments(satispayGatewayId, params, options) {
|
17
21
|
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
18
22
|
return this.resources.fetch({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order, OrderType } from './orders';
|
5
5
|
import type { PaymentGateway } from './payment_gateways';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type SatispayPaymentType = 'satispay_payments';
|
7
8
|
type SatispayPaymentRel = ResourceRel & {
|
8
9
|
type: SatispayPaymentType;
|
@@ -14,6 +15,7 @@ interface SatispayPayment extends Resource {
|
|
14
15
|
readonly type: SatispayPaymentType;
|
15
16
|
payment_id?: string | null;
|
16
17
|
flow?: string | null;
|
18
|
+
status?: string | null;
|
17
19
|
redirect_url?: string | null;
|
18
20
|
payment_url?: string | null;
|
19
21
|
intent_amount_cents: number;
|
@@ -22,6 +24,7 @@ interface SatispayPayment extends Resource {
|
|
22
24
|
payment_response?: Record<string, any> | null;
|
23
25
|
order?: Order | null;
|
24
26
|
payment_gateway?: PaymentGateway | null;
|
27
|
+
versions?: Version[] | null;
|
25
28
|
}
|
26
29
|
interface SatispayPaymentCreate extends ResourceCreate {
|
27
30
|
flow?: string | null;
|
@@ -40,6 +43,7 @@ declare class SatispayPayments extends ApiResource<SatispayPayment> {
|
|
40
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
41
44
|
order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
42
45
|
payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
46
|
+
versions(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
47
|
_refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
44
48
|
isSatispayPayment(resource: any): resource is SatispayPayment;
|
45
49
|
relationship(id: string | ResourceId | null): SatispayPaymentRel;
|
@@ -17,6 +17,10 @@ class SatispayPayments extends ApiResource {
|
|
17
17
|
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
18
18
|
return this.resources.fetch({ type: 'payment_gateways' }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options);
|
19
19
|
}
|
20
|
+
async versions(satispayPaymentId, params, options) {
|
21
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `satispay_payments/${_satispayPaymentId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
async _refresh(id, params, options) {
|
21
25
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: SatispayPayments.TYPE, _refresh: true }, params, options);
|
22
26
|
}
|