import { PaymentRecipient, OfferType, PaymentRecipientDetail } from "../../types/common" export const item: any = { id: "4d781f4d-1ea2-11ec-aa6f-7642cc189923", code: "test-_nhung-2609-housecare-1632644296", conditions: [], providerId: "8af0e885-a06c-4508-8d17-03e4fa1ea526", provider: { id: "8af0e885-a06c-4508-8d17-03e4fa1ea526", name: "Housecare", description: "LetMeCare – LetMeCare JSC", logoUrl: "https://i.imgur.com/hkfv1AB.jpg", appUrl: "https://www.letmecare.vn/", categories: [], scopeDefinitions: [ { id: "63a47ef0-76b1-11eb-9439-0242ac130002", providerId: "8af0e885-a06c-4508-8d17-03e4fa1ea526", name: "8af0e885-a06c-4508-8d17-03e4fa1ea526:payment-amount", displayName: "Payment amount", description: "Payment amount", price: { value: "2000.00", currency: "VND" }, isOnetimeCharge: false, isActive: true, claims: [ { id: "63a489e0-76b1-11eb-9439-0242ac130002", scopeId: "63a47ef0-76b1-11eb-9439-0242ac130002", mainClaimId: "", scope: null, name: "52f5969d-d51a-4616-80be-43b9f5aff548:payment-amount", displayName: "Payment amount", description: "Payment amount", valueType: "INTEGER", minValue: 0, maxValue: 500000000, isActive: true, createdAt: "2021-01-20T02:36:58.238194Z", updatedAt: "2021-01-20T02:36:58.238194Z", nested: null, }, ], createdAt: "2021-01-20T02:36:58.236308Z", updatedAt: "2021-01-20T02:36:58.236308Z", provider: null, }, { id: "487075aa-76af-11eb-9439-0242ac130002", providerId: "8af0e885-a06c-4508-8d17-03e4fa1ea526", name: "8af0e885-a06c-4508-8d17-03e4fa1ea526:housecare-score", displayName: "House care score", description: "House care score", price: { value: "1000.00", currency: "VND" }, isOnetimeCharge: false, isActive: true, claims: [ { id: "63a48ac6-76b1-11eb-9439-0242ac130002", scopeId: "487075aa-76af-11eb-9439-0242ac130002", mainClaimId: "", scope: null, name: "52f5969d-d51a-4616-80be-43b9f5aff548:housecare-score", displayName: "House care score", description: "House care score", valueType: "INTEGER", minValue: 0, maxValue: 500, isActive: true, createdAt: "2021-01-20T02:36:58.238194Z", updatedAt: "2021-01-20T02:36:58.238194Z", nested: null, }, ], createdAt: "2021-01-20T02:36:58.236308Z", updatedAt: "2021-01-20T02:36:58.236308Z", provider: null, }, ], placementFee: null, shareableBasicProfile: ["NAME", "EMAIL", "PHONE", "DOB", "GENDER"], }, reviewStatus: "APPROVED", reviewedAt: "2021-09-26T08:22:45.862825Z", campaignId: "4d75aa4d-1ea2-11ec-aa6f-7642cc189923", campaign: { id: "4d75aa4d-1ea2-11ec-aa6f-7642cc189923", name: "test _Nhung 2609", description: "test _Nhung 2609", thumbnailUrl: "https://dev-files.credify.ninja/9a0cb31e-1037-4c4e-bbc3-8e4e5baf51c9.png", extraSteps: false, publishedAt: "2021-09-26T08:18:22.375301Z", startDate: "2021-09-26T08:15:36.157Z", endDate: "2022-10-07T08:15:49.267Z", budget: { value: "1000000.00", currency: "VND" }, consumerId: "8f530df6-98aa-4849-bcaf-d62705435266", consumer: { id: "8f530df6-98aa-4849-bcaf-d62705435266", name: "OCB", description: "Ngân hàng TMCP Phương Đông OCB (Việt Nam)", logoUrl: "https://i.imgur.com/9OHYvfP.jpg", appUrl: "https://www.ocb.com.vn/", categories: [], redirectUrls: ["https://dev-demo-org.credify.ninja/callback/development"], logoutUrls: ["https://dev-demo-api.credify.ninja/ocb/oidc"], scopes: ["openid", "phone", "email", "profile"], optionalScopes: ["phone"], oidcSetupUrl: "https://dev-demo-api.credify.ninja/ocb/oidc", userExistenceApi: "https://dev-demo-api.credify.ninja/ocb/user-existence", referralUrl: "https://dev-api.credify.ninja/v1/referrals/refer", }, createdAt: "2021-09-26T08:22:18.672117Z", updatedAt: "2021-09-26T08:18:17.491489Z", levels: ["abc"], offers: null, reviewedAt: "2021-09-26T08:22:18.672064Z", reviewStatus: "APPROVED", verifiedScopes: [], conversionCommissions: [ { name: "ocb-not-rate-1632644296", displayName: "not rate", includesVat: false, rate: 100, fixedValue: null, }, { name: "ocb-rate-1632644296", displayName: "rate", includesVat: false, rate: 50, fixedValue: null, }, ], noScopeCharge: true, useReferral: false, requiredStandardScopes: [], transactionAmountRange: null, productCode: "product-which-has-3-plans-1632544084", product: { code: "product-which-has-3-plans-1632544084", productTypeCode: "insurance:health-insurance:for-individual", displayName: "Product which has 4 plans", createdAt: { seconds: 1632544133, nanos: 847236000 }, updatedAt: { seconds: 1636941922, nanos: 507582000 }, detail: { packages: [ { code: "plan-1-1632544084", name: "Plan 1", premium: { value: "100.00", currency: "VND" }, policyUrl: "https://example.com", duration: { value: 1, unit: "DAY" }, }, { code: "plan-2-1632544084", name: "Plan 2", premium: { value: "30.00", currency: "VND" }, policyUrl: "https://example.com", duration: { value: 1, unit: "DAY" }, }, { code: "plan-3-1632544084", name: "Plan 3", premium: { value: "10.00", currency: "VND" }, policyUrl: "https://example.com", duration: { value: 10, unit: "DAY" }, }, { code: "last-plan-1632544577", name: "Last plan", premium: { value: "33.00", currency: "VND" }, policyUrl: "https://example.com", duration: { value: 111, unit: "DAY" }, }, { code: "updated-plan-1636941926", name: "updated plan", premium: { value: "1120.00", currency: "VND" }, policyUrl: "https://dev-servicex.credify.ninja/settings/pro", duration: { value: 10, unit: "DAY" }, }, ], }, id: "9f1f152b-43a5-47c2-bef5-5ce67baf4daa", consumerId: "8f530df6-98aa-4849-bcaf-d62705435266", }, requiredBasicProfile: null, charges: ["CONVERSION"], }, evaluationResult: { rank: 1, usedScopes: ["8af0e885-a06c-4508-8d17-03e4fa1ea526:payment-amount"], requestedScopes: ["8af0e885-a06c-4508-8d17-03e4fa1ea526:payment-amount"], }, ppi: null, requiredCustomScopes: [ ["8af0e885-a06c-4508-8d17-03e4fa1ea526:payment-amount"], ], } export const userInfo = { id: 2388, firstName: "Magnus", lastName: "McClure", phoneNumber: "835233749", countryCode: "+84", email: "Desiree_Weimann@gmail.com", credifyId: "4163932e-72f7-459a-84e6-5f46108c656e", } export const mockPaymentRecipientDetail: PaymentRecipientDetail = { name: "bank_name", number: "213232323", branch: "bank_branch", bank: "bank_bank", } export const mockPaymentRecipient: PaymentRecipient = { type: "BANK_ACCOUNT", bank_account: mockPaymentRecipientDetail, // TODO it should be removed when the BE is deployed on all envs // 37829: update the payload for creating order API in the web SDK example app // The SDK changes that will apply for all envs. ...mockPaymentRecipientDetail } export const initOffer: OfferType = { reference_id: "", total_amount: { value: "0.0", currency: "VND", }, order_lines: [ { name: "", reference_id: "", image_url: "", category: "Điện thoại", product_url: "", quantity: 0, unit_price: { value: "", currency: "VND", }, subtotal: { value: "0.0", currency: "VND", }, measurement_unit: "EA", }, ], user_id: "", payment_recipient: mockPaymentRecipient, is_business: false, } export const mockProducts = { product1: { name: "Diane 35 - Bayer (H/21v)", description: "Hộp 1 vỉ x 21 viên nén", category: "Điện thoại", price: "115.000", quantity: 40, selected: true, img: "https://apharma.vn/wp-content/uploads/Diane-35.png", }, product2: { name: "Marvelon Bayer (H/21v)", description: "Hộp 1 vỉ x 21 viên nén", category: "Điện thoại", price: "63.100", quantity: 200, selected: true, img: "https://images.fpt.shop/unsafe/fit-in/600x600/filters:quality(90):fill(white)/nhathuoclongchau.com/images/product/2021/05/00004687-marvelon-h3-vi-7225-60ad_large.jpg", }, product3: { name: "Panadol Extra Gsk (H/180v)", description: "Hộp 15 vỉ x 12 viên nén", category: "Điện thoại", price: "217.700", quantity: 20, selected: true, img: "https://i-cf65.ch-static.com/content/dam/cf-consumer-healthcare/panadol/vi_vn/vietnamproduct/panadol_extra/product_detail/Panadol%20Extra_Packshot_221118_L_(445x429px).png?auto=format", }, }