|
2 | 2 | /** |
3 | 3 | * Class Recurly_Purchase |
4 | 4 | * @property Recurly_Account $account The account for the purchase. Can create an account or use existing. |
5 | | - * @property Recurly_Adjustment[] $adjustments The array of adjustments for the purchase |
6 | | - * @property string $collection_method The invoice collection method ('automatic' or 'manual') |
7 | | - * @property string $currency The currency to use in this invoice |
8 | | - * @property string $po_number The po number for the invoice |
9 | | - * @property integer $net_terms The net terms of the invoice |
10 | | - * @property string[] $coupon_codes An array of coupon codes to apply to the purchase |
11 | | - * @property Recurly_Subscription[] $subscriptions An array of subscriptions to apply to the purchase |
12 | | - * @property Recurly_GiftCard $gift_card A gift card to apply to the purchase |
| 5 | + * @property Recurly_Adjustment[] $adjustments The array of adjustments for the purchase. |
| 6 | + * @property string $collection_method The invoice collection method ('automatic' or 'manual'). |
| 7 | + * @property string $currency The currency to use in this invoice. |
| 8 | + * @property string $po_number The po number for the invoice. |
| 9 | + * @property integer $net_terms The net terms of the invoice. |
| 10 | + * @property string[] $coupon_codes An array of coupon codes to apply to the purchase. |
| 11 | + * @property Recurly_Subscription[] $subscriptions An array of subscriptions to apply to the purchase. |
| 12 | + * @property Recurly_GiftCard $gift_card A gift card to apply to the purchase. |
13 | 13 | * @property string $customer_notes Optional notes field. This will default to the Customer Notes text specified on the Invoice Settings page in your Recurly admin. Custom notes made on an invoice for a one time charge will not carry over to subsequent invoices. |
14 | 14 | * @property string $terms_and_conditions Optional Terms and Conditions field. This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Custom notes will stay with a subscription on all renewals. |
15 | 15 | * @property string $vat_reverse_charge_notes Optional VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription. Custom notes will stay with a subscription on all renewals. |
16 | 16 | * @property integer $shipping_address_id Optional id of an existing ShippingAddress to be applied to all subscriptions and adjustments in purchase. |
17 | 17 | * @property string $gateway_code Optional base36 encoded id for the gateway you wish to use for this transaction. |
| 18 | + * @property Recurly_ShippingFee[] $shipping_fees Optional array of shipping fees to apply to the purchase. |
18 | 19 | */ |
19 | 20 | class Recurly_Purchase extends Recurly_Resource |
20 | 21 | { |
@@ -115,7 +116,7 @@ protected function getWriteableAttributes() { |
115 | 116 | 'account', 'adjustments', 'collection_method', 'currency', 'po_number', |
116 | 117 | 'net_terms', 'subscriptions', 'gift_card', 'coupon_codes', 'customer_notes', |
117 | 118 | 'terms_and_conditions', 'vat_reverse_charge_notes', 'shipping_address_id', |
118 | | - 'gateway_code' |
| 119 | + 'gateway_code', 'shipping_fees' |
119 | 120 | ); |
120 | 121 | } |
121 | 122 | } |
0 commit comments