Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Stripe Import
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Stripe Import
Commits
0382a83e
Commit
0382a83e
authored
1 year ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Share spec
parent
16b9a853
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/v3/Stripe/Importallcustomers.php
+1
-8
1 addition, 8 deletions
api/v3/Stripe/Importallcustomers.php
api/v3/Stripe/Importcustomer.php
+9
-3
9 additions, 3 deletions
api/v3/Stripe/Importcustomer.php
api/v3/Stripe/Importcustomers.php
+2
-8
2 additions, 8 deletions
api/v3/Stripe/Importcustomers.php
with
12 additions
and
19 deletions
api/v3/Stripe/Importallcustomers.php
+
1
−
8
View file @
0382a83e
...
...
@@ -17,14 +17,7 @@ use CRM_Stripe_ExtensionUtil as E;
* @param array $spec description of fields supported by this API call
*/
function
_civicrm_api3_stripe_importallcustomers_spec
(
&
$spec
)
{
$spec
[
'ppid'
][
'title'
]
=
E
::
ts
(
'Use the given Payment Processor ID'
);
$spec
[
'ppid'
][
'type'
]
=
CRM_Utils_Type
::
T_INT
;
$spec
[
'ppid'
][
'api.required'
]
=
TRUE
;
$spec
[
'create_missing_contact'
][
'title'
]
=
E
::
ts
(
'Create missing contact'
);
$spec
[
'create_missing_contact'
][
'description'
]
=
E
::
ts
(
'(default: true) If contact is not found in CiviCRM create it automatically'
);
$spec
[
'create_missing_contact'
][
'type'
]
=
CRM_Utils_Type
::
T_BOOLEAN
;
$spec
[
'create_missing_contact'
][
'api.required'
]
=
FALSE
;
$spec
[
'create_missing_contact'
][
'api.default'
]
=
TRUE
;
_civicrm_api3_stripe_importcustomer_shared_spec
(
$spec
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
api/v3/Stripe/Importcustomer.php
+
9
−
3
View file @
0382a83e
...
...
@@ -17,12 +17,18 @@ use CRM_Stripe_ExtensionUtil as E;
* @param array $spec description of fields supported by this API call
*/
function
_civicrm_api3_stripe_importcustomer_spec
(
&
$spec
)
{
$spec
[
'ppid'
][
'title'
]
=
E
::
ts
(
'Use the given Payment Processor ID'
);
$spec
[
'ppid'
][
'type'
]
=
CRM_Utils_Type
::
T_INT
;
$spec
[
'ppid'
][
'api.required'
]
=
TRUE
;
$spec
[
'customer'
][
'title'
]
=
E
::
ts
(
'Import a specific customer'
);
$spec
[
'customer'
][
'type'
]
=
CRM_Utils_Type
::
T_STRING
;
$spec
[
'customer'
][
'api.required'
]
=
TRUE
;
_civicrm_api3_stripe_importcustomer_shared_spec
(
$spec
);
}
function
_civicrm_api3_stripe_importcustomer_shared_spec
(
&
$spec
)
{
$spec
[
'ppid'
][
'title'
]
=
E
::
ts
(
'Use the given Payment Processor ID'
);
$spec
[
'ppid'
][
'type'
]
=
CRM_Utils_Type
::
T_INT
;
$spec
[
'ppid'
][
'api.required'
]
=
TRUE
;
$spec
[
'create_missing_contact'
][
'title'
]
=
E
::
ts
(
'Create missing contact'
);
$spec
[
'create_missing_contact'
][
'description'
]
=
E
::
ts
(
'(default: true) If contact is not found in CiviCRM create it automatically'
);
$spec
[
'create_missing_contact'
][
'type'
]
=
CRM_Utils_Type
::
T_BOOLEAN
;
...
...
This diff is collapsed.
Click to expand it.
api/v3/Stripe/Importcustomers.php
+
2
−
8
View file @
0382a83e
...
...
@@ -17,23 +17,17 @@ use CRM_Stripe_ExtensionUtil as E;
* @param array $spec description of fields supported by this API call
*/
function
_civicrm_api3_stripe_importcustomers_spec
(
&
$spec
)
{
$spec
[
'ppid'
][
'title'
]
=
E
::
ts
(
'Use the given Payment Processor ID'
);
$spec
[
'ppid'
][
'type'
]
=
CRM_Utils_Type
::
T_INT
;
$spec
[
'ppid'
][
'api.required'
]
=
TRUE
;
$spec
[
'limit'
][
'title'
]
=
E
::
ts
(
'Limit number of Customers/Subscriptions to be imported'
);
$spec
[
'limit'
][
'type'
]
=
CRM_Utils_Type
::
T_INT
;
$spec
[
'limit'
][
'api.required'
]
=
FALSE
;
$spec
[
'starting_after'
][
'title'
]
=
E
::
ts
(
'Start importing customers after this one'
);
$spec
[
'starting_after'
][
'type'
]
=
CRM_Utils_Type
::
T_STRING
;
$spec
[
'starting_after'
][
'api.required'
]
=
FALSE
;
$spec
[
'create_missing_contact'
][
'title'
]
=
E
::
ts
(
'Create missing contact'
);
$spec
[
'create_missing_contact'
][
'description'
]
=
E
::
ts
(
'(default: true) If contact is not found in CiviCRM create it automatically'
);
$spec
[
'create_missing_contact'
][
'type'
]
=
CRM_Utils_Type
::
T_BOOLEAN
;
$spec
[
'create_missing_contact'
][
'api.required'
]
=
FALSE
;
$spec
[
'create_missing_contact'
][
'api.default'
]
=
TRUE
;
$spec
[
'created'
][
'type'
]
=
CRM_Utils_Type
::
T_TIMESTAMP
;
$spec
[
'created'
][
'title'
]
=
E
::
ts
(
'Import customers before/after this date'
);
$spec
[
'created'
][
'description'
]
=
E
::
ts
(
'Use the >,>=,<,<= operators to import customers before/after the specified date'
);
_civicrm_api3_stripe_importcustomer_shared_spec
(
$spec
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment