Is there a way to programatically create a commerce coupon fixed amount? I'm using the Commerce Coupon Fixed Amount module to create fixed coupons, which works fine in the interface.  But I'm wondering if there is a way to programmatically create them.
I'm able to create normal commerce coupons with this helpful snippet of code.
Using this tutorial and the above modules/code It makes making a commerce coupon fixed amount (or in this case, a gift card) easier to see.
The only difference between making a regular coupon and one with a fixed amount is that the product (gift card product) price needs to be loaded before hand and the amount of the coupon being created upon gift card purchase needs to load the price from that gift card:

$coupon-&gt;commerce_coupon_fixed_amount[LANGUAGE_NONE][0] = array(
'amount'  =&gt; $product-&gt;commerce_price[LANGUAGE_NONE][0]['amount'],
'currency_code' =&gt; $product-&gt;commerce_price[LANGUAGE_NONE][0]['currency_code'],
);