Files
makelore/tests/fixtures/permanent-points-server.json

298 lines
7.5 KiB
JSON

{
"before": {
"points": {
"total": "0.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "0.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"funding_error": null,
"own_points": {
"total": "0.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "0.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"recharge_products": [
{
"id": "contract-product",
"code": "recharge_10",
"name": "500 词元点数",
"amount_cents": 1000,
"point_amount": "500.00",
"currency": "CNY",
"is_active": true,
"sort_order": 0
}
],
"points_per_yuan": 50,
"signup_bonus": "100.00",
"payment_configured": false,
"can_recharge": true
},
"created": {
"order": {
"id": "8da6bb6f-5bf9-4ef5-92a4-11b89e36d0e5",
"product_id": "contract-product",
"product_name": "500 词元点数",
"status": "pending",
"amount_cents": 1000,
"point_amount": "500.00",
"currency": "CNY",
"created_at": "2026-09-22T03:34:36",
"paid_at": null,
"failure_reason": null,
"manual_review_required": false,
"provider_payload": {
"orderNo": "contract-payment",
"codeUrl": "weixin://wxpay/contract-fixture"
}
},
"provider": "one_feel_trade",
"provider_payload": {
"orderNo": "contract-payment",
"codeUrl": "weixin://wxpay/contract-fixture"
}
},
"pending": {
"id": "8da6bb6f-5bf9-4ef5-92a4-11b89e36d0e5",
"product_id": "contract-product",
"product_name": "500 词元点数",
"status": "pending",
"amount_cents": 1000,
"point_amount": "500.00",
"currency": "CNY",
"created_at": "2026-09-22T03:34:36",
"paid_at": null,
"failure_reason": null,
"manual_review_required": false,
"provider_payload": {
"orderNo": "contract-payment",
"codeUrl": "weixin://wxpay/contract-fixture"
}
},
"orders": {
"items": [
{
"id": "8da6bb6f-5bf9-4ef5-92a4-11b89e36d0e5",
"product_id": "contract-product",
"product_name": "500 词元点数",
"status": "pending",
"amount_cents": 1000,
"point_amount": "500.00",
"currency": "CNY",
"created_at": "2026-09-22T03:34:36",
"paid_at": null,
"failure_reason": null,
"manual_review_required": false,
"provider_payload": {
"orderNo": "contract-payment",
"codeUrl": "weixin://wxpay/contract-fixture"
}
}
]
},
"repriced": {
"points": {
"total": "0.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "0.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"funding_error": null,
"own_points": {
"total": "0.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "0.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"recharge_products": [
{
"id": "contract-product",
"code": "recharge_10",
"name": "500 词元点数",
"amount_cents": 2000,
"point_amount": "1000.00",
"currency": "CNY",
"is_active": true,
"sort_order": 0
}
],
"points_per_yuan": 50,
"signup_bonus": "100.00",
"payment_configured": false,
"can_recharge": true
},
"paid": {
"id": "8da6bb6f-5bf9-4ef5-92a4-11b89e36d0e5",
"product_id": "contract-product",
"product_name": "500 词元点数",
"status": "succeeded",
"amount_cents": 1000,
"point_amount": "500.00",
"currency": "CNY",
"created_at": "2026-09-22T03:34:36",
"paid_at": "2026-09-22T03:34:36.651519",
"failure_reason": null,
"manual_review_required": false,
"provider_payload": null
},
"after": {
"points": {
"total": "500.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "500.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"funding_error": null,
"own_points": {
"total": "500.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "500.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"recharge_products": [
{
"id": "contract-product",
"code": "recharge_10",
"name": "500 词元点数",
"amount_cents": 2000,
"point_amount": "1000.00",
"currency": "CNY",
"is_active": true,
"sort_order": 0
}
],
"points_per_yuan": 50,
"signup_bonus": "100.00",
"payment_configured": false,
"can_recharge": true
},
"history": {
"items": [
{
"id": "62528c3d-6c41-4bc9-9fbf-bb03aebb5b44",
"kind": "credit",
"source": "point_pack",
"description": "充值到账",
"status": "credited",
"points": "500.00",
"reserved_points": "0.00",
"created_at": "2026-09-22T03:34:36"
}
],
"has_more": false
},
"youth": {
"points": {
"total": "100.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "100.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": false,
"shared_available": null,
"expires_at": null
},
"funding_error": null,
"own_points": {
"total": "100.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "100.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": false,
"shared_available": null,
"expires_at": null
},
"recharge_products": [
{
"id": "contract-product",
"code": "recharge_10",
"name": "500 词元点数",
"amount_cents": 2000,
"point_amount": "1000.00",
"currency": "CNY",
"is_active": true,
"sort_order": 0
}
],
"points_per_yuan": 50,
"signup_bonus": "100.00",
"payment_configured": false,
"can_recharge": false
},
"family_payer": {
"points": {
"total": "500.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "500.00",
"entitlement_source": "self",
"family_shared": true,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"funding_error": null,
"own_points": {
"total": "500.00",
"used": "0.00",
"reserved": "0.00",
"total_remaining": "500.00",
"entitlement_source": "self",
"family_shared": false,
"can_recharge": true,
"shared_available": null,
"expires_at": null
},
"recharge_products": [
{
"id": "contract-product",
"code": "recharge_10",
"name": "500 词元点数",
"amount_cents": 2000,
"point_amount": "1000.00",
"currency": "CNY",
"is_active": true,
"sort_order": 0
}
],
"points_per_yuan": 50,
"signup_bonus": "100.00",
"payment_configured": false,
"can_recharge": true
}
}