Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
676 lars 1
<?php
2
 
3
namespace Srmklive\PayPal\Tests\Mocks\Requests;
4
 
5
use GuzzleHttp\Utils;
6
 
7
trait PartnerReferrals
8
{
9
    private function mockCreatePartnerReferralParams(): array
10
    {
11
        return Utils::jsonDecode('{
12
  "individual_owners": [
13
    {
14
      "names": [
15
        {
16
          "prefix": "Mr.",
17
          "given_name": "John",
18
          "surname": "Doe",
19
          "middle_name": "Middle",
20
          "suffix": "Jr.",
21
          "full_name": "John Middle Doe Jr.",
22
          "type": "LEGAL"
23
        }
24
      ],
25
      "citizenship": "US",
26
      "addresses": [
27
        {
28
          "address_line_1": "One Washington Square",
29
          "address_line_2": "Apt 123",
30
          "admin_area_2": "San Jose",
31
          "admin_area_1": "CA",
32
          "postal_code": "95112",
33
          "country_code": "US",
34
          "type": "HOME"
35
        }
36
      ],
37
      "phones": [
38
        {
39
          "country_code": "1",
40
          "national_number": "6692468839",
41
          "extension_number": "1234",
42
          "type": "MOBILE"
43
        }
44
      ],
45
      "birth_details": {
46
        "date_of_birth": "1955-12-29"
47
      },
48
      "type": "PRIMARY"
49
    }
50
  ],
51
  "business_entity": {
52
    "business_type": {
53
      "type": "INDIVIDUAL",
54
      "subtype": "ASSO_TYPE_INCORPORATED"
55
    },
56
    "business_industry": {
57
      "category": "1004",
58
      "mcc_code": "2025",
59
      "subcategory": "8931"
60
    },
61
    "business_incorporation": {
62
      "incorporation_country_code": "US",
63
      "incorporation_date": "1986-12-29"
64
    },
65
    "names": [
66
      {
67
        "business_name": "Test Enterprise",
68
        "type": "LEGAL_NAME"
69
      }
70
    ],
71
    "emails": [
72
      {
73
        "type": "CUSTOMER_SERVICE",
74
        "email": "customerservice@example.com"
75
      }
76
    ],
77
    "website": "https://mystore.testenterprises.com",
78
    "addresses": [
79
      {
80
        "address_line_1": "One Washington Square",
81
        "address_line_2": "Apt 123",
82
        "admin_area_2": "San Jose",
83
        "admin_area_1": "CA",
84
        "postal_code": "95112",
85
        "country_code": "US",
86
        "type": "WORK"
87
      }
88
    ],
89
    "phones": [
90
      {
91
        "country_code": "1",
92
        "national_number": "6692478833",
93
        "extension_number": "1234",
94
        "type": "CUSTOMER_SERVICE"
95
      }
96
    ],
97
    "beneficial_owners": {
98
      "individual_beneficial_owners": [
99
        {
100
          "names": [
101
            {
102
              "prefix": "Mr.",
103
              "given_name": "John",
104
              "surname": "Doe",
105
              "middle_name": "Middle",
106
              "suffix": "Jr.",
107
              "full_name": "John Middle Doe Jr.",
108
              "type": "LEGAL"
109
            }
110
          ],
111
          "citizenship": "US",
112
          "addresses": [
113
            {
114
              "address_line_1": "One Washington Square",
115
              "address_line_2": "Apt 123",
116
              "admin_area_2": "San Jose",
117
              "admin_area_1": "CA",
118
              "postal_code": "95112",
119
              "country_code": "US",
120
              "type": "HOME"
121
            }
122
          ],
123
          "phones": [
124
            {
125
              "country_code": "1",
126
              "national_number": "6692468839",
127
              "extension_number": "1234",
128
              "type": "MOBILE"
129
            }
130
          ],
131
          "birth_details": {
132
            "date_of_birth": "1955-12-29"
133
          },
134
          "percentage_of_ownership": "50"
135
        }
136
      ],
137
      "business_beneficial_owners": [
138
        {
139
          "business_type": {
140
            "type": "INDIVIDUAL",
141
            "subtype": "ASSO_TYPE_INCORPORATED"
142
          },
143
          "business_industry": {
144
            "category": "1004",
145
            "mcc_code": "2025",
146
            "subcategory": "8931"
147
          },
148
          "business_incorporation": {
149
            "incorporation_country_code": "US",
150
            "incorporation_date": "1986-12-29"
151
          },
152
          "names": [
153
            {
154
              "business_name": "Test Enterprise",
155
              "type": "LEGAL_NAME"
156
            }
157
          ],
158
          "emails": [
159
            {
160
              "type": "CUSTOMER_SERVICE",
161
              "email": "customerservice@example.com"
162
            }
163
          ],
164
          "website": "https://mystore.testenterprises.com",
165
          "addresses": [
166
            {
167
              "address_line_1": "One Washington Square",
168
              "address_line_2": "Apt 123",
169
              "admin_area_2": "San Jose",
170
              "admin_area_1": "CA",
171
              "postal_code": "95112",
172
              "country_code": "US",
173
              "type": "WORK"
174
            }
175
          ],
176
          "phones": [
177
            {
178
              "country_code": "1",
179
              "national_number": "6692478833",
180
              "extension_number": "1234",
181
              "type": "CUSTOMER_SERVICE"
182
            }
183
          ],
184
          "percentage_of_ownership": "50"
185
        }
186
      ]
187
    },
188
    "office_bearers": [
189
      {
190
        "names": [
191
          {
192
            "prefix": "Mr.",
193
            "given_name": "John",
194
            "surname": "Doe",
195
            "middle_name": "Middle",
196
            "suffix": "Jr.",
197
            "full_name": "John Middle Doe Jr.",
198
            "type": "LEGAL"
199
          }
200
        ],
201
        "citizenship": "US",
202
        "addresses": [
203
          {
204
            "address_line_1": "One Washington Square",
205
            "address_line_2": "Apt 123",
206
            "admin_area_2": "San Jose",
207
            "admin_area_1": "CA",
208
            "postal_code": "95112",
209
            "country_code": "US",
210
            "type": "HOME"
211
          }
212
        ],
213
        "phones": [
214
          {
215
            "country_code": "1",
216
            "national_number": "6692468839",
217
            "extension_number": "1234",
218
            "type": "MOBILE"
219
          }
220
        ],
221
        "birth_details": {
222
          "date_of_birth": "1955-12-29"
223
        },
224
        "role": "DIRECTOR"
225
      }
226
    ],
227
    "annual_sales_volume_range": {
228
      "minimum_amount": {
229
        "currency_code": "USD",
230
        "value": "10000"
231
      },
232
      "maximum_amount": {
233
        "currency_code": "USD",
234
        "value": "50000"
235
      }
236
    },
237
    "average_monthly_volume_range": {
238
      "minimum_amount": {
239
        "currency_code": "USD",
240
        "value": "1000"
241
      },
242
      "maximum_amount": {
243
        "currency_code": "USD",
244
        "value": "50000"
245
      }
246
    },
247
    "purpose_code": "P0104"
248
  },
249
  "email": "accountemail@example.com",
250
  "preferred_language_code": "en-US",
251
  "tracking_id": "testenterprices123122",
252
  "partner_config_override": {
253
    "partner_logo_url": "https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_111x69.jpg",
254
    "return_url": "https://testenterprises.com/merchantonboarded",
255
    "return_url_description": "the url to return the merchant after the paypal onboarding process.",
256
    "action_renewal_url": "https://testenterprises.com/renew-exprired-url",
257
    "show_add_credit_card": true
258
  },
259
  "operations": [
260
    {
261
      "operation": "BANK_ADDITION"
262
    }
263
  ],
264
  "financial_instruments": {
265
    "banks": [
266
      {
267
        "nick_name": "Bank of America",
268
        "account_number": "123405668293",
269
        "account_type": "CHECKING",
270
        "currency_code": "USD",
271
        "identifiers": [
272
          {
273
            "type": "ROUTING_NUMBER_1",
274
            "value": "123456789"
275
          }
276
        ]
277
      }
278
    ]
279
  },
280
  "legal_consents": [
281
    {
282
      "type": "SHARE_DATA_CONSENT",
283
      "granted": true
284
    }
285
  ],
286
  "products": [
287
    "EXPRESS_CHECKOUT"
288
  ]
289
}', true);
290
    }
291
}