"currency_iso": "USD" }, "custom": null, "receive_address": "mnskjZs57dBAmeU2n4csiRKoQcGRF4tpxH", "button": { "type": "buy_now", "name": "test", "description": null, "id": "1741b3be1eb5dc50625c48851a94ae13" }, "transaction": null } } """ expected_order = CoinbaseOrder( id='8QNULQFE', created_at=datetime(2014, 2, 4, 23, 36, 30, tzinfo=tzoffset(None, -28800)), status=CoinbaseOrder.Status.pending, total=CoinbaseAmount.BtcAndNative( btc=CoinbaseAmount('.12300000', 'BTC'), native=CoinbaseAmount('1.23', 'USD'), ), receive_address='mnskjZs57dBAmeU2n4csiRKoQcGRF4tpxH', button=CoinbaseOrder.Button( type='buy_now', name='test', id='1741b3be1eb5dc50625c48851a94ae13', ), )
"transaction": { "id": "513eb768f12a9cf27400000b", "hash": "4cc5eec20cd692f3cdb7fc264a0e1d78b9a7e3d7b862dec1e39cf7e37ababc14", "confirmations": 0 } } } """ expected_order = CoinbaseOrder( id='A7C52JQT', created_at=datetime(2013, 3, 11, 22, 4, 37, tzinfo=tzoffset(None, -25200)), status=CoinbaseOrder.Status.complete, total=CoinbaseAmount.BtcAndNative( btc=CoinbaseAmount('.1', 'BTC'), native=CoinbaseAmount('.1', 'BTC'), ), custom='custom123', receive_address='mgrmKftH5CeuFBU3THLWuTNKaZoCGJU5jQ', button=CoinbaseOrder.Button( type='buy_now', name='test', description='', id='eec6d08e9e215195a471eae432a49fc7', ), transaction=CoinbaseOrder.Transaction( id='513eb768f12a9cf27400000b', hash='4cc5eec20cd692f3cdb7fc264a0e1d78' 'b9a7e3d7b862dec1e39cf7e37ababc14', confirmations=0, ),
"hash": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b", "confirmations": 0 }, "refund_address": "1HcmQZarSgNuGYz4r7ZkjYumiU4PujrNYk" } } """ expected_order = CoinbaseOrder( id='5RTQNACF', created_at=datetime(2012, 12, 9, 21, 23, 41, tzinfo=tzoffset(None, -28800)), status=CoinbaseOrder.Status.complete, total=CoinbaseAmount.BtcAndNative( btc=CoinbaseAmount('1', 'BTC'), native=CoinbaseAmount('12.53', 'USD'), ), custom='order1234', receive_address='1NhwPYPgoPwr5hynRAsto5ZgEcw1LzM3My', button=CoinbaseOrder.Button( type='buy_now', name='Alpaca Socks', description='The ultimate in lightweight footwear', id='5d37a3b61914d6d0ad15b5135d80c19f', ), transaction=CoinbaseOrder.Transaction( id='514f18b7a5ea3d630a00000f', hash='4a5e1e4baab89f3a32518a88c31bc87f' '618f76673e2cc77ab2127b7afdeda33b', confirmations=0, ),
expected_orders = [ CoinbaseOrder( id='8DJ2Z9AQ', created_at=datetime(2014, 4, 21, 10, 25, 50, tzinfo=tzoffset(None, -25200)), status=CoinbaseOrder.Status.expired, receive_address='8uREGg34ji4gn43M93cuibhbkfi6FbyF1g', button=CoinbaseOrder.Button( id='0fde6d456181be1279fef6879d6897a3', description='warm and fuzzy', name='Alpaca socks', type='buy_now', ), custom='abcdef', total=CoinbaseAmount.BtcAndNative( btc=CoinbaseAmount('.01818000', 'BTC'), native=CoinbaseAmount('9', 'USD'), ), customer=CoinbaseOrder.Customer(), ), CoinbaseOrder( id='J3KAD35D', created_at=datetime(2014, 4, 21, 9, 56, 57, tzinfo=tzoffset(None, -25200)), status=CoinbaseOrder.Status.complete, receive_address='b87nihewshngyuFUbu6fy5vbtdtryfhhj1', button=CoinbaseOrder.Button( id='69adb65c95af59ed5b9ab5de55a579db', description='20% off', name='Pineapple', type='buy_now', ),