@commercelayer/sdk 4.7.5 → 4.8.1
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 +1 -103
- package/lib/cjs/client.d.ts +1 -31
- package/lib/cjs/commercelayer.d.ts +1 -122
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.d.ts +1 -4
- package/lib/cjs/config.d.ts +1 -11
- package/lib/cjs/debug.d.ts +1 -3
- package/lib/cjs/error.d.ts +1 -26
- package/lib/cjs/index.d.ts +1 -7
- package/lib/cjs/interceptor.d.ts +1 -19
- package/lib/cjs/jsonapi.d.ts +1 -5
- package/lib/cjs/model.d.ts +1 -101
- package/lib/cjs/query.d.ts +1 -23
- package/lib/cjs/resource.d.ts +1 -76
- package/lib/cjs/resources/addresses.d.ts +1 -88
- package/lib/cjs/resources/adjustments.d.ts +1 -35
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
- package/lib/cjs/resources/adyen_payments.d.ts +1 -44
- package/lib/cjs/resources/application.d.ts +1 -21
- package/lib/cjs/resources/attachments.d.ts +1 -156
- package/lib/cjs/resources/authorizations.d.ts +1 -57
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
- package/lib/cjs/resources/braintree_payments.d.ts +1 -47
- package/lib/cjs/resources/bundles.d.ts +1 -74
- package/lib/cjs/resources/captures.d.ts +1 -48
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
- package/lib/cjs/resources/coupons.d.ts +1 -45
- package/lib/cjs/resources/customer_addresses.d.ts +1 -41
- package/lib/cjs/resources/customer_groups.d.ts +1 -36
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
- package/lib/cjs/resources/customers.d.ts +1 -60
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
- package/lib/cjs/resources/event_callbacks.d.ts +1 -24
- package/lib/cjs/resources/external_gateways.d.ts +1 -49
- package/lib/cjs/resources/external_payments.d.ts +1 -43
- package/lib/cjs/resources/external_promotions.d.ts +1 -86
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
- package/lib/cjs/resources/geocoders.d.ts +1 -24
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
- package/lib/cjs/resources/gift_cards.d.ts +1 -82
- package/lib/cjs/resources/google_geocoders.d.ts +1 -35
- package/lib/cjs/resources/imports.d.ts +1 -40
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
- package/lib/cjs/resources/inventory_models.d.ts +1 -42
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
- package/lib/cjs/resources/klarna_payments.d.ts +1 -41
- package/lib/cjs/resources/line_item_options.d.ts +1 -57
- package/lib/cjs/resources/line_items.d.ts +1 -125
- package/lib/cjs/resources/manual_gateways.d.ts +1 -33
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
- package/lib/cjs/resources/markets.d.ts +1 -81
- package/lib/cjs/resources/merchants.d.ts +1 -38
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
- package/lib/cjs/resources/order_copies.d.ts +1 -45
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
- package/lib/cjs/resources/orders.d.ts +1 -271
- package/lib/cjs/resources/organization.d.ts +1 -32
- package/lib/cjs/resources/packages.d.ts +1 -56
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
- package/lib/cjs/resources/parcels.d.ts +1 -108
- package/lib/cjs/resources/payment_gateways.d.ts +1 -21
- package/lib/cjs/resources/payment_methods.d.ts +1 -59
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
- package/lib/cjs/resources/paypal_payments.d.ts +1 -49
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
- package/lib/cjs/resources/price_lists.d.ts +1 -39
- package/lib/cjs/resources/prices.d.ts +1 -57
- package/lib/cjs/resources/promotion_rules.d.ts +1 -24
- package/lib/cjs/resources/promotions.d.ts +1 -41
- package/lib/cjs/resources/refunds.d.ts +1 -34
- package/lib/cjs/resources/return_line_items.d.ts +1 -49
- package/lib/cjs/resources/returns.d.ts +1 -72
- package/lib/cjs/resources/shipments.d.ts +1 -89
- package/lib/cjs/resources/shipping_categories.d.ts +1 -33
- package/lib/cjs/resources/shipping_methods.d.ts +1 -74
- package/lib/cjs/resources/shipping_zones.d.ts +1 -48
- package/lib/cjs/resources/sku_list_items.d.ts +1 -47
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
- package/lib/cjs/resources/sku_lists.d.ts +1 -49
- package/lib/cjs/resources/sku_options.d.ts +1 -56
- package/lib/cjs/resources/skus.d.ts +1 -78
- package/lib/cjs/resources/stock_items.d.ts +1 -49
- package/lib/cjs/resources/stock_line_items.d.ts +1 -29
- package/lib/cjs/resources/stock_locations.d.ts +1 -57
- package/lib/cjs/resources/stock_transfers.d.ts +1 -71
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
- package/lib/cjs/resources/stripe_payments.d.ts +1 -42
- package/lib/cjs/resources/tax_calculators.d.ts +1 -27
- package/lib/cjs/resources/tax_categories.d.ts +1 -59
- package/lib/cjs/resources/tax_rules.d.ts +1 -69
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
- package/lib/cjs/resources/transactions.d.ts +1 -31
- package/lib/cjs/resources/voids.d.ts +1 -34
- package/lib/cjs/resources/webhooks.d.ts +1 -42
- package/lib/cjs/resources/wire_transfers.d.ts +1 -32
- package/lib/cjs/static.d.ts +1 -6
- package/lib/cjs/static.js +1 -1
- package/lib/cjs/util.d.ts +1 -2
- package/lib/esm/api.d.ts +1 -103
- package/lib/esm/client.d.ts +1 -31
- package/lib/esm/commercelayer.d.ts +1 -122
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.d.ts +1 -4
- package/lib/esm/config.d.ts +1 -11
- package/lib/esm/debug.d.ts +1 -3
- package/lib/esm/error.d.ts +1 -26
- package/lib/esm/index.d.ts +1 -7
- package/lib/esm/interceptor.d.ts +1 -19
- package/lib/esm/jsonapi.d.ts +1 -5
- package/lib/esm/model.d.ts +1 -101
- package/lib/esm/query.d.ts +1 -23
- package/lib/esm/resource.d.ts +1 -76
- package/lib/esm/resources/addresses.d.ts +1 -88
- package/lib/esm/resources/adjustments.d.ts +1 -35
- package/lib/esm/resources/adyen_gateways.d.ts +1 -47
- package/lib/esm/resources/adyen_payments.d.ts +1 -44
- package/lib/esm/resources/application.d.ts +1 -21
- package/lib/esm/resources/attachments.d.ts +1 -156
- package/lib/esm/resources/authorizations.d.ts +1 -57
- package/lib/esm/resources/avalara_accounts.d.ts +1 -52
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
- package/lib/esm/resources/bing_geocoders.d.ts +1 -35
- package/lib/esm/resources/braintree_gateways.d.ts +1 -56
- package/lib/esm/resources/braintree_payments.d.ts +1 -47
- package/lib/esm/resources/bundles.d.ts +1 -74
- package/lib/esm/resources/captures.d.ts +1 -48
- package/lib/esm/resources/carrier_accounts.d.ts +1 -26
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
- package/lib/esm/resources/coupon_recipients.d.ts +1 -44
- package/lib/esm/resources/coupons.d.ts +1 -45
- package/lib/esm/resources/customer_addresses.d.ts +1 -41
- package/lib/esm/resources/customer_groups.d.ts +1 -36
- package/lib/esm/resources/customer_password_resets.d.ts +1 -33
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
- package/lib/esm/resources/customers.d.ts +1 -60
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
- package/lib/esm/resources/event_callbacks.d.ts +1 -24
- package/lib/esm/resources/external_gateways.d.ts +1 -49
- package/lib/esm/resources/external_payments.d.ts +1 -43
- package/lib/esm/resources/external_promotions.d.ts +1 -86
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
- package/lib/esm/resources/geocoders.d.ts +1 -24
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
- package/lib/esm/resources/gift_cards.d.ts +1 -82
- package/lib/esm/resources/google_geocoders.d.ts +1 -35
- package/lib/esm/resources/imports.d.ts +1 -40
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
- package/lib/esm/resources/inventory_models.d.ts +1 -42
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
- package/lib/esm/resources/klarna_gateways.d.ts +1 -44
- package/lib/esm/resources/klarna_payments.d.ts +1 -41
- package/lib/esm/resources/line_item_options.d.ts +1 -57
- package/lib/esm/resources/line_items.d.ts +1 -125
- package/lib/esm/resources/manual_gateways.d.ts +1 -33
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
- package/lib/esm/resources/markets.d.ts +1 -81
- package/lib/esm/resources/merchants.d.ts +1 -38
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
- package/lib/esm/resources/order_copies.d.ts +1 -45
- package/lib/esm/resources/order_subscriptions.d.ts +1 -67
- package/lib/esm/resources/order_validation_rules.d.ts +1 -20
- package/lib/esm/resources/orders.d.ts +1 -271
- package/lib/esm/resources/organization.d.ts +1 -32
- package/lib/esm/resources/packages.d.ts +1 -56
- package/lib/esm/resources/parcel_line_items.d.ts +1 -49
- package/lib/esm/resources/parcels.d.ts +1 -108
- package/lib/esm/resources/payment_gateways.d.ts +1 -21
- package/lib/esm/resources/payment_methods.d.ts +1 -59
- package/lib/esm/resources/paypal_gateways.d.ts +1 -39
- package/lib/esm/resources/paypal_payments.d.ts +1 -49
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
- package/lib/esm/resources/price_lists.d.ts +1 -39
- package/lib/esm/resources/prices.d.ts +1 -57
- package/lib/esm/resources/promotion_rules.d.ts +1 -24
- package/lib/esm/resources/promotions.d.ts +1 -41
- package/lib/esm/resources/refunds.d.ts +1 -34
- package/lib/esm/resources/return_line_items.d.ts +1 -49
- package/lib/esm/resources/returns.d.ts +1 -72
- package/lib/esm/resources/shipments.d.ts +1 -89
- package/lib/esm/resources/shipping_categories.d.ts +1 -33
- package/lib/esm/resources/shipping_methods.d.ts +1 -74
- package/lib/esm/resources/shipping_zones.d.ts +1 -48
- package/lib/esm/resources/sku_list_items.d.ts +1 -47
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
- package/lib/esm/resources/sku_lists.d.ts +1 -49
- package/lib/esm/resources/sku_options.d.ts +1 -56
- package/lib/esm/resources/skus.d.ts +1 -78
- package/lib/esm/resources/stock_items.d.ts +1 -49
- package/lib/esm/resources/stock_line_items.d.ts +1 -29
- package/lib/esm/resources/stock_locations.d.ts +1 -57
- package/lib/esm/resources/stock_transfers.d.ts +1 -71
- package/lib/esm/resources/stripe_gateways.d.ts +1 -38
- package/lib/esm/resources/stripe_payments.d.ts +1 -42
- package/lib/esm/resources/tax_calculators.d.ts +1 -27
- package/lib/esm/resources/tax_categories.d.ts +1 -59
- package/lib/esm/resources/tax_rules.d.ts +1 -69
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
- package/lib/esm/resources/transactions.d.ts +1 -31
- package/lib/esm/resources/voids.d.ts +1 -34
- package/lib/esm/resources/webhooks.d.ts +1 -42
- package/lib/esm/resources/wire_transfers.d.ts +1 -32
- package/lib/esm/static.d.ts +1 -6
- package/lib/esm/static.js +1 -1
- package/lib/esm/util.d.ts +1 -2
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -1,156 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Bundle } from './bundles';
|
4
|
-
import type { CarrierAccount } from './carrier_accounts';
|
5
|
-
import type { CustomerGroup } from './customer_groups';
|
6
|
-
import type { Customer } from './customers';
|
7
|
-
import type { DeliveryLeadTime } from './delivery_lead_times';
|
8
|
-
import type { Geocoder } from './geocoders';
|
9
|
-
import type { GiftCardRecipient } from './gift_card_recipients';
|
10
|
-
import type { GiftCard } from './gift_cards';
|
11
|
-
import type { InventoryModel } from './inventory_models';
|
12
|
-
import type { Market } from './markets';
|
13
|
-
import type { Merchant } from './merchants';
|
14
|
-
import type { BillingInfoValidationRule } from './billing_info_validation_rules';
|
15
|
-
import type { Order } from './orders';
|
16
|
-
import type { Package } from './packages';
|
17
|
-
import type { Parcel } from './parcels';
|
18
|
-
import type { PaymentMethod } from './payment_methods';
|
19
|
-
import type { PriceList } from './price_lists';
|
20
|
-
import type { Price } from './prices';
|
21
|
-
import type { Promotion } from './promotions';
|
22
|
-
import type { Return } from './returns';
|
23
|
-
import type { Shipment } from './shipments';
|
24
|
-
import type { ShippingCategory } from './shipping_categories';
|
25
|
-
import type { ShippingMethod } from './shipping_methods';
|
26
|
-
import type { ShippingZone } from './shipping_zones';
|
27
|
-
import type { SkuOption } from './sku_options';
|
28
|
-
import type { Sku } from './skus';
|
29
|
-
import type { StockItem } from './stock_items';
|
30
|
-
import type { StockLocation } from './stock_locations';
|
31
|
-
import type { TaxCalculator } from './tax_calculators';
|
32
|
-
import type { TaxCategory } from './tax_categories';
|
33
|
-
declare type AttachmentRel = ResourceRel & {
|
34
|
-
type: typeof Attachments.TYPE;
|
35
|
-
};
|
36
|
-
declare type BundleRel = ResourceRel & {
|
37
|
-
type: 'bundles';
|
38
|
-
};
|
39
|
-
declare type CarrierAccountRel = ResourceRel & {
|
40
|
-
type: 'carrier_accounts';
|
41
|
-
};
|
42
|
-
declare type CustomerGroupRel = ResourceRel & {
|
43
|
-
type: 'customer_groups';
|
44
|
-
};
|
45
|
-
declare type CustomerRel = ResourceRel & {
|
46
|
-
type: 'customers';
|
47
|
-
};
|
48
|
-
declare type DeliveryLeadTimeRel = ResourceRel & {
|
49
|
-
type: 'delivery_lead_times';
|
50
|
-
};
|
51
|
-
declare type GeocoderRel = ResourceRel & {
|
52
|
-
type: 'geocoders';
|
53
|
-
};
|
54
|
-
declare type GiftCardRecipientRel = ResourceRel & {
|
55
|
-
type: 'gift_card_recipients';
|
56
|
-
};
|
57
|
-
declare type GiftCardRel = ResourceRel & {
|
58
|
-
type: 'gift_cards';
|
59
|
-
};
|
60
|
-
declare type InventoryModelRel = ResourceRel & {
|
61
|
-
type: 'inventory_models';
|
62
|
-
};
|
63
|
-
declare type MarketRel = ResourceRel & {
|
64
|
-
type: 'markets';
|
65
|
-
};
|
66
|
-
declare type MerchantRel = ResourceRel & {
|
67
|
-
type: 'merchants';
|
68
|
-
};
|
69
|
-
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
70
|
-
type: 'billing_info_validation_rules';
|
71
|
-
};
|
72
|
-
declare type OrderRel = ResourceRel & {
|
73
|
-
type: 'orders';
|
74
|
-
};
|
75
|
-
declare type PackageRel = ResourceRel & {
|
76
|
-
type: 'packages';
|
77
|
-
};
|
78
|
-
declare type ParcelRel = ResourceRel & {
|
79
|
-
type: 'parcels';
|
80
|
-
};
|
81
|
-
declare type PaymentMethodRel = ResourceRel & {
|
82
|
-
type: 'payment_methods';
|
83
|
-
};
|
84
|
-
declare type PriceListRel = ResourceRel & {
|
85
|
-
type: 'price_lists';
|
86
|
-
};
|
87
|
-
declare type PriceRel = ResourceRel & {
|
88
|
-
type: 'prices';
|
89
|
-
};
|
90
|
-
declare type PromotionRel = ResourceRel & {
|
91
|
-
type: 'promotions';
|
92
|
-
};
|
93
|
-
declare type ReturnRel = ResourceRel & {
|
94
|
-
type: 'returns';
|
95
|
-
};
|
96
|
-
declare type ShipmentRel = ResourceRel & {
|
97
|
-
type: 'shipments';
|
98
|
-
};
|
99
|
-
declare type ShippingCategoryRel = ResourceRel & {
|
100
|
-
type: 'shipping_categories';
|
101
|
-
};
|
102
|
-
declare type ShippingMethodRel = ResourceRel & {
|
103
|
-
type: 'shipping_methods';
|
104
|
-
};
|
105
|
-
declare type ShippingZoneRel = ResourceRel & {
|
106
|
-
type: 'shipping_zones';
|
107
|
-
};
|
108
|
-
declare type SkuOptionRel = ResourceRel & {
|
109
|
-
type: 'sku_options';
|
110
|
-
};
|
111
|
-
declare type SkuRel = ResourceRel & {
|
112
|
-
type: 'skus';
|
113
|
-
};
|
114
|
-
declare type StockItemRel = ResourceRel & {
|
115
|
-
type: 'stock_items';
|
116
|
-
};
|
117
|
-
declare type StockLocationRel = ResourceRel & {
|
118
|
-
type: 'stock_locations';
|
119
|
-
};
|
120
|
-
declare type TaxCalculatorRel = ResourceRel & {
|
121
|
-
type: 'tax_calculators';
|
122
|
-
};
|
123
|
-
declare type TaxCategoryRel = ResourceRel & {
|
124
|
-
type: 'tax_categories';
|
125
|
-
};
|
126
|
-
interface Attachment extends Resource {
|
127
|
-
name?: string;
|
128
|
-
description?: string;
|
129
|
-
url?: string;
|
130
|
-
attachable?: Bundle | CarrierAccount | CustomerGroup | Customer | DeliveryLeadTime | Geocoder | GiftCardRecipient | GiftCard | InventoryModel | Market | Merchant | BillingInfoValidationRule | Order | Package | Parcel | PaymentMethod | PriceList | Price | Promotion | Return | Shipment | ShippingCategory | ShippingMethod | ShippingZone | SkuOption | Sku | StockItem | StockLocation | TaxCalculator | TaxCategory;
|
131
|
-
}
|
132
|
-
interface AttachmentCreate extends ResourceCreate {
|
133
|
-
name: string;
|
134
|
-
description?: string;
|
135
|
-
url?: string;
|
136
|
-
attachable: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
137
|
-
}
|
138
|
-
interface AttachmentUpdate extends ResourceUpdate {
|
139
|
-
name?: string;
|
140
|
-
description?: string;
|
141
|
-
url?: string;
|
142
|
-
attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
143
|
-
}
|
144
|
-
declare class Attachments extends ApiResource {
|
145
|
-
static readonly TYPE: 'attachments';
|
146
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
147
|
-
create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
148
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
149
|
-
update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
150
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
151
|
-
isAttachment(resource: any): resource is Attachment;
|
152
|
-
relationship(id: string | ResourceId | null): AttachmentRel;
|
153
|
-
type(): string;
|
154
|
-
}
|
155
|
-
export default Attachments;
|
156
|
-
export { Attachment, AttachmentCreate, AttachmentUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Bundle}from'./bundles';import type{CarrierAccount}from'./carrier_accounts';import type{CustomerGroup}from'./customer_groups';import type{Customer}from'./customers';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{Geocoder}from'./geocoders';import type{GiftCardRecipient}from'./gift_card_recipients';import type{GiftCard}from'./gift_cards';import type{InventoryModel}from'./inventory_models';import type{Market}from'./markets';import type{Merchant}from'./merchants';import type{BillingInfoValidationRule}from'./billing_info_validation_rules';import type{Order}from'./orders';import type{Package}from'./packages';import type{Parcel}from'./parcels';import type{PaymentMethod}from'./payment_methods';import type{PriceList}from'./price_lists';import type{Price}from'./prices';import type{Promotion}from'./promotions';import type{Return}from'./returns';import type{Shipment}from'./shipments';import type{ShippingCategory}from'./shipping_categories';import type{ShippingMethod}from'./shipping_methods';import type{ShippingZone}from'./shipping_zones';import type{SkuOption}from'./sku_options';import type{Sku}from'./skus';import type{StockItem}from'./stock_items';import type{StockLocation}from'./stock_locations';import type{TaxCalculator}from'./tax_calculators';import type{TaxCategory}from'./tax_categories';declare type AttachmentRel=ResourceRel&{type:typeof Attachments.TYPE;};declare type BundleRel=ResourceRel&{type:'bundles';};declare type CarrierAccountRel=ResourceRel&{type:'carrier_accounts';};declare type CustomerGroupRel=ResourceRel&{type:'customer_groups';};declare type CustomerRel=ResourceRel&{type:'customers';};declare type DeliveryLeadTimeRel=ResourceRel&{type:'delivery_lead_times';};declare type GeocoderRel=ResourceRel&{type:'geocoders';};declare type GiftCardRecipientRel=ResourceRel&{type:'gift_card_recipients';};declare type GiftCardRel=ResourceRel&{type:'gift_cards';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};declare type MarketRel=ResourceRel&{type:'markets';};declare type MerchantRel=ResourceRel&{type:'merchants';};declare type BillingInfoValidationRuleRel=ResourceRel&{type:'billing_info_validation_rules';};declare type OrderRel=ResourceRel&{type:'orders';};declare type PackageRel=ResourceRel&{type:'packages';};declare type ParcelRel=ResourceRel&{type:'parcels';};declare type PaymentMethodRel=ResourceRel&{type:'payment_methods';};declare type PriceListRel=ResourceRel&{type:'price_lists';};declare type PriceRel=ResourceRel&{type:'prices';};declare type PromotionRel=ResourceRel&{type:'promotions';};declare type ReturnRel=ResourceRel&{type:'returns';};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};declare type ShippingMethodRel=ResourceRel&{type:'shipping_methods';};declare type ShippingZoneRel=ResourceRel&{type:'shipping_zones';};declare type SkuOptionRel=ResourceRel&{type:'sku_options';};declare type SkuRel=ResourceRel&{type:'skus';};declare type StockItemRel=ResourceRel&{type:'stock_items';};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type TaxCalculatorRel=ResourceRel&{type:'tax_calculators';};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface Attachment extends Resource{name?:string;description?:string;url?:string;attachable?:Bundle|CarrierAccount|CustomerGroup|Customer|DeliveryLeadTime|Geocoder|GiftCardRecipient|GiftCard|InventoryModel|Market|Merchant|BillingInfoValidationRule|Order|Package|Parcel|PaymentMethod|PriceList|Price|Promotion|Return|Shipment|ShippingCategory|ShippingMethod|ShippingZone|SkuOption|Sku|StockItem|StockLocation|TaxCalculator|TaxCategory;}interface AttachmentCreate extends ResourceCreate{name:string;description?:string;url?:string;attachable:BundleRel|CarrierAccountRel|CustomerGroupRel|CustomerRel|DeliveryLeadTimeRel|GeocoderRel|GiftCardRecipientRel|GiftCardRel|InventoryModelRel|MarketRel|MerchantRel|BillingInfoValidationRuleRel|OrderRel|PackageRel|ParcelRel|PaymentMethodRel|PriceListRel|PriceRel|PromotionRel|ReturnRel|ShipmentRel|ShippingCategoryRel|ShippingMethodRel|ShippingZoneRel|SkuOptionRel|SkuRel|StockItemRel|StockLocationRel|TaxCalculatorRel|TaxCategoryRel;}interface AttachmentUpdate extends ResourceUpdate{name?:string;description?:string;url?:string;attachable?:BundleRel|CarrierAccountRel|CustomerGroupRel|CustomerRel|DeliveryLeadTimeRel|GeocoderRel|GiftCardRecipientRel|GiftCardRel|InventoryModelRel|MarketRel|MerchantRel|BillingInfoValidationRuleRel|OrderRel|PackageRel|ParcelRel|PaymentMethodRel|PriceListRel|PriceRel|PromotionRel|ReturnRel|ShipmentRel|ShippingCategoryRel|ShippingMethodRel|ShippingZoneRel|SkuOptionRel|SkuRel|StockItemRel|StockLocationRel|TaxCalculatorRel|TaxCategoryRel;}declare class Attachments extends ApiResource{static readonly TYPE:'attachments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;create(resource:AttachmentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Attachment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Attachment>;update(resource:AttachmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Attachment>;delete(id:string,options?:ResourcesConfig):Promise<void>;isAttachment(resource:any):resource is Attachment;relationship(id:string|ResourceId|null):AttachmentRel;type():string;}export default Attachments;export{Attachment,AttachmentCreate,AttachmentUpdate};
|
@@ -1,57 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { Capture } from './captures';
|
5
|
-
import type { Void } from './voids';
|
6
|
-
declare type AuthorizationRel = ResourceRel & {
|
7
|
-
type: typeof Authorizations.TYPE;
|
8
|
-
};
|
9
|
-
interface Authorization extends Resource {
|
10
|
-
number?: string;
|
11
|
-
currency_code?: string;
|
12
|
-
amount_cents?: number;
|
13
|
-
amount_float?: number;
|
14
|
-
formatted_amount?: string;
|
15
|
-
succeeded?: boolean;
|
16
|
-
message?: string;
|
17
|
-
error_code?: string;
|
18
|
-
error_detail?: string;
|
19
|
-
token?: string;
|
20
|
-
gateway_transaction_id?: string;
|
21
|
-
cvv_code?: string;
|
22
|
-
cvv_message?: string;
|
23
|
-
avs_code?: string;
|
24
|
-
avs_message?: string;
|
25
|
-
fraud_review?: string;
|
26
|
-
capture_amount_cents?: number;
|
27
|
-
capture_amount_float?: number;
|
28
|
-
formatted_capture_amount?: string;
|
29
|
-
capture_balance_cents?: number;
|
30
|
-
capture_balance_float?: number;
|
31
|
-
formatted_capture_balance?: string;
|
32
|
-
void_balance_cents?: number;
|
33
|
-
void_balance_float?: number;
|
34
|
-
formatted_void_balance?: string;
|
35
|
-
order?: Order;
|
36
|
-
captures?: Capture[];
|
37
|
-
voids?: Void[];
|
38
|
-
}
|
39
|
-
interface AuthorizationUpdate extends ResourceUpdate {
|
40
|
-
_capture?: boolean;
|
41
|
-
_capture_amount_cents?: number;
|
42
|
-
_void?: boolean;
|
43
|
-
}
|
44
|
-
declare class Authorizations extends ApiResource {
|
45
|
-
static readonly TYPE: 'authorizations';
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
|
47
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
48
|
-
update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
49
|
-
order(authorizationId: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
50
|
-
captures(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
51
|
-
voids(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
52
|
-
isAuthorization(resource: any): resource is Authorization;
|
53
|
-
relationship(id: string | ResourceId | null): AuthorizationRel;
|
54
|
-
type(): string;
|
55
|
-
}
|
56
|
-
export default Authorizations;
|
57
|
-
export { Authorization, AuthorizationUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Capture}from'./captures';import type{Void}from'./voids';declare type AuthorizationRel=ResourceRel&{type:typeof Authorizations.TYPE;};interface Authorization extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;cvv_code?:string;cvv_message?:string;avs_code?:string;avs_message?:string;fraud_review?:string;capture_amount_cents?:number;capture_amount_float?:number;formatted_capture_amount?:string;capture_balance_cents?:number;capture_balance_float?:number;formatted_capture_balance?:string;void_balance_cents?:number;void_balance_float?:number;formatted_void_balance?:string;order?:Order;captures?:Capture[];voids?:Void[];}interface AuthorizationUpdate extends ResourceUpdate{_capture?:boolean;_capture_amount_cents?:number;_void?:boolean;}declare class Authorizations extends ApiResource{static readonly TYPE:'authorizations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Authorization>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;update(resource:AuthorizationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;order(authorizationId:string|Authorization,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;captures(authorizationId:string|Authorization,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Capture>>;voids(authorizationId:string|Authorization,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Void>>;isAuthorization(resource:any):resource is Authorization;relationship(id:string|ResourceId|null):AuthorizationRel;type():string;}export default Authorizations;export{Authorization,AuthorizationUpdate};
|
@@ -1,52 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { TaxCategory } from './tax_categories';
|
4
|
-
import type { Market } from './markets';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type AvalaraAccountRel = ResourceRel & {
|
7
|
-
type: typeof AvalaraAccounts.TYPE;
|
8
|
-
};
|
9
|
-
declare type TaxCategoryRel = ResourceRel & {
|
10
|
-
type: 'tax_categories';
|
11
|
-
};
|
12
|
-
interface AvalaraAccount extends Resource {
|
13
|
-
name?: string;
|
14
|
-
username?: string;
|
15
|
-
company_code?: string;
|
16
|
-
ddp?: string;
|
17
|
-
tax_categories?: TaxCategory[];
|
18
|
-
markets?: Market[];
|
19
|
-
attachments?: Attachment[];
|
20
|
-
}
|
21
|
-
interface AvalaraAccountCreate extends ResourceCreate {
|
22
|
-
name: string;
|
23
|
-
username: string;
|
24
|
-
password: string;
|
25
|
-
company_code: string;
|
26
|
-
ddp?: string;
|
27
|
-
tax_categories?: TaxCategoryRel[];
|
28
|
-
}
|
29
|
-
interface AvalaraAccountUpdate extends ResourceUpdate {
|
30
|
-
name?: string;
|
31
|
-
username?: string;
|
32
|
-
password?: string;
|
33
|
-
company_code?: string;
|
34
|
-
ddp?: string;
|
35
|
-
tax_categories?: TaxCategoryRel[];
|
36
|
-
}
|
37
|
-
declare class AvalaraAccounts extends ApiResource {
|
38
|
-
static readonly TYPE: 'avalara_accounts';
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AvalaraAccount>>;
|
40
|
-
create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
41
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
42
|
-
update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
43
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
|
-
tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
45
|
-
markets(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
46
|
-
attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
47
|
-
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
48
|
-
relationship(id: string | ResourceId | null): AvalaraAccountRel;
|
49
|
-
type(): string;
|
50
|
-
}
|
51
|
-
export default AvalaraAccounts;
|
52
|
-
export { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{TaxCategory}from'./tax_categories';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type AvalaraAccountRel=ResourceRel&{type:typeof AvalaraAccounts.TYPE;};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface AvalaraAccount extends Resource{name?:string;username?:string;company_code?:string;ddp?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}interface AvalaraAccountCreate extends ResourceCreate{name:string;username:string;password:string;company_code:string;ddp?:string;tax_categories?:TaxCategoryRel[];}interface AvalaraAccountUpdate extends ResourceUpdate{name?:string;username?:string;password?:string;company_code?:string;ddp?:string;tax_categories?:TaxCategoryRel[];}declare class AvalaraAccounts extends ApiResource{static readonly TYPE:'avalara_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<AvalaraAccount>>;create(resource:AvalaraAccountCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;update(resource:AvalaraAccountUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;delete(id:string,options?:ResourcesConfig):Promise<void>;tax_categories(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isAvalaraAccount(resource:any):resource is AvalaraAccount;relationship(id:string|ResourceId|null):AvalaraAccountRel;type():string;}export default AvalaraAccounts;export{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate};
|
@@ -1,32 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
5
|
-
type: typeof BillingInfoValidationRules.TYPE;
|
6
|
-
};
|
7
|
-
declare type MarketRel = ResourceRel & {
|
8
|
-
type: 'markets';
|
9
|
-
};
|
10
|
-
interface BillingInfoValidationRule extends Resource {
|
11
|
-
market?: Market;
|
12
|
-
}
|
13
|
-
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
14
|
-
market: MarketRel;
|
15
|
-
}
|
16
|
-
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
17
|
-
market?: MarketRel;
|
18
|
-
}
|
19
|
-
declare class BillingInfoValidationRules extends ApiResource {
|
20
|
-
static readonly TYPE: 'billing_info_validation_rules';
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
|
22
|
-
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
23
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
24
|
-
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
25
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
|
-
market(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
27
|
-
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
28
|
-
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
29
|
-
type(): string;
|
30
|
-
}
|
31
|
-
export default BillingInfoValidationRules;
|
32
|
-
export { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';declare type BillingInfoValidationRuleRel=ResourceRel&{type:typeof BillingInfoValidationRules.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};interface BillingInfoValidationRule extends Resource{market?:Market;}interface BillingInfoValidationRuleCreate extends ResourceCreate{market:MarketRel;}interface BillingInfoValidationRuleUpdate extends ResourceUpdate{market?:MarketRel;}declare class BillingInfoValidationRules extends ApiResource{static readonly TYPE:'billing_info_validation_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BillingInfoValidationRule>>;create(resource:BillingInfoValidationRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;update(resource:BillingInfoValidationRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(billingInfoValidationRuleId:string|BillingInfoValidationRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;isBillingInfoValidationRule(resource:any):resource is BillingInfoValidationRule;relationship(id:string|ResourceId|null):BillingInfoValidationRuleRel;type():string;}export default BillingInfoValidationRules;export{BillingInfoValidationRule,BillingInfoValidationRuleCreate,BillingInfoValidationRuleUpdate};
|
@@ -1,35 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Address } from './addresses';
|
4
|
-
import type { Attachment } from './attachments';
|
5
|
-
declare type BingGeocoderRel = ResourceRel & {
|
6
|
-
type: typeof BingGeocoders.TYPE;
|
7
|
-
};
|
8
|
-
interface BingGeocoder extends Resource {
|
9
|
-
name?: string;
|
10
|
-
addresses?: Address[];
|
11
|
-
attachments?: Attachment[];
|
12
|
-
}
|
13
|
-
interface BingGeocoderCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
key: string;
|
16
|
-
}
|
17
|
-
interface BingGeocoderUpdate extends ResourceUpdate {
|
18
|
-
name?: string;
|
19
|
-
key?: string;
|
20
|
-
}
|
21
|
-
declare class BingGeocoders extends ApiResource {
|
22
|
-
static readonly TYPE: 'bing_geocoders';
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
|
24
|
-
create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
25
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
26
|
-
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
|
-
addresses(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
|
29
|
-
attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
30
|
-
isBingGeocoder(resource: any): resource is BingGeocoder;
|
31
|
-
relationship(id: string | ResourceId | null): BingGeocoderRel;
|
32
|
-
type(): string;
|
33
|
-
}
|
34
|
-
export default BingGeocoders;
|
35
|
-
export { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{Attachment}from'./attachments';declare type BingGeocoderRel=ResourceRel&{type:typeof BingGeocoders.TYPE;};interface BingGeocoder extends Resource{name?:string;addresses?:Address[];attachments?:Attachment[];}interface BingGeocoderCreate extends ResourceCreate{name:string;key:string;}interface BingGeocoderUpdate extends ResourceUpdate{name?:string;key?:string;}declare class BingGeocoders extends ApiResource{static readonly TYPE:'bing_geocoders';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BingGeocoder>>;create(resource:BingGeocoderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;update(resource:BingGeocoderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;delete(id:string,options?:ResourcesConfig):Promise<void>;addresses(bingGeocoderId:string|BingGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;attachments(bingGeocoderId:string|BingGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isBingGeocoder(resource:any):resource is BingGeocoder;relationship(id:string|ResourceId|null):BingGeocoderRel;type():string;}export default BingGeocoders;export{BingGeocoder,BingGeocoderCreate,BingGeocoderUpdate};
|
@@ -1,56 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { BraintreePayment } from './braintree_payments';
|
5
|
-
declare type BraintreeGatewayRel = ResourceRel & {
|
6
|
-
type: typeof BraintreeGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type BraintreePaymentRel = ResourceRel & {
|
9
|
-
type: 'braintree_payments';
|
10
|
-
};
|
11
|
-
interface BraintreeGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
descriptor_name?: string;
|
14
|
-
descriptor_phone?: string;
|
15
|
-
descriptor_url?: string;
|
16
|
-
webhook_endpoint_url?: string;
|
17
|
-
payment_methods?: PaymentMethod[];
|
18
|
-
braintree_payments?: BraintreePayment[];
|
19
|
-
}
|
20
|
-
interface BraintreeGatewayCreate extends ResourceCreate {
|
21
|
-
name: string;
|
22
|
-
merchant_account_id: string;
|
23
|
-
merchant_id: string;
|
24
|
-
public_key: string;
|
25
|
-
private_key: string;
|
26
|
-
descriptor_name?: string;
|
27
|
-
descriptor_phone?: string;
|
28
|
-
descriptor_url?: string;
|
29
|
-
braintree_payments?: BraintreePaymentRel[];
|
30
|
-
}
|
31
|
-
interface BraintreeGatewayUpdate extends ResourceUpdate {
|
32
|
-
name?: string;
|
33
|
-
merchant_account_id?: string;
|
34
|
-
merchant_id?: string;
|
35
|
-
public_key?: string;
|
36
|
-
private_key?: string;
|
37
|
-
descriptor_name?: string;
|
38
|
-
descriptor_phone?: string;
|
39
|
-
descriptor_url?: string;
|
40
|
-
braintree_payments?: BraintreePaymentRel[];
|
41
|
-
}
|
42
|
-
declare class BraintreeGateways extends ApiResource {
|
43
|
-
static readonly TYPE: 'braintree_gateways';
|
44
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreeGateway>>;
|
45
|
-
create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
46
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
47
|
-
update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
48
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
|
-
payment_methods(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
50
|
-
braintree_payments(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
51
|
-
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
52
|
-
relationship(id: string | ResourceId | null): BraintreeGatewayRel;
|
53
|
-
type(): string;
|
54
|
-
}
|
55
|
-
export default BraintreeGateways;
|
56
|
-
export { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{BraintreePayment}from'./braintree_payments';declare type BraintreeGatewayRel=ResourceRel&{type:typeof BraintreeGateways.TYPE;};declare type BraintreePaymentRel=ResourceRel&{type:'braintree_payments';};interface BraintreeGateway extends Resource{name?:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];braintree_payments?:BraintreePayment[];}interface BraintreeGatewayCreate extends ResourceCreate{name:string;merchant_account_id:string;merchant_id:string;public_key:string;private_key:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;braintree_payments?:BraintreePaymentRel[];}interface BraintreeGatewayUpdate extends ResourceUpdate{name?:string;merchant_account_id?:string;merchant_id?:string;public_key?:string;private_key?:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;braintree_payments?:BraintreePaymentRel[];}declare class BraintreeGateways extends ApiResource{static readonly TYPE:'braintree_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreeGateway>>;create(resource:BraintreeGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;update(resource:BraintreeGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(braintreeGatewayId:string|BraintreeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;braintree_payments(braintreeGatewayId:string|BraintreeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreePayment>>;isBraintreeGateway(resource:any):resource is BraintreeGateway;relationship(id:string|ResourceId|null):BraintreeGatewayRel;type():string;}export default BraintreeGateways;export{BraintreeGateway,BraintreeGatewayCreate,BraintreeGatewayUpdate};
|
@@ -1,47 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type BraintreePaymentRel = ResourceRel & {
|
6
|
-
type: typeof BraintreePayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface BraintreePayment extends Resource {
|
12
|
-
client_token?: string;
|
13
|
-
payment_method_nonce?: string;
|
14
|
-
payment_id?: string;
|
15
|
-
local?: boolean;
|
16
|
-
options?: object;
|
17
|
-
order?: Order;
|
18
|
-
payment_gateway?: PaymentGateway;
|
19
|
-
}
|
20
|
-
interface BraintreePaymentCreate extends ResourceCreate {
|
21
|
-
payment_id?: string;
|
22
|
-
local?: boolean;
|
23
|
-
options?: object;
|
24
|
-
order: OrderRel;
|
25
|
-
}
|
26
|
-
interface BraintreePaymentUpdate extends ResourceUpdate {
|
27
|
-
payment_method_nonce?: string;
|
28
|
-
payment_id?: string;
|
29
|
-
local?: boolean;
|
30
|
-
options?: object;
|
31
|
-
order?: OrderRel;
|
32
|
-
}
|
33
|
-
declare class BraintreePayments extends ApiResource {
|
34
|
-
static readonly TYPE: 'braintree_payments';
|
35
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
36
|
-
create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
37
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
38
|
-
update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
39
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
-
order(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
41
|
-
payment_gateway(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
42
|
-
isBraintreePayment(resource: any): resource is BraintreePayment;
|
43
|
-
relationship(id: string | ResourceId | null): BraintreePaymentRel;
|
44
|
-
type(): string;
|
45
|
-
}
|
46
|
-
export default BraintreePayments;
|
47
|
-
export { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';declare type BraintreePaymentRel=ResourceRel&{type:typeof BraintreePayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface BraintreePayment extends Resource{client_token?:string;payment_method_nonce?:string;payment_id?:string;local?:boolean;options?:object;order?:Order;payment_gateway?:PaymentGateway;}interface BraintreePaymentCreate extends ResourceCreate{payment_id?:string;local?:boolean;options?:object;order:OrderRel;}interface BraintreePaymentUpdate extends ResourceUpdate{payment_method_nonce?:string;payment_id?:string;local?:boolean;options?:object;order?:OrderRel;}declare class BraintreePayments extends ApiResource{static readonly TYPE:'braintree_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreePayment>>;create(resource:BraintreePaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;update(resource:BraintreePaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(braintreePaymentId:string|BraintreePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(braintreePaymentId:string|BraintreePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isBraintreePayment(resource:any):resource is BraintreePayment;relationship(id:string|ResourceId|null):BraintreePaymentRel;type():string;}export default BraintreePayments;export{BraintreePayment,BraintreePaymentCreate,BraintreePaymentUpdate};
|
@@ -1,74 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { SkuList } from './sku_lists';
|
5
|
-
import type { Sku } from './skus';
|
6
|
-
import type { Attachment } from './attachments';
|
7
|
-
declare type BundleRel = ResourceRel & {
|
8
|
-
type: typeof Bundles.TYPE;
|
9
|
-
};
|
10
|
-
declare type MarketRel = ResourceRel & {
|
11
|
-
type: 'markets';
|
12
|
-
};
|
13
|
-
declare type SkuListRel = ResourceRel & {
|
14
|
-
type: 'sku_lists';
|
15
|
-
};
|
16
|
-
interface Bundle extends Resource {
|
17
|
-
code?: string;
|
18
|
-
name?: string;
|
19
|
-
currency_code?: string;
|
20
|
-
description?: string;
|
21
|
-
image_url?: string;
|
22
|
-
price_amount_cents?: number;
|
23
|
-
price_amount_float?: number;
|
24
|
-
formatted_price_amount?: string;
|
25
|
-
compare_at_amount_cents?: number;
|
26
|
-
compare_at_amount_float?: number;
|
27
|
-
formatted_compare_at_amount?: string;
|
28
|
-
skus_count?: number;
|
29
|
-
market?: Market;
|
30
|
-
sku_list?: SkuList;
|
31
|
-
skus?: Sku[];
|
32
|
-
attachments?: Attachment[];
|
33
|
-
}
|
34
|
-
interface BundleCreate extends ResourceCreate {
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
currency_code?: string;
|
38
|
-
description?: string;
|
39
|
-
image_url?: string;
|
40
|
-
price_amount_cents: number;
|
41
|
-
compare_at_amount_cents: number;
|
42
|
-
_compute_price_amount?: boolean;
|
43
|
-
_compute_compare_at_amount?: boolean;
|
44
|
-
market?: MarketRel;
|
45
|
-
sku_list: SkuListRel;
|
46
|
-
}
|
47
|
-
interface BundleUpdate extends ResourceUpdate {
|
48
|
-
code?: string;
|
49
|
-
name?: string;
|
50
|
-
currency_code?: string;
|
51
|
-
description?: string;
|
52
|
-
image_url?: string;
|
53
|
-
price_amount_cents?: number;
|
54
|
-
compare_at_amount_cents?: number;
|
55
|
-
_compute_price_amount?: boolean;
|
56
|
-
_compute_compare_at_amount?: boolean;
|
57
|
-
}
|
58
|
-
declare class Bundles extends ApiResource {
|
59
|
-
static readonly TYPE: 'bundles';
|
60
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
61
|
-
create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
62
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
63
|
-
update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
64
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
65
|
-
market(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
66
|
-
sku_list(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
67
|
-
skus(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
68
|
-
attachments(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
69
|
-
isBundle(resource: any): resource is Bundle;
|
70
|
-
relationship(id: string | ResourceId | null): BundleRel;
|
71
|
-
type(): string;
|
72
|
-
}
|
73
|
-
export default Bundles;
|
74
|
-
export { Bundle, BundleCreate, BundleUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type BundleRel=ResourceRel&{type:typeof Bundles.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface Bundle extends Resource{code?:string;name?:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;skus_count?:number;market?:Market;sku_list?:SkuList;skus?:Sku[];attachments?:Attachment[];}interface BundleCreate extends ResourceCreate{code:string;name:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents:number;compare_at_amount_cents:number;_compute_price_amount?:boolean;_compute_compare_at_amount?:boolean;market?:MarketRel;sku_list:SkuListRel;}interface BundleUpdate extends ResourceUpdate{code?:string;name?:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents?:number;compare_at_amount_cents?:number;_compute_price_amount?:boolean;_compute_compare_at_amount?:boolean;}declare class Bundles extends ApiResource{static readonly TYPE:'bundles';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;create(resource:BundleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;update(resource:BundleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(bundleId:string|Bundle,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;sku_list(bundleId:string|Bundle,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(bundleId:string|Bundle,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;attachments(bundleId:string|Bundle,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isBundle(resource:any):resource is Bundle;relationship(id:string|ResourceId|null):BundleRel;type():string;}export default Bundles;export{Bundle,BundleCreate,BundleUpdate};
|
@@ -1,48 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { Authorization } from './authorizations';
|
5
|
-
import type { Refund } from './refunds';
|
6
|
-
declare type CaptureRel = ResourceRel & {
|
7
|
-
type: typeof Captures.TYPE;
|
8
|
-
};
|
9
|
-
interface Capture extends Resource {
|
10
|
-
number?: string;
|
11
|
-
currency_code?: string;
|
12
|
-
amount_cents?: number;
|
13
|
-
amount_float?: number;
|
14
|
-
formatted_amount?: string;
|
15
|
-
succeeded?: boolean;
|
16
|
-
message?: string;
|
17
|
-
error_code?: string;
|
18
|
-
error_detail?: string;
|
19
|
-
token?: string;
|
20
|
-
gateway_transaction_id?: string;
|
21
|
-
refund_amount_cents?: number;
|
22
|
-
refund_amount_float?: number;
|
23
|
-
formatted_refund_amount?: string;
|
24
|
-
refund_balance_cents?: number;
|
25
|
-
refund_balance_float?: number;
|
26
|
-
formatted_refund_balance?: string;
|
27
|
-
order?: Order;
|
28
|
-
reference_authorization?: Authorization;
|
29
|
-
refunds?: Refund[];
|
30
|
-
}
|
31
|
-
interface CaptureUpdate extends ResourceUpdate {
|
32
|
-
_refund?: boolean;
|
33
|
-
_refund_amount_cents?: number;
|
34
|
-
}
|
35
|
-
declare class Captures extends ApiResource {
|
36
|
-
static readonly TYPE: 'captures';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
38
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
39
|
-
update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
40
|
-
order(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
41
|
-
reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
42
|
-
refunds(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
43
|
-
isCapture(resource: any): resource is Capture;
|
44
|
-
relationship(id: string | ResourceId | null): CaptureRel;
|
45
|
-
type(): string;
|
46
|
-
}
|
47
|
-
export default Captures;
|
48
|
-
export { Capture, CaptureUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Authorization}from'./authorizations';import type{Refund}from'./refunds';declare type CaptureRel=ResourceRel&{type:typeof Captures.TYPE;};interface Capture extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;refund_amount_cents?:number;refund_amount_float?:number;formatted_refund_amount?:string;refund_balance_cents?:number;refund_balance_float?:number;formatted_refund_balance?:string;order?:Order;reference_authorization?:Authorization;refunds?:Refund[];}interface CaptureUpdate extends ResourceUpdate{_refund?:boolean;_refund_amount_cents?:number;}declare class Captures extends ApiResource{static readonly TYPE:'captures';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Capture>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;update(resource:CaptureUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;order(captureId:string|Capture,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_authorization(captureId:string|Capture,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;refunds(captureId:string|Capture,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;isCapture(resource:any):resource is Capture;relationship(id:string|ResourceId|null):CaptureRel;type():string;}export default Captures;export{Capture,CaptureUpdate};
|
@@ -1,26 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { Attachment } from './attachments';
|
5
|
-
declare type CarrierAccountRel = ResourceRel & {
|
6
|
-
type: typeof CarrierAccounts.TYPE;
|
7
|
-
};
|
8
|
-
interface CarrierAccount extends Resource {
|
9
|
-
name?: string;
|
10
|
-
easypost_type?: string;
|
11
|
-
easypost_id?: string;
|
12
|
-
market?: Market;
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
declare class CarrierAccounts extends ApiResource {
|
16
|
-
static readonly TYPE: 'carrier_accounts';
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
|
18
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CarrierAccount>;
|
19
|
-
market(carrierAccountId: string | CarrierAccount, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
20
|
-
attachments(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
21
|
-
isCarrierAccount(resource: any): resource is CarrierAccount;
|
22
|
-
relationship(id: string | ResourceId | null): CarrierAccountRel;
|
23
|
-
type(): string;
|
24
|
-
}
|
25
|
-
export default CarrierAccounts;
|
26
|
-
export { CarrierAccount };
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type CarrierAccountRel=ResourceRel&{type:typeof CarrierAccounts.TYPE;};interface CarrierAccount extends Resource{name?:string;easypost_type?:string;easypost_id?:string;market?:Market;attachments?:Attachment[];}declare class CarrierAccounts extends ApiResource{static readonly TYPE:'carrier_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CarrierAccount>;market(carrierAccountId:string|CarrierAccount,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;attachments(carrierAccountId:string|CarrierAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCarrierAccount(resource:any):resource is CarrierAccount;relationship(id:string|ResourceId|null):CarrierAccountRel;type():string;}export default CarrierAccounts;export{CarrierAccount};
|