internal/payment_method.go   A
last analyzed

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A internal.CreatePaymentMethodResponse 0 2 1
1
package internal
2
3
// CreatePaymentMethodResponse returns a sample response for creating a payment method
4
func CreatePaymentMethodResponse() []byte {
5
	return []byte(`
6
{
7
  "createdAt": "2024-08-29T10:03:06.537Z",
8
  "updatedAt": "2024-08-29T10:03:06.537Z",
9
  "id": "68ceed244e5f2f5a69f72657",
10
  "metadata": {},
11
  "operatorDetails": {
12
    "operatorId": null,
13
    "merchantKey": "string"
14
  },
15
  "active": true,
16
  "type": "CARD",
17
  "walletTypeProductName": "string",
18
  "mobileMoneyDetails": {
19
    "countryCode": "string"
20
  },
21
  "neeroPersonDetails": {
22
    "personId": null,
23
    "accountId": "string",
24
    "country": "string",
25
    "paymentRequestId": null
26
  },
27
  "neeroMerchantDetails": {
28
    "merchantKey": "string",
29
    "storeId": "string",
30
    "balanceId": "string",
31
    "operatorId": null,
32
    "country": "string"
33
  },
34
  "paypalDetails": {
35
    "email": "string",
36
    "countryCode": "string"
37
  },
38
  "shortInfo": "string",
39
  "walletId": null
40
}`)
41
}
42