@@ -23,7 +23,7 @@ class LineItemAddress(Model):
2323 fields = ["line_item_id" , "first_name" , "last_name" , "email" , "company" , "phone" , "line1" , "line2" , "line3" , "city" , "state_code" , "state" , "country" , "zip" , "validation_status" ]
2424 pass
2525 class Discount (Model ):
26- fields = ["amount" , "description" , "entity_type" , "discount_type" , "entity_id" , "coupon_set_code" ]
26+ fields = ["amount" , "description" , "line_item_id" , " entity_type" , "discount_type" , "entity_id" , "coupon_set_code" ]
2727 pass
2828 class Tax (Model ):
2929 fields = ["name" , "amount" , "description" ]
@@ -34,6 +34,9 @@ class TaxOrigin(Model):
3434 class LinkedPayment (Model ):
3535 fields = ["txn_id" , "applied_amount" , "applied_at" , "txn_status" , "txn_date" , "txn_amount" ]
3636 pass
37+ class ReferenceTransaction (Model ):
38+ fields = ["applied_amount" , "applied_at" , "txn_id" , "txn_status" , "txn_date" , "txn_amount" , "txn_type" , "amount_capturable" , "authorization_reason" ]
39+ pass
3740 class DunningAttempt (Model ):
3841 fields = ["attempt" , "transaction_id" , "dunning_type" , "created_at" , "txn_status" , "txn_amount" ]
3942 pass
@@ -77,9 +80,10 @@ class SiteDetailsAtCreation(Model):
7780 "term_finalized" , "is_gifted" , "generated_at" , "expected_payment_date" , "amount_to_collect" , \
7881 "round_off_amount" , "line_items" , "line_item_tiers" , "line_item_discounts" , "line_item_taxes" , \
7982 "line_item_credits" , "line_item_addresses" , "discounts" , "taxes" , "tax_origin" , "linked_payments" , \
80- "dunning_attempts" , "applied_credits" , "adjustment_credit_notes" , "issued_credit_notes" , "linked_orders" , \
81- "notes" , "shipping_address" , "billing_address" , "statement_descriptor" , "einvoice" , "void_reason_code" , \
82- "deleted" , "tax_category" , "vat_number_prefix" , "channel" , "business_entity_id" , "site_details_at_creation" ]
83+ "reference_transactions" , "dunning_attempts" , "applied_credits" , "adjustment_credit_notes" , \
84+ "issued_credit_notes" , "linked_orders" , "notes" , "shipping_address" , "billing_address" , "statement_descriptor" , \
85+ "einvoice" , "void_reason_code" , "deleted" , "tax_category" , "vat_number_prefix" , "channel" , "business_entity_id" , \
86+ "site_details_at_creation" ]
8387
8488
8589 @staticmethod
0 commit comments